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)

Clean up PrincipalObjectAccess Table

(0) ShareShare
ReportReport
Posted on by 29

Hi ,

Can we delete records form PrincipalObjectAccess  table for the following condition by execute delete command on POA table 

for (1) AccessRightsMask=0 and InheritedAccessRightsMask=0

     (2) changedon is NULL  

In which scenario changedon column  is NULL ?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Radu Chiribelea Profile Picture
    6,667 on at

    Hi Hareram,

    If the recors have the AccessRightsMask and InheritedAccessRightsMask = 0 then they should be automatically picked up by the deletion service and removed from the system. This is an async maintenance job that runs every  24 hours (see blogs.msdn.microsoft.com/.../crm-2013-maintenance-jobs)

    I'd check if there were any errors when the deletion service ran ( SQL Timeouts, etc.) and address those.

    Also, i would advise not to make any operations directly on the CRM DB as this is unsupported and can leave the DB in a faulted state (cause orphaned records if the references aren't properly disposed of)

    Regards,

    Radu

  • Hareram Profile Picture
    29 on at

    Thanks Radu

    I have another concern like, In my POA table there are  lot of records which have changedon is NULL , Can i delete these records or  In which scenario changedon value is NULL ?

  • Radu Chiribelea Profile Picture
    6,667 on at

    Hi Hareram,

    This is a good question. I don't know why they would have changedon NULL. Could it be possible that someone altered the database directly in the past? Still, even if the changedon is NULL i don't think this should in any way influence the POA behavior (meaning that permissions are not granted).

    I would test this scenario and see if the sharing permissions for a record having the changedon = NULL are not respected. In that case i would reach out to MS Support directly for assistance for cleaning that up.

    Regards

    Radu

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans