web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Error on revoking access to the owner?

(0) ShareShare
ReportReport
Posted on by 3,499

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

I have the same question (0)
  • Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans