Forum Discussion

peterlu's avatar
peterlu
Champion
8 years ago

what is the api to check if a user is part of a group ?

Hi Mighty Community,

 

Customer want to customise the GROUP module (Designers always come up something). I need an API to check if a user is part of a GROUP or not.

 

I know there is a solution to use the group members v1 API to fetch all group members to check it one by one. This solution is dirty. Reason is first, the rest API only returns max 1000 results. You will have to use multiple REST api to get all the members if the group members total count is larger than 1000. Secondly this is not scalable if a group is very very big.

 

Peter