web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

How to query the assigned roles of each user through ZAP ETL?

(1) ShareShare
ReportReport
Posted on by 20
Hello, I have an ETL setup with ZAP DataHub that extracts all possible information from our Dynamics F&O application. I'm trying to query all of my users and their currently assigned roles, but I can't seem to find the entity or field that links the user information with the roles.

In dynamics, if I consult any user's information, something like this shows up:

 
 
Clearly Dynamics does some internal joins to show the assigned roles of the user, but I can't seem to extract the information. On my ETL (which mind you, was recommended by Microsoft's favorite partner in LATAM but theres sadly not much learning information for it) I have found the table dbo.USERINFO, which basically gives me all the User Details as shown in the image above, but I don't see any field related to roles.
I also have a few tables called SECURITYROLE, and SECURITYSUBROLE, which does give me a list of those roles, but again, no way to link them to each user

What am I missing? I can't seem to find any information regarding this specific case. The automatically generated user-role reports from Dynamics itself are not useful for my needs.
I just need to know what to look for, what field or entity should exist in Dynamics to help me link this information
Categories:
I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    238,024 Most Valuable Professional on at
    The table linking users and roles is called SecurityUserRole. References show that is used in standard entities SystemSecurityUserRoleEntity and SystemSecurityUserRoleAssociationEntity.
  • JS-04112008-0 Profile Picture
    20 on at
    Thank you for your quick response Martin, that's indeed the table I need. 
    Kind regards

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

News and Announcements

Season of Giving Solutions is Here!

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 677 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 394 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 281 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans