Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Get Login User Privilege Level to User Entity

Posted on by 676

Hi Experts,

Client wants to give their users the ability to set or change their primary picture. The least privilege we can give to System User entity is at Business Unit level privilege. Clients do not want Users of the same Business Unit be able to change other User details/primary picture. 

Currently, we are only allowing users to update System User record if:

1. They are updating their own System User record.

2. They have System Admin security role.

We would like to add another validation that check if User Security Role has Global/Organization level privilege to System User entity.

How can we check for the Privilege Dept of current login user to System User entity in plugin? Thanks.

*This post is locked for comments

  • Suggested answer
    Radu Chiribelea Profile Picture
    Radu Chiribelea 6,667 on at
    RE: Get Login User Privilege Level to User Entity

    Hello,

    I would have a look at the RetrieveUserPrivilegesRequest request : docs.microsoft.com/.../gg308232(v%3Dcrm.8).

    In the response this contains a RolePrivilleges array docs.microsoft.com/.../gg326701%28v%3dcrm.8%29, where each RolePrivilege has a Depth Property.

    Hope this helps,

    Radu

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans