Identify Users having specific privileges | CloudFronts

Identify Users having specific privileges

Introduction:

This blog consists of information on how you can find the users having specific privileges and in which role they have the privileges.

Solution:

Make use of the below Fetch XML to identify who has access to prvReadAccount related to his Role.

The fetch can be performed on System User level or for teams.

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false" >

<entity name="privilege" >

<attribute name="name" />

<link-entity name="roleprivileges" from="privilegeid" to="privilegeid" alias="pu" link-type="inner" >

<link-entity name="role" from="roleid" to="roleid" alias="rpu" link-type="inner" >

<attribute name="name" />

<link-entity name="systemuserroles" from="roleid" to="roleid" alias="sr" link-type="inner" >

<link-entity name="systemuser" from="systemuserid" to="systemuserid" alias="srr" link-type="inner" >

<attribute name="systemuserid" />

<attribute name="fullname" />

</link-entity>

</link-entity>

</link-entity>

</link-entity>

<filter type="and" >

<condition attribute="name" operator="eq" value="prvReadAccount" />

</filter>

</entity>

</fetch>

Response:

SystemUserResponse

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false" >

<entity name="privilege" >

<attribute name="name" />

<link-entity name="roleprivileges" from="privilegeid" to="privilegeid" alias="pt" link-type="inner" >

<link-entity name="role" from="roleid" to="roleid" alias="rpt" link-type="inner" >

<attribute name="name" />

<link-entity name="teamroles" from="roleid" to="roleid" alias="tr" link-type="inner" >

<link-entity name="team" from="teamid" to="teamid" alias="trr" link-type="inner" >

<attribute name="teamid" />

<attribute name="name" />

</link-entity>

</link-entity>

</link-entity>

</link-entity>

<filter type="and" >

<condition attribute="name" operator="eq" value="prvReadAccount" />

</filter>

</entity>

</fetch>

TeamResponse


Share Story :

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close