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
| InputParameter | value | string | The string to be set |
126
+
| InputParameter | value | string | The string to be set. This input parameter supports [string claims transformation expressions](string-transformations.md#string-claim-transformations-expressions).|
127
127
| OutputClaim | createdClaim | string | The ClaimType that is produced after this claims transformation has been invoked, with the value specified in the input parameter. |
128
128
129
129
Use this claims transformation to set a string ClaimType value.
@@ -293,7 +293,7 @@ Format a claim according to the provided format string. This transformation uses
293
293
| Item | TransformationClaimType | Data Type | Notes |
| InputClaim | inputClaim |string |The ClaimType that acts as string format {0} parameter. |
296
-
| InputParameter | stringFormat | string | The string format, including the {0} parameter. |
296
+
| InputParameter | stringFormat | string | The string format, including the {0} parameter. This input parameter supports [string claims transformation expressions](string-transformations.md#string-claim-transformations-expressions). |
297
297
| OutputClaim | outputClaim | string | The ClaimType that is produced after this claims transformation has been invoked. |
298
298
299
299
Use this claims transformation to format any string with one parameter {0}. The following example creates a **userPrincipalName**. All social identity provider technical profiles, such as `Facebook-OAUTH` calls the **CreateUserPrincipalName** to generate a **userPrincipalName**.
@@ -329,7 +329,7 @@ Format two claims according to the provided format string. This transformation u
| InputClaim | inputClaim |string | The ClaimType that acts as string format {0} parameter. |
331
331
| InputClaim | inputClaim | string | The ClaimType that acts as string format {1} parameter. |
332
-
| InputParameter | stringFormat | string | The string format, including the {0} and {1} parameters. |
332
+
| InputParameter | stringFormat | string | The string format, including the {0} and {1} parameters. This input parameter supports [string claims transformation expressions](string-transformations.md#string-claim-transformations-expressions). |
333
333
| OutputClaim | outputClaim | string | The ClaimType that is produced after this claims transformation has been invoked. |
334
334
335
335
Use this claims transformation to format any string with two parameters, {0} and {1}. The following example creates a **displayName** with the specified format:
@@ -921,3 +921,12 @@ The following example takes a comma delimiter string of user roles, and converts
921
921
-**delimiter**: ","
922
922
- Output claims:
923
923
-**outputClaim**: [ "Admin", "Author", "Reader" ]
924
+
925
+
## String claim transformations expressions
926
+
Claim transformations expressions in Azure AD B2C custom policies provide context information about the tenant ID and technical profile ID.
927
+
928
+
| Expression | Description | Example |
929
+
| ----- | ----------- | --------|
930
+
|`{TechnicalProfileId}`| The technical profileId name. | Facebook-OAUTH |
931
+
|`{RelyingPartyTenantId}`| The tenant ID of the relying party policy. | your-tenant.onmicrosoft.com |
932
+
|`{TrustFrameworkTenantId}`| The tenant ID of the trust framework. | your-tenant.onmicrosoft.com |
0 commit comments