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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Orphans in principalobjectaccess table

(0) ShareShare
ReportReport
Posted on by 6

Hello,

I'm reviewing our principalobjectaccess table, and I'm finding lots of orphans where the ObjectID it's referencing no longer exists.  Most of these are older from before our last upgrade (CRM 2015 to 365 On Prem), so is there something that could've left these? I'm running an SDK process to revoke permissions on these users in hopes that it'll clean them up next time the ASync Delete cleanup process runs, but I'm just concerned as I don't know why they'd exist.  We never run direct database updates/deletes.  

Thanks for any suggestions.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Arun Vinoth Profile Picture
    11,615 Moderator on at

    Could be some glitch on deletion service pickup process. Or some DB restoration might have caused these.

    What are the AccessMask column values for those objectid records? Did you verify those objectid with every single entity type you are using?

    Basically when you unshare/share (grant/revoke) with the users again, they should cleanse the POA entries theoretically. then deletion service should pick them for cleanup ideally.

  • Sam Alex Profile Picture
    6 on at

    Yes, they still have permissions set in AccessRightsMask on most and InheritedAccessRightsMask on all. I'm building a process to clean-up Shares that shouldn't exist any longer, and I'm running it now to start clearing these out.  Just there are so many, it'll take a long time for it to run (like 250,000 of them).

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans