Is there a way of getting a member’s roles from the backend? I’m writing an API for use by an external app and I’d like to be able to assign members roles for use by the app.
At the moment I am getting member details by querying the PrivateMembersData collection but the details returned don’t include their roles. I see there’s an API for getting the current user’s roles, but this won’t work in the backend.
I suppose I could use badges for this purpose, but it would seem more intuitive to use roles.
Thanks. But as far as I can see that only gets the roles of the currently logged-in member. What I want to be able to do is get the roles for any member, eg by id or loginEmail. Is there a way of doing that?
Hi Olev,
I checked with the team, and we only support this for the currently logged-in member. However, they are interested in learning about your use case, so please share some details here that I can pass along to the team. Thanks!