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 AX (Archived)

Need to get information about users from table.

(0) ShareShare
ReportReport
Posted on by

hello all,

i want to know that which user has which role and privileges in ax. is it possible for me to get this information from tables? if yes then which tables can help me to get this information out? thanks

Hassan

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    Take a look at the Security* / SysSecurity* tables in System documentation > Tables > Right click > Table browse.

    They are part of the AX _model database in SQL Server.

  • Community Member Profile Picture
    on at

    i can not find these tables in aot

  • ColbyGallagher Profile Picture
    3,666 on at

    Dont look in the Data Dictionary node of the AOT, you need to be down in the System Documentation node.  

  • Community Member Profile Picture
    on at

    i know. and i find from there. but i did't find anything there

  • Suggested answer
    Mea_ Profile Picture
    60,284 on at

    Hi Hassan Ghauri,

    Please check this blog post msdax.wordpress.com/.../security-jobs-related-to-dynamics-ax-2012-role-based-security it has code snippets showing how to work with this tables in AX.

  • Community Member Profile Picture
    on at

    hi

    what if i need to get a list of all users with their roles and duties as well. what i have to do with this job?

    please

  • Suggested answer
    Brandon Wiese Profile Picture
    17,788 on at

    The table SECURITYUSERROLE in the business database links users to security roles as assigned in the AX user interface.  Then the table SECURITYUSERROLECONDITION itemizes the DATAAREA's assigned to each user/security role combination.  Note that if there are no records in the SECURITYUSERROLECONDITION, then the user effectively is granted all DATAAREA.  Also note that the --SYSADMIN-- role is implicitly granted access to all resources.  Note that a user to security role relationship can be enabled or disabled with the ASSIGNMENTSTATUS field.  And, of course, users can be enabled or disabled.

    You can explode roles into sub-roles using the SECURITYROLEEXPLODEDGRAPH view in the model store to explode roles into sub-roles.  Note that these relationships can be enabled or disabled, and that field is available in the output.  Finally, you can explode roles into duties and privileges using the SECURITYTASKEXPLODEDGRAPH view in the model store.

    In other words, if you want to explode all of this data into an accurate representation of how AX will grant security to the user, you have a lot of pieces to put together, and a lot of subtleties to understand.  It gets even harder when security is implied through menu items through linked permissions.

    The XU_SecurityLoadRoles stored procedure details exactly how AX compiles all of this into a cached security profile for a role or set of roles.  Trust me, it's not easy to follow.

    Once security is compiled for a role, that information is available in various tables in the model store, such as MODELSECURITYPERMISSIONCACHE.

  • Mea_ Profile Picture
    60,284 on at

    Rewrite it to meat your requirements. It's just an example how to work with those tables. Do you have any specific questions ? like you don't know what tables to use or maybe you don't know how to write x++ select statements.

  • Community Member Profile Picture
    on at

    actually i am not technical person so i do;t know which tables can be used for this purpose. can you help me?

  • Brandon Wiese Profile Picture
    17,788 on at

    You should start by finding a technical person to work with you directly.  You're not going to figure it out by trial and error with the help of an online forum.

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 AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans