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 :
Microsoft Dynamics AX (Archived)
Answered

XDS Security on InventSum

(0) ShareShare
ReportReport
Posted on by 965

Hi,

I have a requirement to create security roles for some users where they should only be able to "see" certain warehouses.

I've managed to use XDS and all is working fine. However, when working with Transfer Orders they can only see the transfer orders shipped from their warehouses but not the ones arriving.

My question is, what is the best approach to find a solution for this? Can we overcome XDS security on this particular form? Has someone any experience on this?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    You could disable XDS from code on-demand with XDSServices class, give it a try:

    daxtarkowski.wordpress.com/.../disabling-xds-security-on-demand

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

    Hi Javier,

    You can also try to create a temporary table with an xds() method which returns a list with "my" transfer orders. Then you can apply x++ logic to define which transfer orders would be visible. Note that it might cause performance problems with large number of transfer orders that needs to be visible. If you filter on e.g. active and only certain warehouses, it might be OK, but you have to test it. An example is the table MyRoles. In the security policy you can then use this table as basic input for transfer orders. Possibly you have to create a separate security policy for the transfer orders.

  • Javirrubio Profile Picture
    965 on at

    Thank you Vilmos.

    I've added the code into the Init method in the InventTransferOrder form but I still can't see the lines when the FROM warehouse is not in my XDS policy

  • Verified answer
    Mea_ Profile Picture
    60,286 on at

    Hi Javier Rubio,

    Where exactly did you put your code ? You may consider disabling it in executeQuery() of datasource before super() and enabling after.

  • Suggested answer
    Mahmoud Hakim Profile Picture
    17,887 on at

    try to apply record level security on transfer order table (from warehouse/to warehouse/status) fields

  • Javirrubio Profile Picture
    965 on at

    Late reply, sorry. This exactly sorted my problem. Thank you very much

  • DMaria Profile Picture
    285 on at

    Hi,

    Can you give an example using extensions?

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

    I just released a related blog post around this topic: kaya-consulting.com/extensible-data-security-examples-secure-by-warehouse

    @DMaria, Can you possible create a new question on the Dynamics 365 for Finance and Operations forum with some more background information on your question? This post was related to AX2012.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Andrew Jones a1x Profile Picture

Andrew Jones a1x 2

#3
GL-01081504-0 Profile Picture

GL-01081504-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans