Smith_Warren | 2024-03-07 22:35:00 UTC | #1
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.
Eos_Rios | 2024-03-10 13:41:32 UTC | #2
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.
Smith_Warren | 2024-03-11 14:28:52 UTC | #3
Thanks! It turned out that inactive users were being included in the response which is what tripped me up.
Eos_Rios | 2024-03-11 16:44:40 UTC | #4
Yes it definitely does that. Apparently being deactivated does not remove role assignments.
system | 2024-04-10 16:44:46 UTC | #5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 25081