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

Multiple role with Record level security for a user

(0) ShareShare
ReportReport
Posted on by 727

Hi,

I created two role with record level security. Ex: Role 'A' which contains salestable with customer group 10 only,

Then Role 'B' which contains sales table with customer group 20 only.

If i assigned each role with single user, its working fine.

but if i assigned both role (A and B) to a single user then the sales order details is showing empty.

I dont know, how the record level security roles working together. but what i want means, the sales order should show customer group 10 and 20 records in the details form.
Please advice .


Thanks in advance

*This post is locked for comments

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    300,721 Super User 2025 Season 2 on at
    RE: Multiple role with Record level security for a user

    Hi Boobalan,

    Can you explain if you really used record level security or if you are using extensible data security for it.

    At least XDS cannot do this for you. You have to maintain a table where you can link a user to a customer group then. Then it would be possible to use XDS for this purpose. There is another more expert level trick to create a temporary table and use this for XDS. A method XDS() on this table can be used to fill the table like you want.

  • Suggested answer
    5400 Profile Picture
    7,162 on at
    RE: Multiple role with Record level security for a user

    I am agree with andre, you can create temporary table and populate the required info which you want to secure through XDS method.

    Now you can create query with your primary table, child table and temptable with valid relation. In your case custgroup , salestable and temtable.

    Create the policies with primary table and query and run the scenario.

    Example:

    \Data Dictionary\Tables\DMFMyDefinitionGroups

    \Queries\DMFMyDefinitionGroups

    \Security\Policies\DMFMyDefinitionGroups

  • Boobalan Profile Picture
    727 on at
    RE: Multiple role with Record level security for a user

    Thanks Bhasker and Andre,

    yes Andre,  i used XDS method.

    As Bhasker said,  i created queries with tables and created policies with the respective queries and assign roles also.

    if i assign single role for a single user, i can see values in sales table details, but If i assign two or more than two roles for a user, value doesn't showing.

    Please advise.

  • 5400 Profile Picture
    7,162 on at
    RE: Multiple role with Record level security for a user

    See XDS you can implement as per role or multiple roles or users. I shared one XDS code reference. Did you gone through it.

    In your scenario please populate 10 and 20 customer group in MyCustGroupTable independent of role in XDS method. It should work if you have created correct query and policy as per hierarchy. You can create multiple combination as per your business process to populate the data in your MyCustGroup table.

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
Priya_K Profile Picture

Priya_K 4

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 3

#3
Scott_itD Profile Picture

Scott_itD 2 Community Manager

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans