Get the name of a user's role using the Admin API

Q: How do I get the name of a user's role using the Admin API?

  1. Use the User Get One endpoint of the Admin API to get information about a user. Provide the user's ID. This will return the set of data associated with this user.
  2. One of these data entries will be roleId. Copy this value.
  3. Paste the roleId value as a parameter to the Role Get One endpoint of the Admin API.

This will return the set of data associated with this role. One of these entries will be name.