On this page

Restore users

If you delete a user, you can restore it using the Restore() method.

This is possible, however, only if the user you want to restore was soft deleted (the soft parameter was set to true when deleting it). Hard deleted users cannot be restored as their data is no longer available in App Context storage.

Requires App Context

To manage users, you must enable App Context for your app's keyset in the Admin Portal.

Method signature

This method has the following signature:

1user.Restore()

Input

This method doesn't take any parameters.

Output

TypeDescription
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

Last updated on