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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to Export Role,Duty and Privilege in AX 2012

(0) ShareShare
ReportReport
Posted on by

Hi,

Is there any report or Job in AX 2012 which will give  Role name,Duties assigned to the role and Privileges assign to the duties for the Users.

Regards,

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Sohaib Cheema Profile Picture
    48,805 User Group Leader on at
    RE: How to Export Role,Duty and Privilege in AX 2012

    In standard AX no report with such details.

    Can be developed easily, needs customization.

  • Community Member Profile Picture
    on at
    RE: How to Export Role,Duty and Privilege in AX 2012

    Hi Sohaib,

    I am able to export Roles but how Duties and Privilege can be export. i mean to say which table in Ax contain these Duties and Privilege information.

    Regards,

  • Community Member Profile Picture
    on at
    RE: How to Export Role,Duty and Privilege in AX 2012

    Security duties are in table SecurityTask with Type equal to 1 (SecurityTaskType::Duty).

    Security privileges are in table SecurityTask with Type equal to 0 (SecurityTaskType::Privilege)

    Security process cycles are in table SecurityTask with Type equal to 2 (SecurityTaskType::ProcessCycle).

  • Community Member Profile Picture
    on at
    RE: How to Export Role,Duty and Privilege in AX 2012

    Roles are stored in SecurityRole

    User to role mappings in SecurityUserRole

    Duty to privileges mappings are stored in SecuritySubTask

    Role to duty mappings are stored in SecurityRoleTaskGrant

  • Suggested answer
    Sohaib Cheema Profile Picture
    48,805 User Group Leader on at
    RE: How to Export Role,Duty and Privilege in AX 2012

    Here you go

    select * from securitytask   where Type =1 --Duties
    select * from securitytask   where Type =0 --Privilege


    to get it user wise

    https://tahseenahmed.wordpress.com/2013/05/06/dax-how-to-get-the-list-of-roles-assigned-to-a-user-%E2%80%8F/

  • Community Member Profile Picture
    on at
    RE: How to Export Role,Duty and Privilege in AX 2012

    Hi Sohaib,

    I didnot find table securitytask in AX 2012 R3.

    Regards,

  • Suggested answer
    Sohaib Cheema Profile Picture
    48,805 User Group Leader on at
    RE: How to Export Role,Duty and Privilege in AX 2012

    you will not find it in AOT, because its secured as it is existing in model DB

    you have to write query in X++ to get data from it.

    or create views in AX based on these tables and then use those views.

    if you will try to create an AOT query, you would be able to specify these tables as datasource in properties of query.

  • Community Member Profile Picture
    on at
    RE: How to Export Role,Duty and Privilege in AX 2012

    You will be able to find that tables in systemdocumentation node in AOT.

  • psined Profile Picture
    on at
    RE: How to Export Role,Duty and Privilege in AX 2012

    I know this is an old thread, but I wanted to comment. As others already advised, SecurityTask isn't a real table in CU8. However, I found that there is a SQL view called SecurityTask, which is based on ModelSecurityRole table. On another hand, when I expand records returned by SysSecRoleAddTasks form (filter set to Privileges) to see record info->show all fields, there are RecIds which I can't find by SQL query in SecurityTask view. So I wonder what is SecurityTask view used for?

  • Suggested answer
    Roger M. Profile Picture
    302 on at
    RE: How to Export Role,Duty and Privilege in AX 2012

    Is not better use the option export from AOT?

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 4

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

#2
Guy Terry Profile Picture

Guy Terry 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans