POST /command/users/revoke

Revoke a user's access to PE.

Request format

When Forming RBAC API requests to this endpoint, the content type is application/json. The body must be a JSON object containing the user_id key, which specifies the ID of the user you want to revoke.

Example curl request:

curl -X POST "https://$(puppet config print server):4433/rbac-api/v1/command/users/revoke" \
-H "X-Authentication: $(puppet-access show)" \
-H "Content-type:   application/json" \
-d '{"user_id": "c97c716a-5f42-49d8-b5a4-d0888a879d21"}'

Response format

Returns 204 No Content if the user is revoked successfully.

For errors, refer to RBAC service errors .