Schedule user deletion
POST/users-srv/user/unregister/scheduler/schedule/:sub
This API schedules user account deletion with a grace period, allowing users to cancel the deletion before it is executed.
Key Features:
- Grace Period: Deletion is scheduled based on the instance-level setting
delete_unregistered_users_after_seconds(typically 2 days by default) - Email Notification: User receives an email with a cancellation link when deletion is scheduled
- Cancellation: User can cancel the scheduled deletion at any time during the grace period by clicking the link in the email
- Webhook Events: Triggers
ACCOUNT_DELETION_SCHEDULEDevent. If cancelled, triggersACCOUNT_ACTIVATED. If executed, triggersACCOUNT_DELETED
Use Cases:
- User-initiated account deletion (self-service with
profilescope) - Admin-scheduled deletion with grace period (requires
cidaas:users_writescope) - GDPR compliance scenarios requiring a retention period
Permissions:
- Self-Service: User token with
profilescope (user schedules their own deletion) - Admin: Admin token with
cidaas:users_writescope (admin schedules deletion for any user)
Request
Responses
- 200
OK