PARTNERS - Please join us for our upcoming webinar:
Leveraging Intelligent Recommendations for Operational Transformation.
AMS Partners click HERE | EMEA/APJ Partners click HERE

Query that reports SAV roles assigned to the user

sharu
New Contributor
New Contributor

Hi Team,

Need a sql query that reports all the SAV roles assigned to user.

Thanks,

Sharanya V

1 REPLY 1

rushikeshvartak
All-Star
All-Star

rushikeshvartak_0-1722911467317.png

SELECT u.username  AS 'Username',
       u.statuskey AS 'User Status',
       s.rolename  AS 'Role Name'
FROM   users u
       LEFT JOIN user_savroles us
              ON u.userkey = us.userkey
       LEFT JOIN savroles s
              ON us.rolekey = s.rolekey
WHERE  u.statuskey = 1
ORDER  BY u.username,
          s.rolename; 

 

NOTE : Create analytics report savroles  is not exposed in data analyzer


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.