Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

User name and their roles

Posted on by 5,005

How to get an User name (first and last) and their roles within CRM. where i have only read only access in prod CRM

*This post is locked for comments

  • sandeepc Profile Picture
    sandeepc 5,005 on at
    RE: User name and their roles

    i need an security role

  • Akanksha Ranjan Profile Picture
    Akanksha Ranjan 460 on at
    RE: User name and their roles

    Hi,

    If you are using D365, you can use User Summary report to see users and their respective security role.

    Sale- > Reports

    Select User Summary report and run the report.

    Click on Export and choose the format you want to export the report.

    Please mark the Answer verified if find helpful.

    Thanks !

  • Suggested answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: User name and their roles

    Hi,

    In XrmToolBox, there is a plugin called User, Team and Security Role Report.

    In this plugin, Load Data and Check All users and security roles selected as shown below. Now select Generate Report.

    1452.1.PNG

    Give a specific location for the report. When the report gets saved in the location, the data for the users and their security roles are also saved as a CSV file in the same location.

    Hope this helps you.

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: User name and their roles

    select user.fullname, user.DomainName,role.Name

    from SystemUser uers  left join SystemUserRoles userrole on user.SystemUserId = userrole.SystemUserId

    inner join Role role on role.RoleId = userrole.RoleId

    where

    user.IsDisabled = 0

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: User name and their roles

    The following query gives the name and Role

    select user.fullname, user.DomainName,role.Name

    from SystemUser uers  left join SystemUserRoles userrole on us.SystemUserId = userrole.SystemUserId

    inner join Role role on role.RoleId = userrole.RoleId

    where

    user.IsDisabled = 0

    Caution:- this needs access to Database.

  • sandeepc Profile Picture
    sandeepc 5,005 on at
    RE: User name and their roles

    ok understood very near what would be the query could you pls help me out. will make as verified

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: User name and their roles

    Hi

    I believe the best idea is to reach out to the support guys.... If your setup is on-prem they must be able to provide you the data with one sql query.

    If it is online some work is needed where they might have to build a app in C# to do the same.

    Since it's production please don't go with installing any other solutions if you are not confident.

    Thanks

    Phanidhar

  • sandeepc Profile Picture
    sandeepc 5,005 on at
    RE: User name and their roles

    ok, it is showing my security role how to find everyones under single spreadsheet

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: User name and their roles

    This is how you can navigate to security roles once you open CRM

    1) Open the user record

    2) Next to the name (which is on middle at the top) on top there will a arrow button.

    3) Once you click this the related entities will be shown where you can find security roles

    Security-roles-one.PNG

    4) If you click on the security roles you will be able to see the roles associated with specific user.

    Thanks

    Phanidhar

  • sandeepc Profile Picture
    sandeepc 5,005 on at
    RE: User name and their roles

    then how can i check arround 370 users  and their  roles in my company

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans