Skip to Content
ZITADEL Docs
APIsCore ResourcesV2ZITADEL Internal Permissions

Delete Administrator

DeleteAdministrator revokes an administrator role from a user.

In case the administrator role is not found, the request will return a successful response as the desired state is already achieved. You can check the deletion date in the response to verify if the administrator role was deleted during the request.

Required permissions depend on the resource type:

  • "iam.member.delete" for instance administrators
  • "org.member.delete" for organization administrators
  • "project.member.delete" for project administrators
  • "project.grant.member.delete" for project grant administrators
POST
/zitadel.internal_permission.v2.InternalPermissionService/DeleteAdministrator

Header Parameters

Connect-Protocol-Version*1

Define the version of the Connect protocol

Value in1
Connect-Timeout-Ms?Connect-Timeout-Ms

Define the timeout, in ms

Request Body

application/json
  1. body
userId?user_id

UserID is the ID of the user whose administrator roles should be removed.

resource*|||

Resource is the type of the resource the administrator roles should be removed for.

Response Body

Success

application/json
  1. response
deletionDate?deletion_date

DeletionDate is the timestamp when the administrator role was deleted. Note that the deletion date is only guaranteed to be set if the deletion was successful during the request. In case the deletion occurred in a previous request, the deletion date might not be set.

Formatdate-time
Example Request
curl -X POST 'https://example.com/zitadel.internal_permission.v2.InternalPermissionService/DeleteAdministrator' \  -H 'Connect-Protocol-Version: 1' \  -H 'Content-Type: application/json' \  -d '{  "resource": {    "instance": true  }}'
Example Response
{  "deletionDate": "2023-01-15T01:30:15.01Z"}

Was this page helpful?