cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Translate the entire conversation x

Is there any API to get the roles of a User?

OP_11714882
7-Bedrock

Is there any API to get the roles of a User?

Is there any API to get all the roles of a specific user?

ACCEPTED SOLUTION

Accepted Solutions

If you are referring to roles like in contexts like Projects, Libraries and Product areas, yes. Its a bit more complicated but each Role you see is actually a group so just WTGroup, or a group of a group. This was my Query Builder report to figure out the relationships. Starting with the Team (wt.inf.team.ContainerTeam), this is the main list of "Roles" for a context. That is linked to a groups (G1) via a RolePrincipalMap object. Finally the group which shares the same name as the role (CCB in my image which is a WTGroup), holds the list of users.

avillanueva_0-1733835305714.png

Its a bit complicated so you'll need a few APIs to get your answer.

View solution in original post

3 REPLIES 3

If you are referring to roles like in contexts like Projects, Libraries and Product areas, yes. Its a bit more complicated but each Role you see is actually a group so just WTGroup, or a group of a group. This was my Query Builder report to figure out the relationships. Starting with the Team (wt.inf.team.ContainerTeam), this is the main list of "Roles" for a context. That is linked to a groups (G1) via a RolePrincipalMap object. Finally the group which shares the same name as the role (CCB in my image which is a WTGroup), holds the list of users.

avillanueva_0-1733835305714.png

Its a bit complicated so you'll need a few APIs to get your answer.

@avillanueva
could you please share your report?

 

Following your directions I am a little bit in trouble to recreate it in my system.

 

Thank you

 

Marco

Zipped QML loaded. You can remove any of the conditions  that do not apply for you.

Announcements

Top Tags