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
I am working on customizing my claim tokens and need to apply ifEmpty function for that. The description says that I need to provide one input parameter and two output parameters: Outputs an attribute or constant if the input is null or empty. For example, if you want to output an attribute stored in an extension attribute if the employee ID for a given user is empty. To perform this function, configure the following values: Parameter 1(input): user.employeeid Parameter 2 (output): user.extensionattribute1 Parameter 3 (output if there's no match): user.employeeid
I am working on customizing my claim tokens and need to apply ifEmpty function for that. The description says that I need to provide one input parameter and two output parameters:
Outputs an attribute or constant if the input is null or empty. For example, if you want to output an attribute stored in an extension attribute if the employee ID for a given user is empty. To perform this function, configure the following values: Parameter 1(input): user.employeeid Parameter 2 (output): user.extensionattribute1 Parameter 3 (output if there's no match): user.employeeid
I tried the following:
{ "ClaimsMappingPolicy": { "Version": 1, "IncludeBasicClaimSet": "true", "ClaimsSchema": [ { "Source": "application", "ID": "objectid", "JwtClaimType": "prn1" }, { "Source": "user", "ID": "userprincipalname", "JwtClaimType": "prn2" }, { "Source": "transformation", "TransformationID": "userOrApp", "ID": "collibrasub", "JwtClaimType": "prn" }, { "Source": "user", "ID": "usertype", "JwtClaimType": "prn31" }, { "Source": "application", "ID": "displayname", "JwtClaimType": "prn41" } ], "ClaimsTransformations": [ { "ID": "userOrApp", "TransformationMethod": "IfEmpty", "InputClaims": [ { "ClaimTypeReferenceId": "userprincipalname", "TransformationClaimType": "inputClaim1" }, { "ClaimTypeReferenceId": "objectid", "TransformationClaimType": "inputClaim2" }, { "ClaimTypeReferenceId": "usertype", "TransformationClaimType": "inputClaim3" } ], "OutputClaims": [ { "ClaimTypeReferenceId": "collibrasub", "TransformationClaimType": "outputClaim" } ] } ] } }
but I cannot figure out how the JSON definition has to be written to do it properly. Could you please give more details?
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: