Getting user roles from user_id

Using just the above user_id retrieved from the session token, is it possible to get the roles of the user?

I’m already above to retrieve roles from the session token, but not sure how to do it in the backend with only the user_id property

Hi @davidplane,

You can get the user’s roles for a specific ID in the BE by calling the Management API’s Get a user’s roles endpoint.

Cheers,
Rueben