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
title: 'Check execution user scope of a workflow - Azure Active Directory'
3
+
description: Describes how to check the users who fall into the execution scope of a Lifecycle Workflow.
4
+
services: active-directory
5
+
author: owinfreyATL
6
+
manager: amycolannino
7
+
ms.service: active-directory
8
+
ms.workload: identity
9
+
ms.topic: how-to
10
+
ms.date: 03/09/2023
11
+
ms.subservice: compliance
12
+
ms.author: owinfrey
13
+
ms.reviewer: krbain
14
+
ms.collection: M365-identity-device-management
15
+
---
16
+
17
+
# Check execution user scope of a workflow (Preview)
18
+
19
+
Workflow scheduling will automatically process the workflow for users meeting the workflows execution conditions. This article walks you through the steps to check the users who fall into the execution scope of a workflow. For more information about execution conditions, see: [workflow basics](../governance/understanding-lifecycle-workflows.md#workflow-basics).
20
+
21
+
## Check execution user scope of a workflow using the Azure portal
22
+
23
+
To check the users who fall under the execution scope of a workflow, you'd follow these steps:
24
+
25
+
1. Sign in to the [Azure portal](https://portal.azure.com).
26
+
27
+
1. Type in **Identity Governance** on the search bar near the top of the page and select it.
28
+
29
+
1. In the left menu, select **Lifecycle workflows (Preview)**.
30
+
31
+
1. From the list of workflows, select the workflow you want to check the execution scope of.
32
+
33
+
1. On the workflow overview page, select **Execution conditions (Preview)**.
34
+
35
+
1. On the Execution conditions page, select the **Execution User Scope** tab.
36
+
37
+
1. On this page you're presented with a list of users who currently meet the scope for execution for the workflow.
38
+
:::image type="content" source="media/check-workflow-execution-scope/execution-user-scope-list.png" alt-text="Screenshot of users under scope of workflow execution." lightbox="media/check-workflow-execution-scope/execution-user-scope-list.png":::
39
+
40
+
> [!NOTE]
41
+
> The workflow engine routinely evaluates the users that meet the execution conditions. The results will not be up to date if the execution conditions have been changed recently, relevant attributes on the user have been changed recently, or the time based trigger has recently passed.
42
+
43
+
## Check execution user scope of a workflow using Microsoft Graph
44
+
45
+
To check execution user scope of a workflow using API via Microsoft Graph, see: [List executionScope](/graph/api/workflow-list-executionscope).
Copy file name to clipboardExpand all lines: articles/active-directory/governance/customize-workflow-schedule.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ ms.reviewer: krbain
14
14
ms.collection: M365-identity-device-management
15
15
---
16
16
17
-
# Customize the schedule of workflows
17
+
# Customize the schedule of workflows (Preview)
18
18
19
19
Workflows created using Lifecycle Workflows can be fully customized to match the schedule that fits your organization's needs. By default, workflows are scheduled to run every 3 hours, but the interval can be set as frequent as 1 hour, or as infrequent as 24 hours.
Copy file name to clipboardExpand all lines: articles/active-directory/governance/delete-lifecycle-workflow.md
+1-9Lines changed: 1 addition & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ The Lifecycle Workflows preview requires Azure AD Premium P2. For more informati
26
26
27
27
1. Sign in to the [Azure portal](https://portal.azure.com).
28
28
29
-
1.Select **Azure Active Directory**and then select **Identity Governance**.
29
+
1.Type in **Identity Governance**on the search bar near the top of the page and select it.
30
30
31
31
1. In the left menu, select **Lifecycle Workflows (Preview)**.
32
32
@@ -64,18 +64,10 @@ After deleting workflows, you can view them on the **Deleted Workflows (Preview)
64
64
65
65
To delete a workflow using API via Microsoft Graph, see: [Delete workflow (lifecycle workflow)](/graph/api/identitygovernance-workflow-delete?view=graph-rest-beta&preserve-view=true).
66
66
67
-
68
-
To view
69
-
70
-
Workflows can be deleted by running the following call:
To View a list of deleted workflows using API via Microsoft Graph, see: [List deleted workflows](/graph/api/identitygovernance-lifecycleworkflowscontainer-list-deleteditems).
77
70
78
-
79
71
## Permanently delete a workflow using Microsoft Graph
80
72
81
73
To permanently delete a workflow using API via Microsoft Graph, see: [Permanently delete a deleted workflow](/graph/api/identitygovernance-deleteditemcontainer-delete)
-**Compliance manager** ensures that the organization follows internal policy and complies with regulations. This team:
@@ -76,7 +76,7 @@ For Lifecycle Workflows, you'll likely include representatives from the followin
76
76
* Assesses processes and procedures for reviewing Lifecycle Workflows, which include documentation and record keeping for compliance.
77
77
* Reviews results of past reviews for most critical resources.
78
78
-**HR Representative** - Assists with attribute mapping and population in HR provisioning scenarios. This team:
79
-
* Helps determine attributes that will be used to populate employeeHireDate and employeeLeaveDateTime.
79
+
* Helps determine attributes that are used to populate employeeHireDate and employeeLeaveDateTime.
80
80
* Ensures source attributes are populated and have values
81
81
* Identifies and suggests alternate attributes that could be mapped to employeeHireDate and employeeLeaveDateTime
82
82
@@ -110,7 +110,7 @@ The following information is important information about your organization and t
110
110
|Item|Description|Documentation|
111
111
|-----|-----|-----|
112
112
|Inbound Provisioning|You have a process to create user accounts for employees in Azure AD such as HR inbound, SuccessFactors, or MIM.<br><br> Alternatively you have a process to create user accounts in Active Directory and those accounts are provisioned to Azure AD.|[Workday to Active Directory](../saas-apps/workday-inbound-tutorial.md)<br><br>[Workday to Azure AD](../saas-apps/workday-inbound-tutorial.md)<br><br>[SuccessFactors to Active Directory](../saas-apps/sap-successfactors-inbound-provisioning-tutorial.md)</br></br>[SuccessFactors to Azure AD](../saas-apps/sap-successfactors-inbound-provisioning-cloud-only-tutorial.md)<br><br>[Azure AD Connect](../hybrid/whatis-azure-ad-connect-v2.md)<br><br>[Azure AD Connect cloud sync](../cloud-sync/what-is-cloud-sync.md)|
113
-
|Attribute synchronization|The accounts in Azure AD have the employeeHireDate and employeeLeaveDateTime attributes populated. The values may be populated when the accounts are created from an HR system or synchronized from AD using Azure AD Connect or cloud sync. You have additional attributes that will be used to determine the scope such as department, populated or the ability to populate, with data.|[How to synchronize attributes for Lifecycle Workflows](how-to-lifecycle-workflow-sync-attributes.md)
113
+
|Attribute synchronization|The accounts in Azure AD have the employeeHireDate and employeeLeaveDateTime attributes populated. The values may be populated when the accounts are created from an HR system or synchronized from AD using Azure AD Connect or cloud sync. You have extra attributes that are used to determine the scope such as department, populated or the ability to populate, with data.|[How to synchronize attributes for Lifecycle Workflows](how-to-lifecycle-workflow-sync-attributes.md)
114
114
115
115
## Understanding parts of a workflow
116
116
@@ -128,7 +128,7 @@ The following table provides information that you need to be aware of as you cre
128
128
|-----|-----|
129
129
|Workflows|50 workflow limit per tenant|
130
130
|Number of custom tasks|limit of 25 per workflow|
131
-
|Value range for offsetInDays|Between -60 and 60 days|
131
+
|Value range for offsetInDays|Between -180 and 180 days|
132
132
|Workflow execution schedule|Default every 3 hours - can be set to run anywhere from 1 to 24 hours|
133
133
|Custom task extensions|Limit of 100|
134
134
|On-demand user limit|You can run an on-demand workflow against a maximum of 10 users|
@@ -147,17 +147,17 @@ The following table provides a quick checklist of steps you can use when designi
147
147
|Step|Description|
148
148
|-----|-----|
149
149
|[Determine your scenario](#determine-your-scenario)|Determine what scenario you're addressing with a workflow|
150
-
|[Determine the execution conditions](#determine-the-execution-conditions)|Determine who and when the workflow will run|
150
+
|[Determine the execution conditions](#determine-the-execution-conditions)|Determine who and when the workflow runs|
151
151
|[Review the tasks](#review-the-tasks)|Review and add additional tasks to the workflow|
152
152
|[Create your workflow](#create-your-workflow)|Create your workflow after planning and design.|
153
153
|[Plan a pilot](#plan-a-pilot)|Plan to pilot, run, and test your workflow.|
154
154
155
155
## Determine your scenario
156
-
Before building a Lifecycle Workflow in the portal, you should determine which scenario or scenarios you wish to deploy. You can use the table below to see a current list of the available scenarios. These are based on the templates that are available in the portal and list the task associated with each one.
156
+
Before building a Lifecycle Workflow in the portal, you should determine which scenario or scenarios you wish to deploy. You can use the following table to see a current list of the available scenarios. These are based on the templates that are available in the portal and list the task associated with each one.
157
157
158
-
|Scenario|Pre-defined Tasks|
158
+
|Scenario|Predefined Tasks|
159
159
|-----|-----|
160
-
|Onboard pre-hire employee| Generate TAP and Send Email|
160
+
|Onboard prehire employee| Generate TAP and Send Email|
161
161
|Onboard new hire employee|Enable User Account</br>Send Welcome Email</br>Add User To Groups|
162
162
|Real-time employee termination|Remove user from all groups</br>Remove user from all Teams</br>Delete User Account|
163
163
|Pre-Offboarding of an employee|Remove user from selected groups</br>Remove user from selected Teams|
@@ -168,13 +168,13 @@ For more information on the built-in templates, see [Lifecycle Workflow template
168
168
169
169
170
170
## Determine the execution conditions
171
-
Now that you've determined your scenarios, you need to look at what users in your organization the scenarios will apply to.
171
+
Now that you've determined your scenarios, you need to look at what users in your organization the scenarios apply to.
172
172
173
173
An Execution condition is the part of a workflow that defines the scope of **who** and the trigger of **when** a workflow will be performed.
174
174
175
-
The [scope](understanding-lifecycle-workflows.md#configure-scope) determines who the workflow runs against. This is defined by a rule that will filter users based on a condition. For example, the rule, `"rule": "(department eq 'sales')"`will run the task only on users who are members of the sales department.
175
+
The [scope](understanding-lifecycle-workflows.md#configure-scope) determines who the workflow runs against. This is defined by a rule that will filter users based on a condition. For example, the rule, `"rule": "(department eq 'sales')"`runs the task only on users who are members of the sales department.
176
176
177
-
The [trigger](understanding-lifecycle-workflows.md#trigger-details) determines when the workflow will run. This can either be, on-demand, which is immediate, or time based. Most of the pre-defined templates in the portal are time based.
177
+
The [trigger](understanding-lifecycle-workflows.md#trigger-details) determines when the workflow runs. This can either be, on-demand, which is immediate, or time based. Most of the predefined templates in the portal are time based.
178
178
179
179
### Attribute information
180
180
The scope of a workflow uses attributes under the rule section. You can add the following extra conditionals to further refine **who** the tasks are applied to.
@@ -200,7 +200,7 @@ The following is some important information regarding time zones that you should
200
200
For more information, see [How to synchronize attributes for Lifecycle Workflows](../governance/how-to-lifecycle-workflow-sync-attributes.md)
201
201
202
202
## Review the tasks
203
-
Now that we've determined the scenario and the who and when, you should consider whether the pre-defined tasks are sufficient or are you going to need additional tasks. The table below has a list of the pre-defined tasks that are currently in the portal. Use this table to determine if you want to add more tasks.
203
+
Now that we've determined the scenario and the who and when, you should consider whether the predefined tasks are sufficient or are you going to need extra tasks. The following table has a list of the predefined tasks that are currently in the portal. Use this table to determine if you want to add more tasks.
204
204
205
205
|Task|Description|Relevant Scenarios|
206
206
|-----|-----|-----|
@@ -225,18 +225,18 @@ Now that we've determined the scenario and the who and when, you should consider
225
225
For more information on tasks, see [Lifecycle Workflow tasks](lifecycle-workflow-tasks.md).
226
226
227
227
### Group and team tasks
228
-
If you're using a group or team task, the workflow will need you to specify the group or groups. In the screenshot below, you'll see the yellow triangle on the task indicating that it's missing information.
228
+
If you're using a group or team task, the workflow needs you to specify the group or groups. In the following screenshot, you see the yellow triangle on the task indicating that it's missing information.
229
229
230
230
[](media/lifecycle-workflows-deployment/group-1.png#lightbox)
231
231
232
-
By clicking on the task, you'll be presented with a navigation bar to add or remove groups. Select the "x groups selected" link to add groups.
232
+
By clicking on the task, you are presented with a navigation bar to add or remove groups. Select the "x groups selected" link to add groups.
233
233
234
234
[](media/lifecycle-workflows-deployment/group-2.png#lightbox)
235
235
236
236
### Custom task extensions
237
-
Lifecycle Workflows allow you to create workflows that can be triggered based on joiner, mover, or leaver scenarios. While Lifecycle Workflows provide several built-in tasks to automate common scenarios throughout the lifecycle of users, eventually you may reach the limits of these built-in tasks. With the extensibility feature, you'll be able to utilize the concept of custom task extensions to call-out to external systems as part of a Lifecycle Workflow.
237
+
Lifecycle Workflows allow you to create workflows that can be triggered based on joiner, mover, or leaver scenarios. While Lifecycle Workflows provide several built-in tasks to automate common scenarios throughout the lifecycle of users, eventually you may reach the limits of these built-in tasks. With the extensibility feature, you are able to utilize the concept of custom task extensions to call-out to external systems as part of a Lifecycle Workflow.
238
238
239
-
When creating custom task extensions, the scenarios for how it will interact with Lifecycle Workflows can be one of three ways:
239
+
When creating custom task extensions, the scenarios for how it interacts with Lifecycle Workflows can be one of three ways:
240
240
241
241
-**Fire-and-forget scenario**- The Logic App is started, and the sequential task execution immediately continues with no response expected from the Logic App.
242
242
-**Sequential task execution waiting for response from the Logic App** - The Logic app is started, and the sequential task execution waits on the response from the Logic App.
@@ -263,7 +263,7 @@ For more information, see [Best practices for a pilot.](../fundamentals/active-d
263
263
#### Test and run the workflow
264
264
Once you've created a workflow, you should test it by running the workflow [on-demand](on-demand-workflow.md)
265
265
266
-
Using the on-demand feature will allow you to test and evaluate whether the Lifecycle Workflow is working as intended.
266
+
Using the on-demand feature allows you to test and evaluate whether the Lifecycle Workflow is working as intended.
267
267
268
268
Once you have completed testing, you can either rework the Lifecycle Workflow or get ready for a broader distribution.
269
269
@@ -276,10 +276,10 @@ You can also get more information from the audit logs. These logs can be access
276
276
277
277
|Stage|Description|
278
278
| - | - |
279
-
|Determine the scenario| A pre-hire workflow that sends email to new manager. |
280
-
|Determine the execution conditions|The workflow will run on new employees in the sales department, two(2) days before the employeeHireDate.|
281
-
|Review the tasks.|We'll use the pre-defined tasks in the workflow. No extra tasks will be added.|
282
-
|Create the workflow in the portal|Use the pre-defined template for new hire in the portal.|
279
+
|Determine the scenario| A prehire workflow that sends email to new manager. |
280
+
|Determine the execution conditions|The workflow runs on new employees in the sales department, two(2) days before the employeeHireDate.|
281
+
|Review the tasks.|We use the predefined tasks in the workflow. No extra tasks are added.|
282
+
|Create the workflow in the portal|Use the predefined template for new hire in the portal.|
283
283
|Enable and test the workflow| Use the on-demand feature to test the workflow on one user.|
284
284
|Review the test results|Review the test results and ensure the Lifecycle Workflow is working as intended.|
285
285
|Roll out the workflow to a broader audience|Communicate with stakeholders, letting them know that is going live and that HR will no longer need to send an email to the hiring manager.
0 commit comments