Get role members

Hello,

How can I get the user IDs that have been assigned to a given role? I tried
GET /api/v2/authorization/roles/{roleId}/users

...but it returns some UUIDs that aren't users. Has anyone run into this before... how is this endpoint supposed to work?

Thank you in advance.

Those are absolutely the UUIDs of your users.

You're supposed to cross reference with an actual user lookup/list.

That's why the selfUri of each entity it returns is a lookup to that specific user.

Thanks! It turned out that inactive users were being included in the response which is what tripped me up.

Yes it definitely does that. Apparently being deactivated does not remove role assignments.

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