Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

We need query to get information about enterprises roles assigned to users.

vaibhav05
New Contributor II
New Contributor II

Hi Team, 

We need query to get information about enterprises roles assigned to users.

Thanks in advance.

2 REPLIES 2

indra_hema_95
Regular Contributor III
Regular Contributor III

Hi @vaibhav05 

select u.username,r.role_name from users u, role_user_account rua, roles r where rua.userkey=u.userkey and rua.rolekey=r.rolekey and r.roletype=4;

try this please.

Regards,

Indra

Amit_Malik
Valued Contributor II
Valued Contributor II

@vaibhav05 

select u.username,r.role_name from users u
Join user_accounts ua ON u.userkey=ua.userkey
JOIN role_user_account rua ON rua.accountkey=ua.accountkey
Join roles r ON r.rolekey=rua.rolekey
where r.roletype='4'

 

Kind Regards,
Amit Malik
If this helped you move forward, please click on the "Kudos" button.
If this answers your query, please select "Accept As Solution".