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)

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

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