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
# How to synchronize attributes for Lifecycle workflows
17
-
Workflows, contain specific tasks, which can run automatically against users based on the specified execution conditions. Automatic workflow scheduling is supported based on the employeeHireDate and employeeLeaveDateTime user attributes in Microsoft Entra ID.
17
+
18
+
Workflows contain specific tasks, which can run automatically against users based on the specified execution conditions. Automatic workflow scheduling is supported based on the employeeHireDate and employeeLeaveDateTime user attributes in Microsoft Entra ID.
18
19
19
20
To take full advantage of Lifecycle Workflows, user provisioning should be automated, and the scheduling relevant attributes should be synchronized.
20
21
21
22
## Scheduling relevant attributes
23
+
22
24
The following table shows the scheduling (trigger) relevant attributes and the methods of synchronization that are supported.
23
25
24
26
|Attribute|Type|Supported in HR Inbound Provisioning|Support in Microsoft Entra Connect Cloud Sync|Support in Microsoft Entra Connect Sync|
@@ -37,11 +39,11 @@ This document explains how to set up synchronization from on-premises Microsoft
37
39
38
40
## Understanding EmployeeHireDate and EmployeeLeaveDateTime formatting
39
41
40
-
The EmployeeHireDate and EmployeeLeaveDateTime contain dates and times that must be formatted in a specific way. This means that you may need to use an expression to convert the value of your source attribute to a format that will be accepted by the EmployeeHireDate or EmployeeLeaveDateTime. The table below outlines the format that is expected and provides an example expression on how to convert the values.
42
+
The EmployeeHireDate and EmployeeLeaveDateTime contain dates and times that must be formatted in a specific way. This means that you may need to use an expression to convert the value of your source attribute to a format that will be accepted by the EmployeeHireDate or EmployeeLeaveDateTime. The following table outlines the format that is expected and provides an example expression on how to convert the values.
|Workday to Active Directory User Provisioning|FormatDateTime([StatusHireDate], , "yyyy-MM-ddzzz", "yyyyMMddHHmmss.fZ")|On-premises AD string attribute|[Attribute mappings for Workday](../saas-apps/workday-inbound-tutorial.md#below-are-some-example-attribute-mappings-between-workday-and-active-directory-with-some-common-expressions)|
46
+
|Workday to Active Directory User Provisioning|FormatDateTime([StatusHireDate], "yyyy-MM-ddzzz", "yyyyMMddHHmmss.fZ")|On-premises AD string attribute|[Attribute mappings for Workday](../saas-apps/workday-inbound-tutorial.md#below-are-some-example-attribute-mappings-between-workday-and-active-directory-with-some-common-expressions)|
45
47
|SuccessFactors to Active Directory User Provisioning|FormatDateTime([endDate], ,"M/d/yyyy hh:mm:ss tt","yyyyMMddHHmmss.fZ")|On-premises AD string attribute|[Attribute mappings for SAP Success Factors](../saas-apps/sap-successfactors-inbound-provisioning-tutorial.md)|
46
48
|Custom import to Active Directory|Must be in the format "yyyyMMddHHmmss.fZ"|On-premises AD string attribute||
47
49
|Microsoft Graph User API|Must be in the format "YYYY-MM-DDThh:mm:ssZ"|EmployeeHireDate and EmployeeLeaveDateTime||
@@ -50,7 +52,7 @@ The EmployeeHireDate and EmployeeLeaveDateTime contain dates and times that must
50
52
51
53
For more information on expressions, see [Reference for writing expressions for attribute mappings in Microsoft Entra ID](../app-provisioning/functions-for-customizing-application-data.md)
52
54
53
-
The expression examples above use endDate for SAP and StatusHireDate for Workday. However, you may opt to use different attributes.
55
+
The expression examples in the table use endDate for SAP and StatusHireDate for Workday. However, you may opt to use different attributes.
54
56
55
57
For example, you might use StatusContinuousFirstDayOfWork instead of StatusHireDate for Workday. In this instance your expression would be:
56
58
@@ -80,19 +82,19 @@ For more attributes, see the [Workday attribute reference](../app-provisioning/w
80
82
To ensure timing accuracy of scheduled workflows it’s crucial to consider:
81
83
82
84
- The time portion of the attribute must be set accordingly, for example the `employeeHireDate` should have a time at the beginning of the day like 1AM or 5AM and the `employeeLeaveDateTime` should have time at the end of the day like 9PM or 11PM
83
-
- The Workflows won't run earlier than the time specified in the attribute, however the [tenant schedule (default 3h)](customize-workflow-schedule.md) may delay the workflow run. For instance, if you set the `employeeHireDate` to 8AM but the tenant schedule doesn't run until 9AM, the workflow won't be processed until then. If a new hire is starting at 8AM, you would want to set the time to something like (start time - tenant schedule) to ensure it had run before the employee arrives.
85
+
- The Workflows won't run earlier than the time specified in the attribute, however the [tenant schedule (default 3h)](customize-workflow-schedule.md) may delay the workflow run. For instance, if you set the `employeeHireDate` to 8AM but the tenant schedule doesn't run until 9AM, the workflow won't be processed until then. If a new hire is starting at 8AM, you would want to set the time to something like (start time - tenant schedule) to ensure it runs before the employee arrives.
84
86
- It's recommended, that if you're using temporary access pass (TAP), that you set the maximum lifetime to 24 hours. Doing this will help ensure that the TAP hasn't expired after being sent to an employee who may be in a different timezone. For more information, see [Configure Temporary Access Pass in Microsoft Entra ID to register Passwordless authentication methods.](../authentication/howto-authentication-temporary-access-pass.md#enable-the-temporary-access-pass-policy)
85
87
- When importing the data, you should understand if and how the source provides time zone information for your users to potentially make adjustments to ensure timing accuracy.
86
88
87
89
88
90
## Create a custom sync rule in Microsoft Entra Connect cloud sync for EmployeeHireDate
89
-
The following steps will guide you through creating a synchronization rule using cloud sync.
91
+
The following steps guide you through creating a synchronization rule using cloud sync.
90
92
1. In the Microsoft Entra admin center, browse to > **Hybrid management** > **Microsoft Entra Connect**.
91
-
2. Select **Manage Microsoft Entra cloud sync**.
92
-
3. Under **Configuration**, select your configuration.
93
-
4. Select **Click to edit mappings**. This link opens the **Attribute mappings** screen.
94
-
5. Select **Add attribute**.
95
-
6. Fill in the following information:
93
+
1. Select **Manage Microsoft Entra cloud sync**.
94
+
1. Under **Configuration**, select your configuration.
95
+
1. Select **Click to edit mappings**. This link opens the **Attribute mappings** screen.
96
+
1. Select **Add attribute**.
97
+
1. Fill in the following information:
96
98
- Mapping Type: Direct
97
99
- Source attribute: msDS-cloudExtensionAttribute1
98
100
- Default value: Leave blank
@@ -106,7 +108,7 @@ To ensure timing accuracy of scheduled workflows it’s crucial to consider:
106
108
For more information on attributes, see [Attribute mapping in Microsoft Entra Connect cloud sync.](../hybrid/cloud-sync/how-to-attribute-mapping.md)
107
109
108
110
## How to create a custom sync rule in Microsoft Entra Connect for EmployeeHireDate
109
-
The following example will walk you through setting up a custom synchronization rule that synchronizes the Active Directory attribute to the employeeHireDate attribute in Microsoft Entra ID.
111
+
The following example walks you through setting up a custom synchronization rule that synchronizes the Active Directory attribute to the employeeHireDate attribute in Microsoft Entra ID.
110
112
1. Open a PowerShell window as administrator and run `Set-ADSyncScheduler -SyncCycleEnabled $false` to disable the scheduler.
111
113
1. Go to Start\Azure AD Connect\ and open the Synchronization Rules Editor
112
114
1. Ensure the direction at the top is set to **Inbound**.
@@ -125,10 +127,10 @@ The following example will walk you through setting up a custom synchronization
125
127
- Target Attribute: employeeHireDate
126
128
- Source: msDS-cloudExtensionAttribute1
127
129

128
-
9. Select **Add**.
129
-
10. In the Synchronization Rules Editor, ensure the direction at the top is set to **Outbound**.
130
-
11. Select **Add Rule.**
131
-
12. On the **Create Outbound synchronization rule** screen, enter the following information and select **Next**.
130
+
1. Select **Add**.
131
+
1. In the Synchronization Rules Editor, ensure the direction at the top is set to **Outbound**.
132
+
1. Select **Add Rule.**
133
+
1. On the **Create Outbound synchronization rule** screen, enter the following information and select **Next**.
132
134
- Name: Out to Microsoft Entra ID - EmployeeHireDate
0 commit comments