Skip to content

Commit 92ac1db

Browse files
committed
v3 with edit profile
1 parent a7e97f1 commit 92ac1db

File tree

1 file changed

+67
-56
lines changed

1 file changed

+67
-56
lines changed

articles/active-directory-b2c/custom-policy-configure-user-input.md

Lines changed: 67 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,13 @@ Open the extensions file of your policy. For example, <em>`SocialAndLocalAccount
6161

6262
## Add city to the user interface
6363

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:
6565

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.
68+
- **SelfAsserted-ProfileUpdate** - Edit profile flow.
69+
70+
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:
6771

6872
```xml
6973
<ClaimsProvider>
@@ -83,66 +87,73 @@ To add the city claim as an `<OutputClaim ClaimTypeReferenceId="city"/>` to the
8387
</TechnicalProfile>
8488
</TechnicalProfiles>
8589
</ClaimsProvider>
86-
<ClaimsProviders>
87-
<ClaimsProvider>
88-
<DisplayName>Self Asserted</DisplayName>
89-
<TechnicalProfiles>
90-
<!--Federated account first-time sign-in page-->
91-
<TechnicalProfile Id="SelfAsserted-Social">
92-
<OutputClaims>
93-
<OutputClaim ClaimTypeReferenceId="displayName"/>
94-
<OutputClaim ClaimTypeReferenceId="givenName"/>
95-
<OutputClaim ClaimTypeReferenceId="surname"/>
96-
<OutputClaim ClaimTypeReferenceId="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+
<TechnicalProfile Id="SelfAsserted-Social">
95+
<OutputClaims>
96+
<OutputClaim ClaimTypeReferenceId="displayName"/>
97+
<OutputClaim ClaimTypeReferenceId="givenName"/>
98+
<OutputClaim ClaimTypeReferenceId="surname"/>
99+
<OutputClaim ClaimTypeReferenceId="city"/>
100+
</OutputClaims>
101+
</TechnicalProfile>
102+
<!--Edit profile page-->
103+
<TechnicalProfile Id="SelfAsserted-ProfileUpdate">
104+
<OutputClaims>
105+
<OutputClaim ClaimTypeReferenceId="displayName"/>
106+
<OutputClaim ClaimTypeReferenceId="givenName" />
107+
<OutputClaim ClaimTypeReferenceId="surname" />
108+
<OutputClaim ClaimTypeReferenceId="city"/>
109+
</OutputClaims>
110+
</TechnicalProfile>
111+
</TechnicalProfiles>
112+
</ClaimsProvider>
102113
```
103114

104-
## Read and write the city
115+
## Read and write the city
105116

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"/>`.
107118

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:
109120

110121
```xml
111-
<ClaimsProviders>
112-
<ClaimsProvider>
113-
<DisplayName>Azure Active Directory</DisplayName>
114-
<TechnicalProfiles>
115-
116-
<!-- Write data during a local account sign-up. -->
117-
<TechnicalProfile Id="AAD-UserWriteUsingLogonEmail">
118-
<PersistedClaims>
119-
<PersistedClaim ClaimTypeReferenceId="city"/>
120-
</PersistedClaims>
121-
</TechnicalProfile>
122-
123-
<!-- Write data during a federated account first-time sign-in. -->
124-
<TechnicalProfile Id="AAD-UserWriteUsingAlternativeSecurityId">
125-
<PersistedClaims>
126-
<PersistedClaim ClaimTypeReferenceId="city"/>
127-
</PersistedClaims>
128-
</TechnicalProfile>
129-
130-
<!-- Read data after user authenticates with a local account. -->
131-
<TechnicalProfile Id="AAD-UserReadUsingEmailAddress">
132-
<OutputClaims>
133-
<OutputClaim ClaimTypeReferenceId="city" />
134-
</OutputClaims>
135-
</TechnicalProfile>
136-
137-
<!-- Read data after user authenticates with a federated account. -->
138-
<TechnicalProfile Id="AAD-UserReadUsingObjectId">
139-
<OutputClaims>
140-
<OutputClaim ClaimTypeReferenceId="city" />
141-
</OutputClaims>
142-
</TechnicalProfile>
143-
</TechnicalProfiles>
144-
</ClaimsProvider>
145-
</ClaimsProviders>
122+
<ClaimsProvider>
123+
<DisplayName>Azure Active Directory</DisplayName>
124+
<TechnicalProfiles>
125+
<!-- Write data during a local account sign-up flow. -->
126+
<TechnicalProfile Id="AAD-UserWriteUsingLogonEmail">
127+
<PersistedClaims>
128+
<PersistedClaim ClaimTypeReferenceId="city"/>
129+
</PersistedClaims>
130+
</TechnicalProfile>
131+
<!-- Write data during a federated account first-time sign-in flow. -->
132+
<TechnicalProfile Id="AAD-UserWriteUsingAlternativeSecurityId">
133+
<PersistedClaims>
134+
<PersistedClaim ClaimTypeReferenceId="city"/>
135+
</PersistedClaims>
136+
</TechnicalProfile>
137+
<!-- Write data during edit profile flow. -->
138+
<TechnicalProfile Id="AAD-UserWriteProfileUsingObjectId">
139+
<PersistedClaims>
140+
<PersistedClaim ClaimTypeReferenceId="city"/>
141+
</PersistedClaims>
142+
</TechnicalProfile>
143+
<!-- Read data after user authenticates with a local account. -->
144+
<TechnicalProfile Id="AAD-UserReadUsingEmailAddress">
145+
<OutputClaims>
146+
<OutputClaim ClaimTypeReferenceId="city" />
147+
</OutputClaims>
148+
</TechnicalProfile>
149+
<!-- Read data after user authenticates with a federated account. -->
150+
<TechnicalProfile Id="AAD-UserReadUsingObjectId">
151+
<OutputClaims>
152+
<OutputClaim ClaimTypeReferenceId="city" />
153+
</OutputClaims>
154+
</TechnicalProfile>
155+
</TechnicalProfiles>
156+
</ClaimsProvider>
146157
```
147158

148159
## Include the city in the token

0 commit comments

Comments
 (0)