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 CRM (Archived)

Get Login User Privilege Level to User Entity

(0) ShareShare
ReportReport
Posted on by 680

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

I have the same question (0)
  • Suggested answer
    Radu Chiribelea Profile Picture
    6,667 on at

    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

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans