Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Need to find all ENABLED users who doesn't have any security role assigned.

Posted on by 320

Hi,

Need to find all ENABLED users who doesn't have any security role assigned.

*This post is locked for comments

  • sai123456 Profile Picture
    sai123456 320 on at
    RE: Need to find all ENABLED users who doesn't have any security role assigned.

    Got the list, you have a "Users with no assigned security roles" in System Views for Users.

  • Suggested answer
    gtwynstra Profile Picture
    gtwynstra 510 on at
    RE: Need to find all ENABLED users who doesn't have any security role assigned.

    You could use the out of the box "User Summary" report.  Just adjust the filter to have Status = enabled and then look for the "No Role" column.

    2017_2D00_10_2D00_17_5F00_18_2D00_39_2D00_17.png

  • ashlega Profile Picture
    ashlega 34,475 on at
    RE: Need to find all ENABLED users who doesn't have any security role assigned.

    Hi,

     in theory, you should be able to use advanced find in V9.. but it does not seem to work as it should.. you can also try this url (once you have logged into Dynamics) - just replace the org url, and, then, copy-paste to the address bar:

    https://<YOUR_ORG_URL>/api/data/v8.2/systemusers?fetchXml=<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true">

     <entity name="systemuser">

       <attribute name="fullname" />

       <attribute name="businessunitid" />

       <attribute name="title" />

       <attribute name="address1_telephone1" />

       <attribute name="positionid" />

       <attribute name="systemuserid" />

       <order attribute="fullname" descending="false" />

       <link-entity name="systemuserroles" from="systemuserid" to="systemuserid" link-type="outer">

         <link-entity name="role" from="roleid" to="roleid" link-type="outer" alias="ab" />

       </link-entity>

       <filter type="and">

         <condition entityname="ab" attribute="roleid" operator="null" />

         <condition attribute="isdisabled" operator="eq" value="true"/>

       </filter>

     </entity>

    </fetch>

  • Suggested answer
    Zaid Tariq Profile Picture
    Zaid Tariq 2,266 on at
    RE: Need to find all ENABLED users who doesn't have any security role assigned.

    Hi,

    You may find your answer here: crmbook.powerobjects.com/.../security-roles

    Let me know in either case. Thanks

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans