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