How to get RoleId from claims coming in when a user login?

I can see the value for the role assigned to the user not the role id

Hey there @shivani welcome to the community!

Roles are only available by name - You could cross reference the Management API /api/v2/roles endpoint but it’s important to take rate limiting into account if calling this API frequently.

Hope this helps to clarify!

1 Like

Hi @tyf are saying we can fetch roleid from the management api ? . Can’t we get in claims identity without making extra api call?

1 Like

Exactly - Unfortunately only role names are exposed in actions via the event.authorization object.

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