Skip to main content
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Answered

Get role information in external app

(0) ShareShare
ReportReport
Posted on by 42

Hi everyone.

Is it possible to get information about what kind of privileges a Security Role has in a C# code?

If it is possible then is it possible to know the level of privilege (User, Business Unit, Organization...)

Thanks.

pastedimage1624887456265v1.png

  • Verified answer
    Nya Profile Picture
    29,060 on at
    RE: Get role information in external app

    Hi,

    Please refer to the following links which may help you.

    (+) Retrieve All Privileges for a Security Role in C# - Microsoft Dynamics 365 Community

    RetrieveRolePrivilegesRoleRequest Class (Microsoft.Crm.Sdk.Messages) | Microsoft Docs

     

    If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.

    Best Regards,

    Nya

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

News and Announcements

Now Available: 2025 Release Wave 2

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 51 Most Valuable Professional

#2
Ramesh Kumar Profile Picture

Ramesh Kumar 42

#3
David Shaw_UK Profile Picture

David Shaw_UK 27

Featured topics

Product updates

Dynamics 365 release plans