Deletion approvals
With approvals on, no single admin can delete users, nor the provider’s organizations (see below): they request the deletion, and another admin approves it. It is available on the Business tier, and off until you set:
REQUIRE_DELETE_APPROVAL=trueHow it works
Section titled “How it works”- An admin who can edit users (organization admins and above) deletes one or several users. After the usual confirmation and optional reason, AUMS creates a request instead of deleting. The users stay as they are.
- The request appears under Approvals (also linked from Settings and from the dashboard while requests are waiting), with the users’ emails, resolved by AUMS from the provider, the reason and who asked.
- An admin who can delete (organization owners and instance admins) approves or rejects it, with an optional note. Approving deletes the users right away, as the approver.
The rules, enforced on the server:
- Nobody decides on their own request, even an instance admin.
- A request is decided once; if two admins decide at the same time, one wins.
- A request nobody decides on within 7 days expires.
- The admin who asked can withdraw the request while it waits.
- If the provider refuses every deletion of an approved request, it is marked failed with the error, and an admin who can delete can run it again. When only some fail, the request is applied and lists the failures.
API clients can request deletions too: with approvals on, DELETE /api/v1/users/{id} answers 202 with the request instead of deleting (see the REST API).
Everything is in the admin audit trail: the request, the decision, and each deletion, which names who asked. The user.delete.request, approval.approve and approval.reject events can also go to a webhook, for instance to tell your approvers in chat.
Organizations
Section titled “Organizations”Deleting an organization of the provider (the Organizations page) goes through the same review, since it takes its members’ access with it. An organization owner or admin who deletes one or several organizations creates a request; an admin who can delete organizations (owners and instance admins) approves it, with the same rules as above, and the organization is deleted right away, as the approver. Requests for users and for organizations are listed together under Approvals; the audit trail records organization.delete.request and the deletion itself as organization.delete, so webhooks can follow both.
Other destructive actions are not reviewed yet: resetting multi-factor authentication, unlinking an identity and deleting a webhook run straight away.