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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to monitor for role changes

(4) ShareShare
ReportReport
Posted on by 18
Have a situation where I need to monitor when users are added to a privileged specific user role.
 
How can I export the list of users in a role or set a rule to check for these routinely?
 
Looks like the backing role table: SecurityRoleAssigned isn't supported by the Power Platform table.
 
Looks like System administration > Security >Assign users to roles
doesn't have a way to export the user list.
 
Trying not to enable API services.

I tried setting auditing on the tables on the securityRole and User tables but I don't see where to set auditing for the SecurityRoleAssigned and I don't see the changes logged to the audit trail.

I am not familiar with the product so please excuse my ignorance.
Categories:
I have the same question (0)
  • Suggested answer
    Abhilash Warrier Profile Picture
    7,274 Super User 2026 Season 1 on at
    Hi,
    Have you tried the below reports under Inquires > Security-
    1. User role assignments
    2.  Security role access
    3.  Role to user assignments
    4.  Security duty assignments
    Enable auditing for user role changes. Although you mentioned difficulty with auditing the SecurityRoleAssigned table, ensure auditing is enabled for related tables like SecurityRole and User. This can help track changes
  • Suggested answer
    Bharath jain Profile Picture
    1,524 Super User 2026 Season 1 on at
    Hi,
     
    You can go to system administration > Security > security configuration
     
    Select Role > click on view permission
     
    You can download all the changes
     
     
    Regards,
    Bharath Jain
  • André Arnaud de Calavon Profile Picture
    303,756 Super User 2026 Season 1 on at
    Hi,
     
    Can you provide the full requirement please? You are mentioning a lot of details in your question, but how are you ising Power Platform, or API services? What exactly do you mean by "setting auditing on the tables"? Did you enable database logging in Dynamics 365 F&O? 
     
    Depending on a complete description of your functional requirement, we can suggest the best option for you. There is a data entity that can be used to list the roles assigned to users. The new User Security Governance also has additional logging and a privileged role assignment feature.
  • DO-03010005-0 Profile Picture
    18 on at
    Thank you all.

    The requirements are simple, to have a team alerted when a user is added to a privilege role. 
    Currently due to leadership decisions beyond my control we have too many System Administrators and System Admins are continually adding others whenever there is an access issue that we are working to prevent.

    Yes we can manually go review a list of System Administrator and then export.
    If there was a way to send this list as csv to email, that would meet my requirement.
     
    We are looking for a way to export this routinely or to alert based on a role change.
     
    Yes I have enabled auditing on both the SecurityRole and User tables, but changes are not tracked.
    When I make a change there is no log in the audit trail.
    I believe this is because neither table handles user assignments too a role.   I believe there is a table not visible in either the Power Platform, the API, or the FNO Solutions listing called: SecurityRoleAssigned ( systemuserroles_association in the N:N relationship map in User entity solution)
     
    If the role user list table was audited in and changes recorded in Audit trail it would meet the requirement.
    If the table was published to Power Platform or accessible to API it would meet the requirement, although I may not be granted approval to change the publishing of this table it if reduces security.
     
    Any suggestions are greatly appreciated. :)
  • DO-03010005-0 Profile Picture
    18 on at
    Any thoughts on why role changes aren't auditable or suggestions to email a list of users?
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    303,756 Super User 2026 Season 1 on at
    Hi,
     
    Thanks for the clarification. I just tried setting up a Power Automate flow to get an alert in case the system admin role is assigned to any user in the application. This is working. 
     
    I will write a more detailed blog, but here already a way to get you started. I my example, as a pre-requisite you will need to have Virtual entities configured for your Dynamics 365 F&O linked to a Power Platform environment.
     
    Go to the form Business events catalog. On the tab Data event catalog find records beginning with DataEvent_SystemSecurityUserRoleAssociationEntity. You can enable these as data event. When a dialog opens with an endpoint, close the form. 
     
    You can then create a Power Automate flow like the one below using the table Security user role association (mserp). In the filter, you can limit the actions to alert only for the System administrator role assignment. You can choose to send an email to yourself, or specify a list. You can also choose to send a mobile or Teams notification in case an user is assigned to the system administrator role. I have attached the Power Automate flow to this reply.

     
  • Vahid Ghafarpour Profile Picture
    12,228 Super User 2026 Season 1 on at

    If any of the responses helped resolve your issue, please take a moment to mark the best answer. This helps others in the community quickly find solutions to similar problems.

    To do this, simply click the "Does this answer your question?" button on the most helpful response and like the helpful posts. If your issue is still unresolved, feel free to provide more details so the community can assist further!

    Thanks for being an active part of the Dynamics 365 Community! 😊

     

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 669

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 445 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 331 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans