Skip to main content

Notifications

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 305

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,

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 292,111 Super User 2025 Season 1 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. 

  • Martin Dráb Profile Picture
    Martin Dráb 230,934 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.

  • Axel Cage Profile Picture
    Axel Cage 305 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
    Martin Dráb 230,934 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.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,111 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,934 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans