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)

Extract the list of security roles, duties and privileges from Dynamics AX?

(0) ShareShare
ReportReport
Posted on by 333

How can we add privileges and duties to this list?

I am looking for

Roles

-Privileges

--duties

we are going through an upgrade and i need to export this data into a spreadsheet.  Please help!

*This post is locked for comments

I have the same question (0)
  • nmaenpaa Profile Picture
    101,160 Moderator on at

    Hi, you posted your message in a discussion that was some years old, already marked as verified answer, and the topic was slightly different. So, I separated your question into a new thread.

    The old discussion was about exporting security roles (community.dynamics.com/.../234365).

    Now you say you want to export duties and privileges. Do you mean you want to export three lists: one containig all roles, one containing all duties, and one containing all privileges? Or do you want some kind of hierarchical export where you see which duties belong to which roles etc?

  • ScorpioDax Profile Picture
    333 on at

    Hi Nikolaos,

    Thanks for replying and i appreciate your time.

    "Or do you want some kind of hierarchical export where you see which duties belong to which roles etc?"

    Yes correct, i am looking for a report that shows all Roles in the system then what privileges belong to that and what duties belong to those privileges .

    You would be the AX God if you can do this.  I cannot find this anywhere.

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    Maybe this helps: anithasantosh.wordpress.com/.../extract-security-objects-details-for-a-role

  • ScorpioDax Profile Picture
    333 on at

    Tried this code and i got this error...

    "CommaTextIo object not initialized.

    Stack trace

    (C)\Jobs\Security_Report - line 93"

    So i updated line 45 "Filename   filename " to "Filename  filename = "C:\\Excel.xlsx";

    but still getting the same error...can you help?

  • ScorpioDax Profile Picture
    333 on at

    I would also be okay with just Roles and privileges for now if you can help with that.

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    For me the "CommaTextIO" error went away when I specified filename "C:\\temp\\test.csv". You can also try to run AX as administrator.  But I faced some other issue with a treenode object. So you would need to debug and try to understand the code and where it goes wrong.

    And you can to try to find other articles as well, I just googled "dynamics ax export roles duties privileges excel" and found the above article.

  • ScorpioDax Profile Picture
    333 on at

    Yes i got the same treenode issue, i will go back to google, thanks for trying to help!!

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