younifyd
Menu

Remove permissions from a role

Remove permissions from a role

POST/v1/authz/roles/{id}/remove-permissions

Use it in a workflow

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

Request

Path parameters

idstringrequired

The name of the role being modified.

Request body

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

permissionsarray<object>required

Permissions to remove from the role.

backupsobject1 fields

Resources applicable for backup actions.

dataobject3 fields

Resources applicable for data actions.

nodesobject2 fields

Resources applicable for cluster actions.

usersobject1 fields

Resources applicable for user actions.

groupsobject2 fields

Resources applicable for group actions.

tenantsobject2 fields

Resources applicable for tenant actions.

rolesobject2 fields

Resources applicable for role actions.

collectionsobject1 fields

Resources applicable for collection and/or tenant actions.

replicateobject2 fields

resources applicable for replicate actions

aliasesobject2 fields

Resource definition for alias-related actions and permissions. Used to specify which aliases and collections can be accessed or modified.

namespacesobject1 fields

Resources applicable for namespace actions.

actionstringrequired

Allowed actions in weaviate.

One ofmanage_backupsread_backupsread_clustercreate_dataread_dataupdate_datadelete_dataread_nodescreate_rolesread_rolesupdate_rolesdelete_rolescreate_collectionsread_collectionsupdate_collectionsdelete_collectionsassign_and_revoke_userscreate_usersread_usersupdate_usersdelete_userscreate_tenantsread_tenantsupdate_tenantsdelete_tenantscreate_replicateread_replicateupdate_replicatedelete_replicatecreate_aliasesread_aliasesupdate_aliasesdelete_aliasesassign_and_revoke_groupsread_groupscreate_mcpread_mcpupdate_mcpmanage_namespaces

json
{
  "permissions": [
    {
      "action": "manage_backups",
      "backups": {
        "collection": "*"
      },
      "data": {
        "collection": "*",
        "tenant": "*",
        "object": "*"
      },
      "nodes": {
        "verbosity": "minimal",
        "collection": "*"
      },
      "users": {
        "users": "*"
      },
      "groups": {
        "group": "*",
        "groupType": "oidc"
      },
      "tenants": {
        "collection": "*",
        "tenant": "*"
      },
      "roles": {
        "role": "*",
        "scope": "match"
      },
      "collections": {
        "collection": "*"
      },
      "replicate": {
        "collection": "*",
        "shard": "*"
      },
      "aliases": {
        "collection": "*",
        "alias": "*"
      },
      "namespaces": {
        "namespace": "*"
      }
    }
  ]
}

Response

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

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