Skip to content

Commit 05ba17c

Browse files
authored
Merge pull request #105237 from yoelhor/patch-18
Update string-transformations.md
2 parents 13a6577 + 0d016cc commit 05ba17c

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

articles/active-directory-b2c/string-transformations.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ manager: celestedg
99
ms.service: active-directory
1010
ms.workload: identity
1111
ms.topic: reference
12-
ms.date: 02/20/2020
12+
ms.date: 02/24/2020
1313
ms.author: marsma
1414
ms.subservice: B2C
1515
---
@@ -123,7 +123,7 @@ Creates a string claim from the provided input parameter in the transformation.
123123

124124
| Item | TransformationClaimType | Data Type | Notes |
125125
|----- | ----------------------- | --------- | ----- |
126-
| 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). |
127127
| OutputClaim | createdClaim | string | The ClaimType that is produced after this claims transformation has been invoked, with the value specified in the input parameter. |
128128

129129
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
293293
| Item | TransformationClaimType | Data Type | Notes |
294294
| ---- | ----------------------- | --------- | ----- |
295295
| 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). |
297297
| OutputClaim | outputClaim | string | The ClaimType that is produced after this claims transformation has been invoked. |
298298

299299
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
329329
| ---- | ----------------------- | --------- | ----- |
330330
| InputClaim | inputClaim |string | The ClaimType that acts as string format {0} parameter. |
331331
| 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). |
333333
| OutputClaim | outputClaim | string | The ClaimType that is produced after this claims transformation has been invoked. |
334334

335335
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
921921
- **delimiter**: ","
922922
- Output claims:
923923
- **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

Comments
 (0)