Docs Menu
Docs Home
/ /
Atlas Device SDKs
/
/

Create and Delete Users - .NET SDK

On this page

  • Create a User
  • Delete a User

For all authentication methods except email/password authentication, Atlas App Services automatically creates a user object the first time a user authenticates. When you use email/password authentication, you must first register and confirm a user before App Services creates the user object.

Important

Google and Apple Account Deletion Requirements

Google and Apple require that applications listed through their respective App Stores must give any user who creates an account the option to delete the account. Whether you use an authentication method where you must manually register a user, such as email/password authentication, or one that that automatically creates a user, such as Sign-In with Apple, you must implement user account deletion.

To delete a user, call the DeleteUserFromServerAsync(User) method. This deletes the user from the server, and also deletes the user's local data, but does not delete any custom user data. To delete custom user data, refer to Delete a User's Custom Data.

Important

Deleting a User Doesn't Delete User Metadata

Deleting a user only deletes the user object, which may contain associated metadata. This does not delete custom user data or user-entered data from your application. Google and Apple require that you disclose data retention and deletion policies to your application customers and give them a way to request user data deletion. If you collect additional user data, you must implement your own methods or processes to delete that data.

The following example shows how to delete a user account:

await app.DeleteUserFromServerAsync(user);
← 
 →