younifyd
Menu

Update Roles By Id Management Permissions By Role Id

Update roles by id management permissions by role id

PUT/admin/realms/{realm}/roles-by-id/{role-id}/management/permissions

Use it in a workflow

  1. Add a step and choose the Keycloak connector.
  2. Pick the Update Roles By Id Management Permissions By Role Id action (under Roles (by ID)).
  3. Fill in the fields below, then reference the result from later steps as {{updateRolesByIdManagementPermissionsByRoleId.response.data}}.

Request

Path parameters

realmstringrequired

realm name (not id!)

role-idstringrequired

Request body

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

enabledboolean
resourcestring
scopePermissionsobject
json
{
  "enabled": false,
  "resource": "string",
  "scopePermissions": {}
}

Response

Returns 200 with an object. Read it in later steps with {{updateRolesByIdManagementPermissionsByRoleId.response.data.<field>}}.

enabledboolean
resourcestring
scopePermissionsobject
json
{
  "enabled": false,
  "resource": "string",
  "scopePermissions": {}
}

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

Update Roles By Id Management Permissions By Role Id — Keycloak — Documentation