User's groups

1
0
-1

Hi, I want to retrieve user's group id in ui designer. How can I do it ?

Thanks in advance

2 answers

1
0
-1
This one is the BEST answer!

Hi,

You can retrieve the logged user id using an external API variable session : ../API/system/session/1
Then you can create a user_groups variable and use the Identity API:
../API/identity/membership?p=0&c=10&f=user_id={{session.user_id}}&d=group_id

HTH Romain

1
0
-1

Hi, I used your answer very well, Thanks. I have one more question, I found group by this approach, and now i want to find user in the group by specific role. For example I have group "risk management" and role "manager". I want to find user who is is manager of risk management.

Thank in advance

Notifications