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:
- 'Unshare' the record from the Team from the UI (because they are already the record Owner)
- 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