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

1 answer

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

Notifications