Start a new topic

How to check if user belongs to the group?

Hi,

how can I check if this current user belongs to the specific group? Can pass query to the group API something like that:



`/group/:appKey/query={id=1, user.id=3}`



Thanks
1 Comment

Hi Kath, we currently do not support the type of query you are describing, and only support retrieving a group based on its ID. You could perform a membership check either by retrieving the group using the client and manually iterating over its members, or creating a custom endpoint which accepts a user ID and a group ID, retrieves the group, and checks whether the user is a member.
Login or Signup to post a comment