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 :
Dynamics 365 Community / Blogs / CRM TIPS By PRM / SQL Query to get Users with...

SQL Query to get Users with assigned roles from Dynamics CRM

P. R. M Profile Picture P. R. M 739

Below is the query to get the list of users with their roles from Dynamics CRM.

 

select us.DomainName, us.fullname, rl.Name

from SystemUser us  left join SystemUserRoles usrl on us.SystemUserId = usrl.SystemUserId

inner join Role rl on rl.RoleId = usrl.RoleId

where

us.IsDisabled = 0

order by us.FullName



This was originally posted here.

Comments

*This post is locked for comments