Hi,
I have a Custom attribute in B2C that I am using the Sign up Custom policy to add to the User's profile during Sign up. however, after signup when I query the User profile through Graph API, this extension attribute is not in the returned result. Result json has "extensions": null.
I have followed the following steps;
Are these steps the correct ones to save a new custom claim into the B2C user's profile?
- Created the Custom attribute from the "Manage --> User attributes" on the B2C portal.
- Created a boolean type claim in the TrustFrameworkBase policy (with Id="extension_{customattributename}")
- Modified the TrustFrameworkBase policy "AAD-Common" Technical Profile to set the ApplicationID and Client ID for the b2c-extensions-app
- Added the new claimtype in the Technical Profile "AAD-UserWriteUsingLogonEmail", "AAD-UserWriteProfileUsingObjectId" as a Persisted Claim with default value = false. Added the claim to Output claims in these technical profiles as well.
- Added the new claim to the Sign up 's Relying Party Output Claims - I can see this new claim in the JWT being issued after Sign up
- Added the new claim to OutputClaims in the TechnicalProfile Id="SelfAsserted-LocalAccountSignin-Email" - I can see this new claim in the JWT issyues upon successful login.
But, When I query the user with objectid through Graph API, I do not see this extension attribute in the json that is returned. What am I missing?
Also, if I need to modify the value of the new claim from the default value false to true, in one of the orchestration steps in the Signup User journey, what should I do?
My Sign up User journey has the following steps: 1) Signup (Technical Profile Id = LocalAccountSignUpWithLogonEmail) 2) Email Verification (split from Sign up screen) 3) AAD-UserReadUsingObjectId 4) SendClaims
Appreciate any hep with this. Thanks!!