authz

Assign a role to a user

Assign one or more roles to a user. Users can have multiple roles.

post/authz/users/{id}/assign

Request

  • Base URL: https://localhost:8080/v1
  • URL: https://localhost:8080/v1/authz/users/{id}/assign
  • Auth: one of:
    • none
    • OAuth 2 (implicit, authorization URL http://to-be-configured-in-the-application-config)

Path parameters

idstring required

The name of the user. Must not contain ',', '"' or control characters, and must be at most 256 bytes.

Request body

rolesstring[]

The roles that are assigned to the specified user.

userType'db' | 'oidc'

The type of the user. db users are managed by Weaviate, oidc users are managed by an external OIDC provider.

Response

Role assigned successfully.

Changes

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