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)

Security Roles Advanced find

(0) ShareShare
ReportReport
Posted on by 3,710

Guys, how to retrieve the Security roles for the all the users in advanced find! 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Gopalan Bhuvanesh Profile Picture
    11,401 on at
    RE: Security Roles Advanced find

    Hi

    Please use User Summary Report or use XrmToolBox.

    UserSummaryReportCapture.PNG

  • Suggested answer
    Nithya Gopinath Profile Picture
    17,078 on at
    RE: Security Roles Advanced find

    Hi Kishor Kumar,

    You could use the out of the box User Summary Report.

    See: http://www.powerobjects.com/2013/05/16/dynamics-crm-user-summary-report/

    You could also use the following FetchXML query.

    <fetch mapping="logical" count="50" version="1.0">
      <entity name="systemuser">
        <attribute name="fullname" />
        <link-entity name="systemuserroles" from="systemuserid" to="systemuserid">
          <link-entity name="role" from="roleid" to="roleid">
            <filter>
              <condition attribute="name" operator="not-null"/>
            </filter>
          </link-entity>
        </link-entity>
      </entity>
    </fetch>

    See: https://community.dynamics.com/crm/b/crmmitchmilam/archive/2010/07/20/creating-a-query-to-find-all-users-with-a-specified-security-role

    Hope this helps.

  • Kishor Kumar Profile Picture
    3,710 on at
    RE: Security Roles Advanced find

    Thanks Nithya and Gopalan, how to retrieve only the enabled security roles alone

    ?

  • Suggested answer
    Nithya Gopinath Profile Picture
    17,078 on at
    RE: Security Roles Advanced find

    Hi,

    You could add the condition attribute user status equals enabled in Fetch XML.

  • Suggested answer
    Nithya Gopinath Profile Picture
    17,078 on at
    RE: Security Roles Advanced find

    You could also use Advanced Find fro the same.

    3051.1.PNG

    Hope this helps.

  • Kishor Kumar Profile Picture
    3,710 on at
    RE: Security Roles Advanced find

    Hi Nithya, we are not going to run a report we are just want to know the security roles of the user's in the organization only. Let me know if any changes that can bring me the report of security roles of the enabled users only.

     Like curious to know, when we run that built in  report called"User Summary " in  Enabled user will it fetch only the enabled users?

  • Suggested answer
    Nithya Gopinath Profile Picture
    17,078 on at
    RE: Security Roles Advanced find

    Hi Kishor,

    As I suggested above, use the advanced find to know enabled users.

  • Verified answer
    Nithya Gopinath Profile Picture
    17,078 on at
    RE: Security Roles Advanced find

    Hi Kishor Kumar,

    You could use the following way.

    Get the results of enabled users using the advanced find below.

    2183108.2.PNG

    View the results and select all of them.

    Click on Run Report in the Command Bar. Select User Summary report.

    Select Reports window appears as follows.

    2183108.2.PNG

    Select the option The selected records.

    This will give the report of enabled users only.

    Hope this helps.

  • Suggested answer
    Gopalan Bhuvanesh Profile Picture
    11,401 on at
    RE: Security Roles Advanced find

    Hi

    When you are in Users home page, select the Enabled Users view, then click the Users Summary report,

    Now you can choose your option to select all the records in the list or Selected records.

    This way you can obtain what you want.

    In Advanced find you can get the list of Security Roles for a single user only. Because you cannot display matrix in Advanced find.

  • Suggested answer
    ashlega Profile Picture
    34,477 on at
    RE: Security Roles Advanced find

    You can also build a new report using CRM report wizard and get this kind of summary:

    l5.PNG

    Just add users as a main entity, security roles as a related entity, then use user name fro the group name and role name for the columns..

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
Community Member Profile Picture

Community Member 2

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans