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

Cannot find newly created security roles / duty / privileges in AOT ? and how is the naming ?

(0) ShareShare
ReportReport
Posted on by 309

Hello guys,

When we create new Security roles \ duty \ privileges in D365 F&O (UI), where is this newly created can be found in AOT Visual Studio ?

And how exactly the naming / description ? as in UI we can only type the name / description in "humanized" word whereby usually from technical POV inside Visual Studio we usually create it by more technical word like prefix of our model with underscore etc then we give them the easy to understand description.

Thanks,

I have the same question (0)
  • Martin Dráb Profile Picture
    237,643 Most Valuable Professional on at
    RE: Cannot find newly created security roles / duty / privileges in AOT ? and how is the naming ?

    If you define these elements in UI, they're stored as data in database, not in AOT. If it created AOT elements, they would be overwritten on ther next deployment, therefore it wouldn't be very useful for end users.

  • Axel Cage Profile Picture
    309 on at
    RE: Cannot find newly created security roles / duty / privileges in AOT ? and how is the naming ?

    So in other word, securities created from UI also not useful for technic POV ? I mean we cannot reach / reuse in Visual Studio ?

    Thanks

  • Martin Dráb Profile Picture
    237,643 Most Valuable Professional on at
    RE: Cannot find newly created security roles / duty / privileges in AOT ? and how is the naming ?

    Well, it's the same with any other data. You can use code to access data in database, but you won't see individual table records as elements in AOT.

    If you want roles, duties etc. in AOT, define them in AOT, not as data.

  • André Arnaud de Calavon Profile Picture
    300,680 Super User 2025 Season 2 on at
    RE: Cannot find newly created security roles / duty / privileges in AOT ? and how is the naming ?

    Hi Axel,

    The development environment and application have been split in Dynamics 365 F&O. When you publish the security configuration changes, it will create runtime objects on that specific environment only.

    Alex Meyer created a tool to bring configurations to the AOT: Moving D365FO security from user interface to AOT - Alex Meyer (alexdmeyer.com)

    Anyway, I would suggest using Visual Studio directly if you want to reuse elements in your customizations. 

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

#1
Martin Dráb Profile Picture

Martin Dráb 776 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 402 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans