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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

REST API to get the list of all the security roles on a record

(0) ShareShare
ReportReport
Posted on by 30
I want to get a fetchXML request to get all the security roles that are applied on a particular record. 
I have the same question (0)
  • Leah Ju Profile Picture
    Microsoft Employee on at
    Hi Partner,
    On a particular record?
    You can't get the security roles for a particular record, you can only view the accessible security roles for the table where a particular record resides.
    In the security role, Table privileges define which tasks a user with access to a table record can do, such as Read, Create, Delete, Write, Assign, Share, Append, and Append To.
    Web API:
    --Dataverse REST Builder tool can help you build code and convert to fetchxml
    1)Get privilege id based on name, table privilege name likeï¼› PrvReadAccount
     --Execution result:
    2)get security role id based on privilege id
    -- --Execution result: you can get list of role id
    3)Retrieve security role name based on role id:

    I hope you can verify my answer if it helps you! If you have any questions, please feel free to contact me.
    Regards,
    Leah

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 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 76

#3
Martin Dráb Profile Picture

Martin Dráb 66 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans