Skip to main content

Bulk Remove User Grants

DELETE 

https://$CUSTOM-DOMAIN/management/v1/user_grants/_bulk

Remove a list of user grants. The users will not be able to use the granted project anymore. Also, the roles will not be included in the tokens when requested.

Request​

Header Parameters

    x-zitadel-orgid string

    The default is always the organization of the requesting user. If you like to get/set a result of another organization include the header. Make sure the user has permission to access the requested data.

Body

required

    grantId string[]

Responses​

A successful response.

Schema

    object

curl -L -X DELETE 'https://$CUSTOM-DOMAIN/management/v1/user_grants/_bulk' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"grantId": [
"9384786806489455",
"2984754806489455"
]
}'
Request Collapse all
Base URL
https://$CUSTOM-DOMAIN/management/v1
Auth
Parameters
— header
Body required
{
  "grantId": [
    "9384786806489455",
    "2984754806489455"
  ]
}
ResponseClear

Click the Send API Request button above and see the response here!