Function: cancelAccountDeletion()
ts
function cancelAccountDeletion(
client,
parameters,
options?
): Promise<void>;Defined in: src/userManagement/api/lifecycle.ts:103
This API will:
- Cancel the scheduled deletion of the specified managed account.
- Restore and activate the user’s account.
Specifications:
- You can cancel the deletion within the 14-day grace period of deleting a managed account. After that the account is permanently deleted.
The permission to make use of this resource is exposed by the lifecycle.delete privilege. Learn more about Get user management permissions API to manage the specified user.
Parameters
| Parameter | Type | Description |
|---|---|---|
client | Client | - |
parameters | { accountId: string; } | - |
parameters.accountId | string | Unique ID of the user's account that you are deleting. Use the Get users in an organization API to get the accountId. |
options? | RequestOptions | - |
Returns
Promise<void>