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

Restrict Users from Viewing other User Records

(0) ShareShare
ReportReport
Posted on by

Hi!

I am trying to restrict users from viewing other user records (systemuser entity). In the security roles for the entity, I only have the option to set Read privileges to None, Business Unit, Parent: Child Business Unit, or Organization. If I set it to None, the user will not be able to access anything when logging into the CRM. Any other privileges will allow them to view other user records. Any assistance in figuring out a solution is greatly appreciated. Thanks in advance!

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: Restrict Users from Viewing other User Records

    Thanks for the help and responses. I will look further into your suggestions to get this implemented. Thanks again!

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Restrict Users from Viewing other User Records

    Here is what I would do in this situation if I understand you correctly.

    1. Make all fields on the SystemUser entity NOT visible by default

    2. Create a javascript on load that will verify if the current user is the user associated with that SystemUser entity.  If so, go through each control (Xrm.Page.ui.controls) and make them visible.  You want to do it this way because if you make them visible by default and invisible based on user, if it lags some users might see some fields.

    3. Modify the SystemUser views so that no columns are displayed except username.  The SYstemUser view by default will show information that you would want hidden.

  • Community Member Profile Picture
    on at
    RE: Restrict Users from Viewing other User Records

    So, you want a user to be able to go into Administration > Users, see and open up their individual user record and not anyone else, correct?

    Is it OK if they see a user list?  Is it certain information in the user entity you don't want them to see or everything?  Just trying to get more background on the business/admin logic.

  • Verified answer
    ScottDurow Profile Picture
    21 on at
    RE: Restrict Users from Viewing other User Records

    Users will act exactly the same as other records based on the business unit that they belong do, so you'll need to separate out the users in to separate business units if you want to restrict access to them. There is no way of restricting access to only the user's own record unless you have each user in their own business unit!

    msdn.microsoft.com/.../gg334673.aspx

    Hope this helps,

    Scott

  • Community Member Profile Picture
    on at
    RE: Restrict Users from Viewing other User Records

    Not the records owned by the user but the User record itself, which I believe is systemuser entity. I would like to restrict the users to only be able to view their own User record. Hopefully this clarifies my request. Thanks for the response.

  • Suggested answer
    ScottDurow Profile Picture
    21 on at
    RE: Restrict Users from Viewing other User Records

    Hi,

    The only option you have is to prevent the user from seeing users outside of their own business unit by setting it to Business Unit (half full).

    msdn.microsoft.com/.../gg334673.aspx

    Hope this helps,

    Scott

  • Community Member Profile Picture
    on at
    RE: Restrict Users from Viewing other User Records

    So, for example, you would only want the specific owner of an account to view only accounts where he/she is the owner?

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#3
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans