How to know if the current user belongs to a particular group?

Is there any method specifically designed for this, or do I have to iterate over the group array in api.getCurrentUser()?
image

There isn’t a method specifically for it. But you can check membership of a group using something like

api.getCurrentUser().groups.any(g => g.name === "team")
6 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.