Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Error on revoking access to the owner?

Posted on by 3,497

Hi All, 

I am facing the "Only owner can revoke access to the owner. CallerId: {callingUserId} OwnerId: {recordOwnerId}" business process error on Dynamics365 OnPrem version.

In the CRM tenant, we had Opportunity records that were shared with certain Teams.

Later on, these records were assigned to those teams, so that the owner of those Opportunity records became the Team themselves.

Now, when I try to do the following actions, I am presented the above error:

  1. 'Unshare' the record from the Team from the UI (because they are already the record Owner)
  2. Use the RevokeAccess message from a plugin

The calling user has System Admin rights but the CRM platform still does not allow me to 'unshare' the record with 'Team ABC' as 'Team ABC' is the record Owner.

Has anyone faced this issue? How did you achieve a work-around?

What I am currently planning to do, is delete all the records from the PrincipalObjectAccess table where the record is shared with the record Owner.

However, since this is a direct DB change, wanted to avoid this, if possible.

*This post is locked for comments

  • Aric Levin Profile Picture
    Aric Levin 30,188 on at
    RE: Error on revoking access to the owner?

    This is similar to the following post:

    nishantrana.me/.../only-the-owner-of-an-object-can-revoke-the-owners-access-to-that-object

    This might be a bug that has to be submitted on Microsoft Ideas. Can you try and see if you can reassign the record ownership to yourself (as a System Administrator), and the unshare the records from the team.

    I am not sure if it will work or not, but definitely worth a try.

    I would stay away from making changes to the database directly.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans