You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Azure AD B2C provides a directory that can hold 100 custom attributes per user. For user flows, these extension properties are [managed by using the Azure portal](user-flow-custom-attributes.md). For custom policies, Azure AD B2C creates the property for you, the first time the policy writes a value to the extension property.
Copy file name to clipboardExpand all lines: articles/active-directory-b2c/user-flow-custom-attributes.md
+36-6Lines changed: 36 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ manager: celestedg
8
8
ms.service: active-directory
9
9
ms.workload: identity
10
10
ms.topic: how-to
11
-
ms.date: 09/20/2021
11
+
ms.date: 10/08/2021
12
12
ms.custom: project-no-code
13
13
ms.author: mimart
14
14
ms.subservice: B2C
@@ -44,7 +44,7 @@ Azure AD B2C allows you to extend the set of attributes stored on each user acco
44
44
1. Provide a **Name** for the custom attribute (for example, "ShoeSize")
45
45
1. Choose a **Data Type**. Only **String**, **Boolean**, and **Int** are available.
46
46
1. Optionally, enter a **Description** for informational purposes.
47
-
1.Click**Create**.
47
+
1.Select**Create**.
48
48
49
49
The custom attribute is now available in the list of **User attributes** and for use in your user flows. A custom attribute is only created the first time it is used in any user flow, and not when you add it to the list of **User attributes**.
50
50
@@ -54,9 +54,9 @@ The custom attribute is now available in the list of **User attributes** and for
54
54
55
55
1. In your Azure AD B2C tenant, select **User flows**.
56
56
1. Select your policy (for example, "B2C_1_SignupSignin") to open it.
57
-
1. Select **User attributes** and then select the custom attribute (for example, "ShoeSize"). Click**Save**.
57
+
1. Select **User attributes** and then select the custom attribute (for example, "ShoeSize"). Select**Save**.
58
58
1. Select **Application claims** and then select the custom attribute.
59
-
1.Click**Save**.
59
+
1.Select**Save**.
60
60
61
61
Once you've created a new user using a user flow, which uses the newly created custom attribute, the object can be queried in [Microsoft Graph Explorer](https://developer.microsoft.com/graph/graph-explorer). Alternatively you can use the [Run user flow](./tutorial-create-user-flows.md) feature on the user flow to verify the customer experience. You should now see **ShoeSize** in the list of attributes collected during the sign-up journey, and see it in the token sent back to your application.
62
62
@@ -68,7 +68,7 @@ Extension attributes can only be registered on an application object, even thoug
68
68
69
69
::: zone pivot="b2c-user-flow"
70
70
71
-
To get the application ID:
71
+
### Get extensions app's application ID
72
72
73
73
1. Sign in to the [Azure portal](https://portal.azure.com).
74
74
1. Make sure you're using the directory that contains your Azure AD B2C tenant. Select the **Directories + subscriptions** icon in the portal toolbar.
@@ -82,7 +82,7 @@ To get the application ID:
82
82
83
83
::: zone pivot="b2c-custom-policy"
84
84
85
-
Get the application properties:
85
+
### Get extensions app's application properties
86
86
87
87
1. Sign in to the [Azure portal](https://portal.azure.com).
88
88
1. Make sure you're using the directory that contains your Azure AD B2C tenant. Select the **Directories + subscriptions** icon in the portal toolbar.
@@ -185,6 +185,36 @@ Microsoft Graph API supports creating and updating a user with extension attribu
Unlike built-in attributes, extension/custom attributes can be removed. The extension attributes' values can also be removed.
191
+
192
+
> [!Important]
193
+
> Before you remove the extension/custom attribute, for each account in the directory, set the extension attribute value to null. In this way you explicitly remove the extension attributes’s values. Then continue to remove the extension attribute itself. Extension/custom attribute is queryable using MS Graph API.
194
+
195
+
::: zone pivot="b2c-user-flow"
196
+
197
+
Use the following steps to remove extension/custom attribute from a user flow:
198
+
199
+
1. Sign in to the [Azure portal](https://portal.azure.com/) as the global administrator of your Azure AD B2C tenant.
200
+
2. Make sure you're using the directory that contains your Azure AD B2C tenant:
201
+
1. Select the **Directories + subscriptions** icon in the portal toolbar.
202
+
1. On the **Portal settings | Directories + subscriptions** page, find your Azure AD B2C directory in the Directory name list, and then select **Switch**
203
+
1. Choose **All services** in the top-left corner of the Azure portal, search for and select **Azure AD B2C**.
204
+
1. Select **User attributes**, and then select the attribute you want to delete.
205
+
1. Select **Delete**
206
+
207
+
::: zone-end
208
+
209
+
::: zone pivot="b2c-custom-policy"
210
+
211
+
To remove a custom attribute, use [MS Graph API](microsoft-graph-operations.md), and use the [Delete](/graph/api/application-delete-extensionproperty) command.
212
+
213
+
::: zone-end
214
+
215
+
216
+
217
+
188
218
## Next steps
189
219
190
220
Follow the guidance for how to [add claims and customize user input using custom policies](configure-user-input.md). This sample uses a built-in claim 'city'. To use a custom attribute, replace 'city' with your own custom attributes.
0 commit comments