Skip to content

Commit 3deba42

Browse files
authored
Merge pull request #36972 from dotnet/main
Merge to Live
2 parents 0bd93f0 + bb44567 commit 3deba42

File tree

1 file changed

+26
-4
lines changed

1 file changed

+26
-4
lines changed

aspnetcore/security/authentication/add-user-data.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
22
title: Add, download, and delete user data to Identity in an ASP.NET Core project
3+
ai-usage: ai-assisted
34
author: wadepickett
45
description: Learn how to add custom user data to Identity in an ASP.NET Core project. Delete data per GDPR.
56
ms.author: wpickett
6-
ms.date: 03/15/2022
77
ms.custom: mvc
8+
ms.date: 04/09/2026
89
uid: security/authentication/add-user-data
910
---
1011
# Add, download, and delete custom user data to Identity in an ASP.NET Core project
@@ -32,13 +33,20 @@ The project sample is created from a Razor Pages web app, but the instructions a
3233

3334
* 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.
3435
* Select **ASP.NET Core Web Application** > **OK**
36+
* In the **Authentication type** dropdown, select **Individual Accounts**.
3537
* Select **Web Application** > **OK**
3638
* Build and run the project.
3739

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

4042
```dotnetcli
41-
dotnet new webapp -o WebApp1
43+
dotnet new webapp --auth Individual -o WebApp1
44+
```
45+
46+
For an MVC project, use the following command:
47+
48+
```dotnetcli
49+
dotnet new mvc --auth Individual -o WebApp1
4250
```
4351

4452
---
@@ -179,13 +187,20 @@ Test the app:
179187

180188
* 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.
181189
* Select **ASP.NET Core Web Application** > **OK**
190+
* In the **Authentication** section, select **Individual User Accounts**.
182191
* Select **Web Application** > **OK**
183192
* Build and run the project.
184193

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

187196
```dotnetcli
188-
dotnet new webapp -o WebApp1
197+
dotnet new webapp --auth Individual -o WebApp1
198+
```
199+
200+
For an MVC project, use the following command:
201+
202+
```dotnetcli
203+
dotnet new mvc --auth Individual -o WebApp1
189204
```
190205

191206
---
@@ -401,13 +416,20 @@ The additional claim can then be used in the app. In a Razor Page, the `IAuthori
401416
* 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.
402417
* Select **ASP.NET Core Web Application** > **OK**
403418
* Select **ASP.NET Core 2.2** in the dropdown
419+
* In the **Authentication** section, select **Individual User Accounts**.
404420
* Select **Web Application** > **OK**
405421
* Build and run the project.
406422

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

409425
```dotnetcli
410-
dotnet new webapp -o WebApp1
426+
dotnet new webapp --auth Individual -o WebApp1
427+
```
428+
429+
For an MVC project, use the following command:
430+
431+
```dotnetcli
432+
dotnet new mvc --auth Individual -o WebApp1
411433
```
412434

413435
---

0 commit comments

Comments
 (0)