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
Copy file name to clipboardExpand all lines: articles/active-directory-b2c/custom-policy-configure-user-input.md
+67-56Lines changed: 67 additions & 56 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,9 +61,13 @@ Open the extensions file of your policy. For example, <em>`SocialAndLocalAccount
61
61
62
62
## Add city to the user interface
63
63
64
-
The sign-up or sign-up user journey uses the **LocalAccountSignUpWithLogonEmail** to interact with the user during the local account sign-up flow. The **SelfAsserted-Social** is used to interact with a federated account during first-time user sign-in. Both technical profiles are [self-asserted](self-asserted-technical-profile.md), where a user is expected to provide input.
64
+
Following technical profiles are [self-asserted](self-asserted-technical-profile.md), where a user is expected to provide input:
65
65
66
-
To add the city claim as an `<OutputClaim ClaimTypeReferenceId="city"/>` to the **LocalAccountSignUpWithLogonEmail** and **SelfAsserted-Social** technical profiles, you override them in the extension policy. You specify the entire list of the output claims, to control the order the claims are presented on the screen. Find the **ClaimsProviders** element. Add a new ClaimsProviders as follows:
66
+
-**LocalAccountSignUpWithLogonEmail** - Local account sign-up flow.
67
+
-**SelfAsserted-Social** - Federated account first-time user sign-in.
To add the city claim as an `<OutputClaim ClaimTypeReferenceId="city"/>` to the technical profiles, you override them in the extension policy. You specify the entire list of the output claims, to control the order the claims are presented on the screen. Find the **ClaimsProviders** element. Add a new ClaimsProviders as follows:
67
71
68
72
```xml
69
73
<ClaimsProvider>
@@ -83,66 +87,73 @@ To add the city claim as an `<OutputClaim ClaimTypeReferenceId="city"/>` to the
83
87
</TechnicalProfile>
84
88
</TechnicalProfiles>
85
89
</ClaimsProvider>
86
-
<ClaimsProviders>
87
-
<ClaimsProvider>
88
-
<DisplayName>Self Asserted</DisplayName>
89
-
<TechnicalProfiles>
90
-
<!--Federated account first-time sign-in page-->
91
-
<TechnicalProfileId="SelfAsserted-Social">
92
-
<OutputClaims>
93
-
<OutputClaimClaimTypeReferenceId="displayName"/>
94
-
<OutputClaimClaimTypeReferenceId="givenName"/>
95
-
<OutputClaimClaimTypeReferenceId="surname"/>
96
-
<OutputClaimClaimTypeReferenceId="city"/>
97
-
</OutputClaims>
98
-
</TechnicalProfile>
99
-
</TechnicalProfiles>
100
-
</ClaimsProvider>
101
-
</ClaimsProviders>
90
+
<ClaimsProvider>
91
+
<DisplayName>Self Asserted</DisplayName>
92
+
<TechnicalProfiles>
93
+
<!--Federated account first-time sign-in page-->
94
+
<TechnicalProfileId="SelfAsserted-Social">
95
+
<OutputClaims>
96
+
<OutputClaimClaimTypeReferenceId="displayName"/>
97
+
<OutputClaimClaimTypeReferenceId="givenName"/>
98
+
<OutputClaimClaimTypeReferenceId="surname"/>
99
+
<OutputClaimClaimTypeReferenceId="city"/>
100
+
</OutputClaims>
101
+
</TechnicalProfile>
102
+
<!--Edit profile page-->
103
+
<TechnicalProfileId="SelfAsserted-ProfileUpdate">
104
+
<OutputClaims>
105
+
<OutputClaimClaimTypeReferenceId="displayName"/>
106
+
<OutputClaimClaimTypeReferenceId="givenName" />
107
+
<OutputClaimClaimTypeReferenceId="surname" />
108
+
<OutputClaimClaimTypeReferenceId="city"/>
109
+
</OutputClaims>
110
+
</TechnicalProfile>
111
+
</TechnicalProfiles>
112
+
</ClaimsProvider>
102
113
```
103
114
104
-
## Read and write the city
115
+
## Read and write the city
105
116
106
-
To persist the city to the user profile in the directory, you add `<PersistedClaim ClaimTypeReferenceId="city"/>` to the relevant technical profiles. To read the city from the user profile in the directory, you add `<OutputClaim ClaimTypeReferenceId="city"/>` to the relevant technical profiles.
117
+
To persist the city to the user profile in the directory, you add `<PersistedClaim ClaimTypeReferenceId="city"/>` to the relevant technical profiles. To read the city from the user profile in the directory, you add `<OutputClaim ClaimTypeReferenceId="city"/>`.
107
118
108
-
The following technical profiles are [Active Directory technical profile](active-directory-technical-profile.md), which allows you to read and write data to the Azure Active Directory. Find the **ClaimsProviders** element. Add a new ClaimsProviders as follows:
119
+
The following technical profiles are [Active Directory technical profile](active-directory-technical-profile.md), which read and write data to the Azure Active Directory. Find the **ClaimsProviders** element. Add a new ClaimsProviders as follows:
109
120
110
121
```xml
111
-
<ClaimsProviders>
112
-
<ClaimsProvider>
113
-
<DisplayName>Azure Active Directory</DisplayName>
114
-
<TechnicalProfiles>
115
-
116
-
<!-- Write data during a local account sign-up. -->
0 commit comments