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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Is it possible to create a security role or security policy or query throw code, not from AOT

(0) ShareShare
ReportReport
Posted on by 1,025

Hi Expert

Is it possible to create a security role or security policy or query throw code, not from AOT?

Thanks

I have the same question (0)
  • GirishS Profile Picture
    27,843 Moderator on at

    Hi,

    What is your business requirement?

    Why you want to create AOT objects by code? Is there any specific reasons for that.

    Thanks,

    Girish S.

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    303,730 Super User 2026 Season 1 on at

    Hi Source258147,

    It is possible to configure security objects, like privileges, duties and security roles in the application. These are maintained and visible on runtime only. If you want to do it via coding yourself, you can review how Microsoft has done this themselves on the security configuration form and using the data entities. There is no option today to configure security policies.

  • source258147 Profile Picture
    1,025 on at

    Thanks andre for your replay

    but the security configuration form create role,duty etc..

    but not create quary , security role

    i want to create a form from this form i generate a XDS and as you know XDS need role, quary, security role, security policy etc

    from where should i start.

  • André Arnaud de Calavon Profile Picture
    303,730 Super User 2026 Season 1 on at

    Hi Soure258147,

    As mentioned above, XDS can't be configured. This would require a customization via the AOT in Visual Studio.

  • source258147 Profile Picture
    1,025 on at

    Thanks Grish for your replay

    there is no business requirement i need to know how to create object like this throw code not from AOT

  • source258147 Profile Picture
    1,025 on at

    i can do this customization throw VS but i dont need this

    another question how this tool build

    https://github.com/TrudAX

    in this tool they can create a class throw code may be if they can create a class can create another object like query

  • André Arnaud de Calavon Profile Picture
    303,730 Super User 2026 Season 1 on at

    To my knowledge, the TRUDUtilsD365 extensions it is generating source code which needs to be built in Visual Studio. I haven't used it myself.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 663

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 439 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 337 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans