User management
Manage users and their role assignments, and look up users and roles.
These endpoints are only available in InfluxDB 3 Enterprise. User authentication is a preview feature enabled by starting the server with --without-user-auth false.
/api/v3/roles_by_name/{roleName}Get a role by name
Returns the role with the specified name.
Requires a token or user with permission to read roles.
This endpoint is only available in InfluxDB 3 Enterprise. User authentication is a preview feature enabled by setting --without-user-auth false.
Parameters
Path parameters
roleName
required
stringcurl --request GET \
"https://localhost:8181/api/v3/roles_by_name/{roleName}" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
createdAt
required
integer <int64>description
stringid
required
integer <int64>isRequiredRole
required
booleanname
required
stringupdatedAt
required
integer <int64>{
"createdAt": 1717000000,
"id": 1,
"isRequiredRole": false,
"name": "read-write",
"updatedAt": 1717000000
}data
objecterror
stringdata
objecterror
stringdata
objecterror
string/api/v3/roles/{id}/permissionsGet a role's permissions
Returns the permissions granted to the role with the specified ID.
Requires a token or user with permission to read roles.
This endpoint is only available in InfluxDB 3 Enterprise. User authentication is a preview feature enabled by setting --without-user-auth false.
Parameters
Path parameters
id
required
integer <int64>curl --request GET \
"https://localhost:8181/api/v3/roles/{id}/permissions" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
permissions
required
object[]data
objecterror
stringdata
objecterror
stringdata
objecterror
string/api/v3/users_by_oauth_id/{oauth_id}Get a user by OAuth identity-provider ID
Returns the user associated with the specified OAuth identity-provider ID. Requires the server to be configured with an OAuth validator.
Requires a token or user with permission to read users.
This endpoint is only available in InfluxDB 3 Enterprise. User authentication is a preview feature enabled by setting --without-user-auth false.
Parameters
Path parameters
oauth_id
required
stringcurl --request GET \
"https://localhost:8181/api/v3/users_by_oauth_id/{oauth_id}" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
createdAt
required
integer <int64>deletedAt
integer <int64>displayName
stringoauthId
stringoperatorToken
stringrequiresPasswordReset
booleanupdatedAt
required
integer <int64>userId
required
integer <int64>username
string{
"createdAt": 1717000000,
"displayName": "Jane Smith",
"requiresPasswordReset": false,
"updatedAt": 1717000000,
"userId": 1,
"username": "jsmith"
}data
objecterror
stringdata
objecterror
stringdata
objecterror
string/api/v3/users/{id}Update a user's information
Updates a user’s profile information. Currently, only the user’s display name can be updated.
Requires a token or user with permission to update users.
This endpoint is only available in InfluxDB 3 Enterprise. User authentication is a preview feature enabled by setting --without-user-auth false.
Parameters
Path parameters
id
required
integer <int64>Request body required
application/jsondisplayName
string{
"displayName": "Jane Smith"
}curl --request PATCH \
"https://localhost:8181/api/v3/users/{id}" \
--header "Authorization: Bearer INFLUX_TOKEN" \
--header "Content-Type: application/json" \
--data-raw '{"displayName":"Jane Smith"}'Responses
createdAt
required
integer <int64>deletedAt
integer <int64>displayName
stringoauthId
stringoperatorToken
stringrequiresPasswordReset
booleanupdatedAt
required
integer <int64>userId
required
integer <int64>username
string{
"createdAt": 1717000000,
"displayName": "Jane Smith",
"requiresPasswordReset": false,
"updatedAt": 1717000000,
"userId": 1,
"username": "jsmith"
}Request failed. Possible reasons:
- Invalid database name
- Malformed request body
- Invalid timestamp precision
data
objecterror
stringdata
objecterror
stringdata
objecterror
stringdata
objecterror
string/api/v3/users/{id}Delete a user
Soft deletes a user. A user can self-delete as long as they are not the last remaining user; the last user can only be deleted with an operator token. Deleting a user revokes all of that user’s refresh tokens.
Requires a token or user with permission to delete users.
This endpoint is only available in InfluxDB 3 Enterprise. User authentication is a preview feature enabled by setting --without-user-auth false.
Parameters
Path parameters
id
required
integer <int64>curl --request DELETE \
"https://localhost:8181/api/v3/users/{id}" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
deletedAt set.createdAt
required
integer <int64>deletedAt
integer <int64>displayName
stringoauthId
stringoperatorToken
stringrequiresPasswordReset
booleanupdatedAt
required
integer <int64>userId
required
integer <int64>username
string{
"createdAt": 1717000000,
"displayName": "Jane Smith",
"requiresPasswordReset": false,
"updatedAt": 1717000000,
"userId": 1,
"username": "jsmith"
}data
objecterror
stringdata
objecterror
stringdata
objecterror
string/api/v3/users/{id}/require-password-resetRequire a user to reset their password on next login
Marks the specified user as requiring a password reset. The user must set a new password before they are able to authenticate and receive a token.
Requires a token or user with permission to update users.
This endpoint is only available in InfluxDB 3 Enterprise. User authentication is a preview feature enabled by setting --without-user-auth false.
Parameters
Path parameters
id
required
integer <int64>curl --request POST \
"https://localhost:8181/api/v3/users/{id}/require-password-reset" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
requiresPasswordReset set to true.createdAt
required
integer <int64>deletedAt
integer <int64>displayName
stringoauthId
stringoperatorToken
stringrequiresPasswordReset
booleanupdatedAt
required
integer <int64>userId
required
integer <int64>username
string{
"createdAt": 1717000000,
"displayName": "Jane Smith",
"requiresPasswordReset": false,
"updatedAt": 1717000000,
"userId": 1,
"username": "jsmith"
}data
objecterror
stringdata
objecterror
stringdata
objecterror
string/api/v3/users/{id}/rolesList all roles assigned to a user
Lists all roles assigned to the specified user.
Requires a token or user with permission to read users.
This endpoint is only available in InfluxDB 3 Enterprise. User authentication is a preview feature enabled by setting --without-user-auth false.
Parameters
Path parameters
id
required
integer <int64>curl --request GET \
"https://localhost:8181/api/v3/users/{id}/roles" \
--header "Authorization: Bearer INFLUX_TOKEN"Responses
items
required
object[]data
objecterror
stringdata
objecterror
stringdata
objecterror
string/api/v3/users/{id}/rolesReplace all roles assigned to a user
Replaces all role assignments for the specified user with the provided list of role IDs. Roles not included in the request are removed from the user.
Requires a token or user with permission to update users.
This endpoint is only available in InfluxDB 3 Enterprise. User authentication is a preview feature enabled by setting --without-user-auth false.
Parameters
Path parameters
id
required
integer <int64>Request body required
application/jsonroleIds
required
integer[]{
"roleIds": [
1,
2
]
}curl --request PUT \
"https://localhost:8181/api/v3/users/{id}/roles" \
--header "Authorization: Bearer INFLUX_TOKEN" \
--header "Content-Type: application/json" \
--data-raw '{"roleIds":[1,2]}'Responses
items
required
object[]Request failed. Possible reasons:
- Invalid database name
- Malformed request body
- Invalid timestamp precision
data
objecterror
stringdata
objecterror
stringdata
objecterror
stringdata
objecterror
stringWas this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for InfluxDB 3 Enterprise and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support. Customers using a trial license can email trial@influxdata.com for assistance.