Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

Security Matrix CRM how to find Security Roles assigned to the user Using SQL Query

$
0
0

The below SQL query is useful to find the Security Roles assigned to the users from database in SQL Server.


SELECT
dbo.RoleBase.Name AS RoleName, dbo.SystemUserBase.FullName, dbo.TeamBase.Name AS TeamName
FROM
dbo.SystemUserBase INNER JOIN
dbo.SystemUserRoles ON dbo.SystemUserBase.SystemUserId = dbo.SystemUserRoles.SystemUserId INNER JOIN
dbo.RoleBase ON dbo.SystemUserRoles.RoleId = dbo.RoleBase.RoleId INNER JOIN dbo.TeamRoles ON dbo.RoleBase.RoleId = dbo.TeamRoles.RoleId INNER JOIN
dbo.TeamBase ON dbo.TeamRoles.TeamId = dbo.TeamBase.TeamId


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>