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
Copy file name to clipboardExpand all lines: articles/active-directory/app-provisioning/functions-for-customizing-application-data.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ ms.reviewer: arvinh
15
15
16
16
# Reference for writing expressions for attribute mappings in Azure Active Directory
17
17
18
-
When you configure provisioning to a SaaS application, one of the types of attribute mappings that you can specify is an expression mapping. For these, you must write a script-like expression that allows you to transform your users' data into formats that are more acceptable for the SaaS application.
18
+
When you configure provisioning to a SaaS application, one of the types of attribute mappings that you can specify is an expression mapping. For these mappings, you must write a script-like expression that allows you to transform your users' data into formats that are more acceptable for the SaaS application.
19
19
20
20
## Syntax overview
21
21
@@ -54,7 +54,7 @@ Takes a source string value and appends the suffix to the end of it.
54
54
55
55
56
56
#### Append constant suffix to user name
57
-
Example: If you are using a Salesforce Sandbox, you might need to append an additional suffix to all your user names before synchronizing them.
57
+
Example: If you are using a Salesforce Sandbox, you might need to append another suffix to all your user names before synchronizing them.
58
58
59
59
**Expression:**
60
60
`Append([userPrincipalName], ".test")`
@@ -352,7 +352,7 @@ The **interval** string must have one of the following values:
352
352
| Difference in seconds between two dates | s | 2021-08-24 | 2021-08-25 | 86400 |
353
353
354
354
**Example 2: Combine DateDiff with IIF function to set attribute value** <br>
355
-
If an account is Active in Workday, set the *accountEnabled* attribute of the user to True only if hire date is within the next 5 days.
355
+
If an account is Active in Workday, set the *accountEnabled* attribute of the user to True only if hire date is within the next five days.
356
356
357
357
```
358
358
Switch([Active], ,
@@ -637,7 +637,7 @@ Returns a substring of the source value. A substring is a string that contains o
637
637
| --- | --- | --- | --- |
638
638
|**source**|Required |String |Usually name of the attribute. |
639
639
|**start**|Required |integer |Index in the **source** string where substring should start. First character in the string will have index of 1, second character will have index 2, and so on. |
640
-
|**length**|Required |integer |Length of the substring. If length ends outside the **source** string, function will return substring from **start** index till end of **source** string. |
640
+
|**length**|Required |integer |Length of the substring. If length ends outside the **source** string, function will return substring from **start** index untill end of **source** string. |
641
641
642
642
---
643
643
### NormalizeDiacritics
@@ -730,11 +730,11 @@ The NumFromDate function converts a DateTime value to Active Directory format th
730
730
731
731
**Example:**
732
732
* Workday example
733
-
Assuming you want to map the attribute *ContractEndDate* from Workday which is in the format *2020-12-31-08:00* to *accountExpires* field in AD, here is how you can use this function and change the timezone offset to match your locale.
733
+
Assuming you want to map the attribute *ContractEndDate* from Workday, which is in the format *2020-12-31-08:00* to *accountExpires* field in AD, here is how you can use this function and change the timezone offset to match your locale.
Assuming you want to map the attribute *endDate* from SuccessFactors which is in the format *M/d/yyyy hh:mm:ss tt* to *accountExpires* field in AD, here is how you can use this function and change the time zone offset to match your locale.
737
+
Assuming you want to map the attribute *endDate* from SuccessFactors, which is in the format *M/d/yyyy hh:mm:ss tt* to *accountExpires* field in AD, here is how you can use this function and change the time zone offset to match your locale.
@@ -807,7 +807,7 @@ The RandomString function generates a random string based on the conditions spec
807
807
`RandomString(6,3,0,0,3)`
808
808
Generates a random string with 10 characters (3 numbers and 3 lower case characters).
809
809
810
-
**Example 2:** - Genareate a random string with special character restrictions:
810
+
**Example 2:** - Generate a random string with special character restrictions:
811
811
`RandomString(10,2,2,2,1,"?,")`
812
812
Generates a random string with 10 characters (2 numbers, 2 special characters, 2 capital letters, 1 lower case letter). Excludes "?" and "," from the random string generated.
0 commit comments