Restore users
Restore() recovers soft-deleted users. Hard-deleted users cannot be restored.
Requires App Context
Enable App Context in the Admin Portal.
Method signature
This method has the following signature:
1user.Restore()
Input
This method doesn't take any parameters.
Output
| Type | Description |
|---|---|
Task<ChatOperationResult> | Returned Task that you can await to get the result of the restore operation. |
Sample code
Restore a previously soft deleted user with the ID of support_agent_15.
1