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: 'Execute employee off-boarding tasks in real-time on their last day of work with Azure portal (preview)'
3
-
description: Tutorial for off-boarding users from an organization using Lifecycle workflows with Azure portal (preview).
2
+
title: Execute employee departure tasks by using lifecycle workflows (preview)
3
+
description: Learn how to remove users from an organization in real time on their last day of work by using lifecycle workflows (preview) in the Azure portal.
4
4
services: active-directory
5
5
author: owinfreyATL
6
6
manager: amycolannino
@@ -14,101 +14,118 @@ ms.reviewer: krbain
14
14
ms.custom: template-tutorial
15
15
---
16
16
17
-
# Execute employee off-boarding tasks in real-time on their last day of work with Azure portal (preview)
17
+
# Execute employee departure tasks by using lifecycle workflows (preview)
18
18
19
-
This tutorial provides a step-by-step guide on how to execute a real-time employee termination with Lifecycle workflows using the Azure portal.
19
+
This tutorial provides a step-by-step guide on how to execute a real-time employee termination by using lifecycle workflows (preview) in the Azure portal.
20
20
21
-
This off-boarding scenario runs a workflow on-demand and accomplishes the following tasks:
22
-
23
-
1. Remove user from all groups
24
-
2. Remove user from all Teams
25
-
3. Delete user account
21
+
This *leaver* scenario runs a workflow on demand and accomplishes the following tasks:
26
22
27
-
You may learn more about running a workflow on-demand [here](on-demand-workflow.md).
23
+
- Remove the user from all groups.
24
+
- Remove the user from all Microsoft Teams memberships.
25
+
- Delete the user account.
26
+
27
+
For more information, see [Run a workflow on demand](on-demand-workflow.md).
28
28
29
29
## Prerequisites
30
30
31
-
The Lifecycle Workflows preview requires Azure AD Premium P2. For more information, see: [License requirements](what-are-lifecycle-workflows.md#license-requirements).
31
+
The lifecycle workflows preview requires Azure Active Directory (Azure AD) Premium P2. For more information, see [License requirements](what-are-lifecycle-workflows.md#license-requirements).
32
+
33
+
## Before you begin
34
+
35
+
As part of the prerequisites for completing this tutorial, you need an account that has group and Teams memberships and that can be deleted during the tutorial. For more comprehensive instructions on how to complete these prerequisite steps, see [Prepare user accounts for lifecycle workflows](tutorial-prepare-azure-ad-user-accounts.md).
36
+
37
+
The leaver scenario can be broken down into the following steps:
38
+
39
+
1. Prerequisite: Create a user account that represents an employee leaving your organization.
40
+
1. Prerequisite: Prepare the user account with group and Teams memberships.
41
+
1. Create the lifecycle management workflow.
42
+
1. Run the workflow on demand.
43
+
1. Verify that the workflow was successfully executed.
44
+
45
+
## Create a workflow by using the leaver template
46
+
47
+
Use the following steps to create a leaver on-demand workflow that will execute a real-time employee termination by using lifecycle workflows in the Azure portal:
48
+
49
+
1. Sign in to Azure portal.
50
+
2. On the right, select **Azure Active Directory**.
51
+
3. Select **Identity Governance**.
52
+
4. Select **Lifecycle workflows (Preview)**.
53
+
5. On the **Overview** tab, select **New workflow**.
54
+
55
+
:::image type="content" source="media/tutorial-lifecycle-workflows/new-workflow.png" alt-text="Screenshot of the Overview tab and the button for selecting a new workflow." lightbox="media/tutorial-lifecycle-workflows/new-workflow.png":::
56
+
57
+
6. From the collection of templates, choose **Select** under **Real-time employee termination**.
58
+
59
+
:::image type="content" source="media/tutorial-lifecycle-workflows/select-template.png" alt-text="Screenshot of selecting a workflow template for real-time employee termination." lightbox="media/tutorial-lifecycle-workflows/select-template.png":::
32
60
61
+
7. Configure the basic information about the workflow, and then select **Next: Review tasks**.
33
62
34
-
## Before you begin
63
+
:::image type="content" source="media/tutorial-lifecycle-workflows/real-time-leaver.png" alt-text="Screenshot of the tab for basic workflow information." lightbox="media/tutorial-lifecycle-workflows/real-time-leaver.png":::
35
64
36
-
As part of the prerequisites for completing this tutorial, you need an account that has group and Teams memberships and that can be deleted during the tutorial. For more comprehensive instructions on how to complete these prerequisite steps, you may refer to the [Preparing user accounts for Lifecycle workflows tutorial](tutorial-prepare-azure-ad-user-accounts.md).
65
+
8. Inspect the tasks if you want, but no additional configuration is needed. Select **Next: Select users** when you're finished.
37
66
38
-
The leaver scenario can be broken down into the following:
39
-
-**Prerequisite:** Create a user account that represents an employee leaving your organization
40
-
-**Prerequisite:** Prepare the user account with groups and Teams memberships
41
-
- Create the lifecycle management workflow
42
-
- Run the workflow on-demand
43
-
- Verify that the workflow was successfully executed
67
+
:::image type="content" source="media/tutorial-lifecycle-workflows/real-time-tasks.png" alt-text="Screenshot of the tab for reviewing template tasks." lightbox="media/tutorial-lifecycle-workflows/real-time-tasks.png":::
44
68
45
-
## Create a workflow using leaver template
46
-
Use the following steps to create a leaver on-demand workflow that will execute a real-time employee termination with Lifecycle workflows using the Azure portal.
69
+
9. Choose the **Select users to run now** option. It allows you to select users for which the workflow will be executed immediately after creation. Regardless of the selection, you can run the workflow on demand later at any time, as needed.
47
70
48
-
1. Sign in to Azure portal
49
-
2. On the right, select **Azure Active Directory**.
50
-
3. Select **Identity Governance**.
51
-
4. Select **Lifecycle workflows (Preview)**.
52
-
5. On the **Overview (Preview)** page, select **New workflow**.
53
-
:::image type="content" source="media/tutorial-lifecycle-workflows/new-workflow.png" alt-text="Screenshot of selecting new workflow." lightbox="media/tutorial-lifecycle-workflows/new-workflow.png":::
71
+
:::image type="content" source="media/tutorial-lifecycle-workflows/real-time-users.png" alt-text="Screenshot of the option for selecting users." lightbox="media/tutorial-lifecycle-workflows/real-time-users.png":::
54
72
55
-
6. From the templates, select **Select** under **Real-time employee termination**.
56
-
:::image type="content" source="media/tutorial-lifecycle-workflows/select-template.png" alt-text="Screenshot of selecting template leaver workflow." lightbox="media/tutorial-lifecycle-workflows/select-template.png":::
73
+
10. Next, select on **+ Add users** to designate the users to be executed on this workflow.
57
74
58
-
7. Next, you configure the basic information about the workflow. Select **Next:Review tasks** when you're done with this step.
59
-
:::image type="content" source="media/tutorial-lifecycle-workflows/real-time-leaver.png" alt-text="Screenshot of review template tasks." lightbox="media/tutorial-lifecycle-workflows/real-time-leaver.png":::
75
+
:::image type="content" source="media/tutorial-lifecycle-workflows/real-time-add-users.png" alt-text="Screenshot of the button for adding users." lightbox="media/tutorial-lifecycle-workflows/real-time-add-users.png":::
60
76
61
-
8. On the following page, you may inspect the tasks if desired but no additional configuration is needed. Select **Next: Select users** when you're finished.
62
-
:::image type="content" source="media/tutorial-lifecycle-workflows/real-time-tasks.png" alt-text="Screenshot of template tasks." lightbox="media/tutorial-lifecycle-workflows/real-time-tasks.png":::
77
+
11. A panel with the list of available users appears on the right side of the window. Choose **Select** when you're done with your selection.
63
78
64
-
9. For the user selection, select **Select users**. This allows you to select users for which the workflow will be executed immediately after creation. Regardless of the selection, you can run the workflow on-demand later at any time as needed.
65
-
:::image type="content" source="media/tutorial-lifecycle-workflows/real-time-users.png" alt-text="Select real time leaver template users." lightbox="media/tutorial-lifecycle-workflows/real-time-users.png":::
66
-
67
-
10. Next, select on **+Add users** to designate the users to be executed on this workflow.
68
-
:::image type="content" source="media/tutorial-lifecycle-workflows/real-time-add-users.png" alt-text="Screenshot of real time leaver add users." lightbox="media/tutorial-lifecycle-workflows/real-time-add-users.png":::
69
-
70
-
11. A panel with the list of available users pops up on the right side of the screen. Select **Select** when you're done with your selection.
71
-
:::image type="content" source="media/tutorial-lifecycle-workflows/real-time-user-list.png" alt-text="Screenshot of real time leaver template selected users." lightbox="media/tutorial-lifecycle-workflows/real-time-user-list.png":::
79
+
:::image type="content" source="media/tutorial-lifecycle-workflows/real-time-user-list.png" alt-text="Screenshot of a list of available users." lightbox="media/tutorial-lifecycle-workflows/real-time-user-list.png":::
72
80
73
-
12. Select **Next: Review and create** when you're satisfied with your selection.
74
-
:::image type="content" source="media/tutorial-lifecycle-workflows/real-time-review-users.png" alt-text="Screenshot of reviewing template users." lightbox="media/tutorial-lifecycle-workflows/real-time-review-users.png":::
81
+
12. Select **Next: Review and create** when you're satisfied with your selection of users.
75
82
76
-
13. On the review blade, verify the information is correct and select **Create**.
77
-
:::image type="content" source="media/tutorial-lifecycle-workflows/real-time-create.png" alt-text="Screenshot of creating real time leaver workflow." lightbox="media/tutorial-lifecycle-workflows/real-time-create.png":::
83
+
:::image type="content" source="media/tutorial-lifecycle-workflows/real-time-review-users.png" alt-text="Screenshot of added users." lightbox="media/tutorial-lifecycle-workflows/real-time-review-users.png":::
84
+
85
+
13. Verify that the information is correct, and then select **Create**.
86
+
87
+
:::image type="content" source="media/tutorial-lifecycle-workflows/real-time-create.png" alt-text="Screenshot of the tab for reviewing workflow choices, along with the button for creating the workflow." lightbox="media/tutorial-lifecycle-workflows/real-time-create.png":::
88
+
89
+
## Run the workflow
78
90
79
-
## Run the workflow
80
91
Now that the workflow is created, it will automatically run the workflow every 3 hours. Lifecycle workflows check every 3 hours for users in the associated execution condition and execute the configured tasks for those users. However, for the tutorial, we would like to run it immediately. To run a workflow immediately, we can use the on-demand feature.
81
92
82
93
>[!NOTE]
83
-
>Be aware that you currently cannot run a workflow on-demand if it is set to disabled. You need to set the workflow to enabled to use the on-demand feature.
94
+
>Be aware that you currently can't run a workflow ondemand if it's set to disabled. You need to set the workflow to enabled to use the on-demand feature.
84
95
85
-
To run a workflow on-demand, for users using the Azure portal, do the following steps:
96
+
To run a workflow on demand, for users using the Azure portal, do the following steps:
97
+
98
+
1. On the workflow screen, select the specific workflow you want to run.
99
+
2. Select **Run on demand**.
100
+
3. On the **select users** tab, select **add users**.
101
+
4. Add a user.
102
+
5. Select **Run workflow**.
86
103
87
-
1. On the workflow screen, select the specific workflow you want to run.
88
-
2. Select **Run on demand**.
89
-
3. On the **select users** tab, select **add users**.
90
-
4. Add a user.
91
-
5. Select **Run workflow**.
92
-
93
104
## Check tasks and workflow status
94
105
95
-
At any time, you may monitor the status of the workflows and the tasks. As a reminder, there are three different data pivots, users runs, and tasks that are currently available in public preview. You may learn more in the how-to guide [Check the status of a workflow (preview)](check-status-workflow.md). In the course of this tutorial, we look at the status using the user focused reports.
106
+
At any time, you can monitor the status of the workflows and the tasks. As a reminder, there are three different data pivots, users runs, and tasks that are currently available in public preview. You can learn more in the how-to guide [Check the status of a workflow (preview)](check-status-workflow.md). In the course of this tutorial, we look at the status using the user focused reports.
107
+
108
+
1. To begin, select the **Workflow history (Preview)** tab to view the user summary and associated workflow tasks and statuses.
96
109
97
-
1. To begin, select the **Workflow history (Preview)** tab to view the user summary and associated workflow tasks and statuses.
98
-
:::image type="content" source="media/tutorial-lifecycle-workflows/workflow-history-real-time.png" alt-text="Screenshot of real time history overview." lightbox="media/tutorial-lifecycle-workflows/workflow-history-real-time.png":::
110
+
:::image type="content" source="media/tutorial-lifecycle-workflows/workflow-history-real-time.png" alt-text="Screenshot of real time history overview." lightbox="media/tutorial-lifecycle-workflows/workflow-history-real-time.png":::
99
111
100
-
1. Once the **Workflow history (Preview)** tab has been selected, you land on the workflow history page as shown.
101
-
:::image type="content" source="media/tutorial-lifecycle-workflows/user-summary-real-time.png" alt-text="Screenshot of real time workflow history." lightbox="media/tutorial-lifecycle-workflows/user-summary-real-time.png":::
112
+
1. After the **Workflow history (Preview)** tab has been selected, you land on the workflow history page as shown.
102
113
103
-
1. Next, you may select **Total tasks** for the user Jane Smith to view the total number of tasks created and their statuses. In this example, there are three total tasks assigned to the user Jane Smith.
104
-
:::image type="content" source="media/tutorial-lifecycle-workflows/total-tasks-real-time.png" alt-text="Screenshot of total tasks for real time workflow." lightbox="media/tutorial-lifecycle-workflows/total-tasks-real-time.png":::
114
+
:::image type="content" source="media/tutorial-lifecycle-workflows/user-summary-real-time.png" alt-text="Screenshot of real time workflow history." lightbox="media/tutorial-lifecycle-workflows/user-summary-real-time.png":::
105
115
106
-
1. To add an extra layer of granularity, you may select **Failed tasks** for the user Wade Warren to view the total number of failed tasks assigned to the user Wade Warren.
107
-
:::image type="content" source="media/tutorial-lifecycle-workflows/failed-tasks-real-time.png" alt-text="Screenshot of failed tasks for real time workflow." lightbox="media/tutorial-lifecycle-workflows/failed-tasks-real-time.png":::
116
+
1. You can select **Total tasks** for the user Jane Smith to view the total number of tasks created and their statuses. In this example, there are three total tasks assigned to the user Jane Smith.
108
117
109
-
1. Similarly, you may select **Unprocessed tasks** for the user Wade Warren to view the total number of unprocessed or canceled tasks assigned to the user Wade Warren.
110
-
:::image type="content" source="media/tutorial-lifecycle-workflows/canceled-tasks-real-time.png" alt-text="Screenshot of unprocessed tasks for real time workflow." lightbox="media/tutorial-lifecycle-workflows/canceled-tasks-real-time.png":::
118
+
:::image type="content" source="media/tutorial-lifecycle-workflows/total-tasks-real-time.png" alt-text="Screenshot of total tasks for real time workflow." lightbox="media/tutorial-lifecycle-workflows/total-tasks-real-time.png":::
119
+
120
+
1. To add an extra layer of granularity, you can select **Failed tasks** for the user Wade Warren to view the total number of failed tasks assigned to the user Wade Warren.
121
+
122
+
:::image type="content" source="media/tutorial-lifecycle-workflows/failed-tasks-real-time.png" alt-text="Screenshot of failed tasks for real time workflow." lightbox="media/tutorial-lifecycle-workflows/failed-tasks-real-time.png":::
123
+
124
+
1. You can select **Unprocessed tasks** for the user Wade Warren to view the total number of unprocessed or canceled tasks assigned to the user Wade Warren.
125
+
126
+
:::image type="content" source="media/tutorial-lifecycle-workflows/canceled-tasks-real-time.png" alt-text="Screenshot of unprocessed tasks for real time workflow." lightbox="media/tutorial-lifecycle-workflows/canceled-tasks-real-time.png":::
111
127
112
128
## Next steps
113
-
-[Preparing user accounts for Lifecycle workflows (preview)](tutorial-prepare-azure-ad-user-accounts.md)
114
-
-[Complete employee offboarding tasks in real-time on their last day of work using Lifecycle Workflows APIs](/graph/tutorial-lifecycle-workflows-offboard-custom-workflow)
129
+
130
+
-[Prepare user accounts for lifecycle workflows (preview)](tutorial-prepare-azure-ad-user-accounts.md)
131
+
-[Complete employee departure tasks in real time on their last day of work using lifecycle workflow APIs](/graph/tutorial-lifecycle-workflows-offboard-custom-workflow)
0 commit comments