Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

PrincipalObjectAccess Table - Clear Out Data?

Posted on by 150

Reading through a few different threads, I was able to find that the Principal Object Access (POA) table in Dynamics will give me information about what records have been shared with Users. Using PowerBI, I have developed a Report that looks at this table, along with our Account and SystemUser tables for decoding, and we can now see what records are shared, with whom they are shared, and what level of share has been given. The issue I am running into now is that if you share a record with a User, a record is created in the POA, and even if you remove the shared access, the record still remains (the AccessRightsMask permission field is just set to "0" for no access). To give an idea why I am using this table in the first place, we have a field in Dynamics where we list a "secondary" salesperson for Account records. We are going to assign Ownership of the record to the "primary" salesperson, and share the record with the secondary salesperson (I know we can accomplish this through other means, but this strategy is going to work best for us). I planned on using the PowerBI report to show all records that have a secondary salesperson, but do NOT have any shared access to the record. The report works, EXCEPT if we ever shared the record with someone then removed that shared access, as the "ghost" record will still exist. I would no longer be able to filter my report to show me only records where the Shared User is blank, as I would be skipping the "ghost" records. Does anyone know if the POA table will clear these records periodically? If not, is there any way I can purge these records (where both the AccessRightsMask and InheritedAccessRightsMask fields are set to 0)? I am new to the POA table as a whole, just figured out how to connect to it using PowerBI a few days ago. I know this will be the key to solving our "shared access check", and any additional info is greatly appreciated. Thank you! :-)

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

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