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’s source URL is not known)
  • URL
    /api/access-control/users/{userId}/roles
  • Auth
    • HTTP basic
    • or API key in header Authorization

Path parameters

userIdinteger required

Query parameters

includeHiddenboolean
targetOrgIdinteger

Response

(empty)

createdstring date-time required
delegatableboolean
descriptionstring required
displayNamestring required
globalboolean
groupstring required
hiddenboolean
mappedboolean
namestring required
uidstring required
updatedstring date-time required
versioninteger required

Changes

No recorded changes to this operation across all 1 revision of this API.