younifyd
Menu

Assign a role to a user

Assign a role to a user

POST/v1/authz/users/{id}/assign

Use it in a workflow

  1. Add a step and choose the Weaviate connector.
  2. Pick the Assign a role to a user action (under authz).
  3. Fill in the fields below, then reference the result from later steps as {{assignARoleToAUser.response.data}}.

Request

Path parameters

idstringrequired

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

Request body

Enter the body as JSON in the step's Body field.

rolesarray<string>

The roles that are assigned to the specified user.

userTypestring

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

One ofdboidc

json
{
  "roles": [
    "string"
  ],
  "userType": "db"
}

Response

Returns 200 with a any. Read it in later steps with {{assignARoleToAUser.response.data.<field>}}.

Need more? See the Weaviate guide for connection setup and behaviour shared by every action.