Get the groups of a user
Back with a new problem to solve. For my page I need to get the groups of the logged in user. I already know how to get the users for a group, but this time i need the opposite. Can i get the groups in designer with an API or an extension would be a better approach?
Thank you in advance!
Actually a user is not directly within a group but is associated with a group and a role in this group, what is called in Bonita membership.
For a user with id 888, calling
API/identity/membership?p=0&c=10&f=user_id%3d888&d=role_id&d=group_id will give you the information about all the user memberships.
d= is used to get information about the role and the group and not only the unique id of the role and group.