Last active
April 12, 2023 22:16
-
-
Save AshV/287c55d6621adf9d29db159f786fd86a to your computer and use it in GitHub Desktop.
FetchXml query to list all Security Roles assigned to Current/LoggedIn user.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<fetch> | |
<entity name="systemuser"> | |
<filter> | |
<condition attribute="systemuserid" operator="eq-userid"/> | |
</filter> | |
<link-entity name="systemuserroles" from="systemuserid" to="systemuserid"> | |
<link-entity name="role" from="roleid" to="roleid" alias="AssignedRole"> | |
<attribute name="name"/> | |
</link-entity> | |
</link-entity> | |
</entity> | |
</fetch> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment