Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 26 additions & 4 deletions aspnetcore/security/authentication/add-user-data.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
---
title: Add, download, and delete user data to Identity in an ASP.NET Core project
ai-usage: ai-assisted
author: wadepickett
description: Learn how to add custom user data to Identity in an ASP.NET Core project. Delete data per GDPR.
ms.author: wpickett
ms.date: 03/15/2022
ms.custom: mvc
ms.date: 04/09/2026
uid: security/authentication/add-user-data
---
# Add, download, and delete custom user data to Identity in an ASP.NET Core project
Expand Down Expand Up @@ -32,13 +33,20 @@ The project sample is created from a Razor Pages web app, but the instructions a

* From the Visual Studio **File** menu, select **New** > **Project**. Name the project **WebApp1** if you want to it match the namespace of the [download sample](https://github.com/dotnet/AspNetCore.Docs/tree/live/aspnetcore/security/authentication/add-user-data) code.
* Select **ASP.NET Core Web Application** > **OK**
* In the **Authentication type** dropdown, select **Individual Accounts**.
* Select **Web Application** > **OK**
* Build and run the project.

# [.NET CLI](#tab/net-cli)

```dotnetcli
dotnet new webapp -o WebApp1
dotnet new webapp --auth Individual -o WebApp1
```

For an MVC project, use the following command:

```dotnetcli
dotnet new mvc --auth Individual -o WebApp1
```

---
Expand Down Expand Up @@ -179,13 +187,20 @@ Test the app:

* From the Visual Studio **File** menu, select **New** > **Project**. Name the project **WebApp1** if you want to it match the namespace of the [download sample](https://github.com/dotnet/AspNetCore.Docs/tree/live/aspnetcore/security/authentication/add-user-data) code.
* Select **ASP.NET Core Web Application** > **OK**
* In the **Authentication** section, select **Individual User Accounts**.
* Select **Web Application** > **OK**
* Build and run the project.

# [.NET CLI](#tab/net-cli)

```dotnetcli
dotnet new webapp -o WebApp1
dotnet new webapp --auth Individual -o WebApp1
```

For an MVC project, use the following command:

```dotnetcli
dotnet new mvc --auth Individual -o WebApp1
```

---
Expand Down Expand Up @@ -401,13 +416,20 @@ The additional claim can then be used in the app. In a Razor Page, the `IAuthori
* From the Visual Studio **File** menu, select **New** > **Project**. Name the project **WebApp1** if you want to it match the namespace of the [download sample](https://github.com/dotnet/AspNetCore.Docs/tree/live/aspnetcore/security/authentication/add-user-data) code.
* Select **ASP.NET Core Web Application** > **OK**
* Select **ASP.NET Core 2.2** in the dropdown
* In the **Authentication** section, select **Individual User Accounts**.
* Select **Web Application** > **OK**
* Build and run the project.

# [.NET CLI](#tab/net-cli)

```dotnetcli
dotnet new webapp -o WebApp1
dotnet new webapp --auth Individual -o WebApp1
```

For an MVC project, use the following command:

```dotnetcli
dotnet new mvc --auth Individual -o WebApp1
```

---
Expand Down
Loading