Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

Logging user security role assignment

(1) ShareShare
ReportReport
Posted on by 1
Is there a way to log the assignment of security roles to users such that each time a new role is granted or revoked for a given user, the affected user, role, date/time and the user who assigned/revoked that role is logged?
 
I've tried implementing this through the database log by enabling insert and delete operation logging for the Security User Role Association table but this doesn't have any effect. 
 
Oddly, enabling database logging for the User Role Organization Assignment table does work for instances where I add a role to a user for a specific legal entity, but I get no data in the database log for roles that apply across all legal entities. Digging deeper, I find that the  Security User Role Association table is a kernel table whilst the User Role Organization Assignment table is a normal table and I can only assume that the Database Log feature doesn't work for kernel tables. 
 
This seems like a fairly standard thing to want to be able to do. Is there a feature elsewhere that can provide the data that a security audit might require in order to answer questions like /What rights did user X have on some date?/?  
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 292,031 Super User 2025 Season 1 on at
    Logging user security role assignment
    Hi,
     
    There are ISV solutions providing full history logging and insights about all security changes. E.g. at To-Increase we have a Security and Compliance Studio solution. 
     
    You can also implement an own customization for logging these details.  

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,031 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,868 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans