access_control
enterprise
List roles assigned to a user.
Lists the roles that have been directly assigned to a given user. The list does not include built-in roles (Viewer, Editor, Admin or Grafana Admin), and it does not include roles that have been inherited from a team.
You need to have a permission with action users.roles:read and scope users:id:<user ID>.
get/access-control/users/{userId}/roles
Request
- Base URL/api (relative, and the document was published on a file host, not at the API’s origin)
- URL/api/access-control/users/{userId}/roles
- Auth
- HTTP basic
- or API key in header Authorization
Path parameters
userIdinteger required
Response
(empty)
Changes
No recorded changes to this operation across all 2 revisions of this API.