Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Only owner can revoke access to the owner: Plugin Exception

(0) ShareShare
ReportReport
Posted on by 230

Dear Communities,

We have account postupdate plugin which revoke share access from current owner and updating new owner and plugin running on callinguser context but we got the below exception Only owner can revoke access to the owner: (callinguser guid) and (recordownerid).

Please let me know how we can workaround this issue.

Thanks & Regards,

Dan

*This post is locked for comments

  • Suggested answer
    Dynamics365 Rocker Profile Picture
    Dynamics365 Rocker 7,755 on at
    RE: Only owner can revoke access to the owner: Plugin Exception

    Kindly run your plugin under Admin user context in place of calling user. To update it GoTo->Plugin registration tool->update plugin step

  • Suggested answer
    Rawish Kumar Profile Picture
    Rawish Kumar 13,756 on at
    RE: Only owner can revoke access to the owner: Plugin Exception

    Hi There,

    This seems too be a bug in dynamics CRM. If you are running the plugin as admin - rather the calling user(please confirm that on the plugin step), it should work..

    as workaround what i can suggest it assign the record to calling user or admin then share is or unshare it accordingly.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans