Skip to content

Instantly share code, notes, and snippets.

@mfcollins3
Created January 21, 2022 06:00
Show Gist options
  • Save mfcollins3/7d02fe72c0a6c51aafb63ff7bf85c101 to your computer and use it in GitHub Desktop.
Save mfcollins3/7d02fe72c0a6c51aafb63ff7bf85c101 to your computer and use it in GitHub Desktop.
CreateLocalUser technical profile for B2C
<ClaimsProvider>
<DisplayName>Active Directory</DisplayName>
<TechnicalProfiles>
<TechnicalProfile Id="CreateLocalUser">
<DisplayName>Create Local User Account</DisplayName>
<Description>Creates the local user account in Active Directory</Description>
<Protocol Name="Proprietary" Handler="Web.TPEngine.Providers.AzureActiveDirectoryProvider, Web.TPEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
<Metadata>
<Item Key="Operation">Write</Item>
<Item Key="RaiseErrorIfClaimsPrincipalAlreadyExists">true</Item>
</Metadata>
<IncludeInSso>false</IncludeInSso>
<InputClaimsTransformations>
<InputClaimsTransformation ReferenceId="SetDisplayNameToSignInName" />
</InputClaimsTransformations>
<InputClaims>
<InputClaim ClaimTypeReferenceId="signInName" PartnerClaimType="signInNames.userName" Required="true" />
</InputClaims>
<PersistedClaims>
<PersistedClaim ClaimTypeReferenceId="displayName" />
<PersistedClaim ClaimTypeReferenceId="newPassword" PartnerClaimType="password" />
<PersistedClaim ClaimTypeReferenceId="passwordPolicies" DefaultValue="DisablePasswordExpiration" />
<PersistedClaim ClaimTypeReferenceId="signInName" PartnerClaimType="signInNames.userName" />
</PersistedClaims>
<OutputClaims>
<OutputClaim ClaimTypeReferenceId="objectId" />
<OutputClaim ClaimTypeReferenceId="userPrincipalName" />
</OutputClaims>
<UseTechnicalProfileForSessionManagement ReferenceId="SSO-None" />
</TechnicalProfile>
</TechnicalProfiles>
</ClaimsProvider>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment