younifyd
Menu

Assign a role to a group

Assign a role to a group

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

Use it in a workflow

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

Request

Path parameters

idstringrequired

The name of the group. 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 to assign to the specified group.

groupTypestring

If the group contains OIDC or database users.

One ofoidc

json
{
  "roles": [
    "string"
  ],
  "groupType": "oidc"
}

Response

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

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