Skip to main content

Users API

The Users API provides endpoints for managing Grafana users and their profiles.

Get Current User

Get profile information for the currently authenticated user.
integer
User internal ID
string
User unique identifier
string
User email address
string
Username
string
Display name
boolean
Whether user has Grafana admin privileges

Get User by ID

Retrieve user information by user ID.
integer
required
User ID

Get User by Login or Email

Lookup a user by login name or email address.
string
required
Username or email address to lookup

Update Current User

Update the current user’s profile.
string
Email address
string
Display name
string
Username
string
UI theme: “light” or “dark”

Update User

Update a user by their ID (admin only).
integer
required
User ID

Change Password

Change the current user’s password.
string
required
Current password
string
required
New password
string
required
Confirm new password

Get User Organizations

Get all organizations for a specific user.
integer
required
User ID
integer
Organization ID
string
Organization name
string
User’s role in the organization: “Admin”, “Editor”, or “Viewer”

Get Current User Organizations

Get organizations for the currently authenticated user.

Get User Teams

Get all teams for a specific user.
integer
required
User ID

Switch User Organization

Switch the current user’s active organization.
integer
required
Organization ID to switch to

Search Users

Search for users (deprecated - use search with paging instead).
integer
default:"1000"
Number of users per page
integer
default:"1"
Page number

Search Users with Paging

Search for users with pagination support.
string
Search query (searches name, login, and email fields)
integer
default:"1000"
Number of users per page
integer
default:"1"
Page number

Permissions

If you are running Grafana Enterprise with Fine-grained access control enabled:
  • Read user: Requires users:read permission
  • Update user: Requires users:write permission with scope users:id:<id>
  • Create user: Requires users:create permission
  • Delete user: Requires users:delete permission with scope users:id:<id>