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 in CRM 2015

(0) ShareShare
ReportReport
Posted on by

With CRM 2015 On Premises our PrincipalObjectAccess table has grown to about 12M rows, and I've read about possible performance issues after 10m.  How can we go about cleaning this up?  Something I've noticed is when a share is created then removed it leaves the record in this table with InheritedAccessRightsMask = 0 and AccessRightsMask = 0, which of our 10m rows 4.6m are like this.  I've read various sites where people suggest ways to clean this table, but I haven't found anything related to CRM 2015 or anything that doesn't involve updating the database which we avoid like the plague. 

So what is the Microsoft suggested or supported way to clean this up?  If just removing the Share keeps the database record in the table is direct database modification the only way?  And if so what's suggested to delete from this table?

Thanks for any advice.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Jason M. Cosman Profile Picture
    5,234 Moderator on at

    Hello Sam;

    In the past i've cleaned up the PoA table using this article from Microsoft: support.microsoft.com/.../how-to-control-principalobjectaccess-table-growth-in-microsoft-dynamics-crm-2011 . I hope this helps.

  • Community Member Profile Picture
    on at

    From what I'm reading these should be getting purged in the Deletion Service after they are 90 days old, but I'm not sure where this service runs or how to verify it's working.  Can someone give suggestions on this?  Thanks.

  • Community Member Profile Picture
    on at

    Jason, I read this article earlier, but it appeared to only apply after Update Rollup 6 was added to CRM.  I don't see that it's specific to the issue we're running into.  Also I really don't like making direct DB changes if there's a supported way of cleaning these up.  

  • Suggested answer
    prt33k Profile Picture
    6,907 on at

    Hi Sam,

    Usually the deletion service take cares of these kind of record. You can use the codeplex tool to schedule it as per your requirment:

    crmjobeditor.codeplex.com/.../574469

    You can read more about deletion service here : blogs.msdn.microsoft.com/.../dynamics-crm-2011-deletionservice-async-maintenance-operation-demystified

    Thanks,

    PS

  • Community Member Profile Picture
    on at

    Does anyone know if performance issues due to POA, affect all versions of CRM / 365? Or only the oldest ones? Just to know because most posts related to this are regarding to CRM 2011. I think this is the only one I found related to newer versions. Thanks!

  • Suggested answer
    ARIFNIIT Profile Picture
    1,391 on at

    Hi Sam,

    I think you can delete records with InheritedAccessRightsMask = 0 and AccessRightsMask = 0. it will not impact your system access right.

    InheritedAccessRightsMask = 0 and AccessRightsMask = 0 means no rights.

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