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
# Configure a Logic App for Lifecycle Workflow use (Preview)
15
15
16
-
Before you can use an existing Azure Logic App with the custom task extension feature of Lifecycle Workflows, it must first be made compatible. This reference guide provides a list of steps that must be taken to make the Azure Logic App compatible the custom task extension. For a simpler guide on creating a new Logic App with the custom task extension via the Lifecycle Workflows portal, see [Trigger Logic Apps based on custom task extensions (preview)](trigger-custom-task.md).
16
+
Before you can use an existing Azure Logic App with the custom task extension feature of Lifecycle Workflows, it must first be made compatible. This reference guide provides a list of steps that must be taken to make the Azure Logic App compatible. For a guide on creating a new compatible Logic App via the Lifecycle Workflows portal, see [Trigger Logic Apps based on custom task extensions (preview)](trigger-custom-task.md).
17
17
18
-
## Configure existing Logic Apps for LCW use with Microsoft Graph
18
+
## Configure existing Logic Apps for LCW use
19
19
20
20
Making an Azure Logic app compatible to run with the **Custom Task Extension** requires the following steps:
21
21
@@ -31,7 +31,7 @@ To configure those you'll follow these steps:
31
31
32
32
1. Open the Azure Logic App you want to use with Lifecycle Workflow. Logic Apps may greet you with an introduction screen, which you can close with the X in the upper right corner.
33
33
34
-
1. On the left of the screen select **Logic App code view**.
34
+
1. On the left of the screen, select **Logic App code view**.
35
35
36
36
1. In the editor paste the following code:
37
37
```LCW Logic App code view template
@@ -199,24 +199,31 @@ To configure those you'll follow these steps:
199
199
200
200
1. Switch to the **Logic App designer** and inspect the configured trigger and callback action. To build your custom business logic, add other actions between the trigger and callback action. If you're only interested in the fire-and-forget scenario, you may remove the callback action.
201
201
202
-
1. On the left of the screen select **Identity**.
202
+
1. On the left of the screen, select **Identity**.
203
203
204
-
1. Under the system assigned tab enable the status to register it with Azure Active Directory.
204
+
1. Under the system assigned tab, enable the status to register it with Azure Active Directory.
205
205
206
206
1. Select Save.
207
207
208
208
1. For Logic Apps authorization policy, we'll need the managed identities **Application ID**. Since the Azure portal only shows the Object ID, we need to look up the Application ID. You can search for the managed identity by Object ID under **Enterprise Applications in the Azure AD Portal** to find the required Application ID.
209
209
210
210
1. Go back to the logic app you created, and select **Authorization**.
211
211
212
-
1. Create a new authorization policy based on the table below:
212
+
1. Create two authorization policies based on the tables below:
213
213
214
214
|Claim |Value |
215
215
|---------|---------|
216
216
|Issuer | https://sts.windows.net/(Tenant ID)/ |
217
217
|Audience | Application ID of your Logic Apps Managed Identity |
|Audience | Application ID of your Logic Apps Managed Identity |
226
+
|appID | ce79fdc4-cd1d-4ea5-8139-e74d7dbe0bb7 |
220
227
221
228
1. Save the Authorization policy.
222
229
> [!NOTE]
@@ -228,112 +235,9 @@ To configure those you'll follow these steps:
228
235
- For Audience, ensure you're using the Application ID and not the Object ID of your Managed Identity
229
236
- For appid, ensure the custom claim is “appid” in all lowercase. The appid value represents Lifecycle Workflows and is always the same.
230
237
231
-
232
-
233
-
## Linking Lifecycle Workflows with Logic Apps using Microsoft Graph
234
-
235
-
After the Logic App, we can now integrate it with Lifecycle Workflows. As outlined in the high-level steps we first need to create the customTaskExtension and afterwards, we can reference the customTaskExtension in our “Run a custom task extension” task.
236
-
237
-
The API call for creating a customTaskExtension is as follows:
238
-
```http
239
-
POST https://graph.microsoft.com/beta/identityGovernance/lifecycleManagement/customTaskExtensions
240
-
Content-type: application/json
241
-
242
-
{
243
-
"displayName": "<Custom task extension name>",
244
-
"description": "<description for custom task extension>",
Now that your Logic app is configured for use with Lifecycle Workflows, you can create a custom task extension via UI or API and use it in a Lifecycle Workflow.
|arguments | Argument contains the name parameter "tapLifetimeInMinutes", which is the lifetime of the temporaryAccessPass in minutes starting at startDateTime. Minimum 10, Maximum 43200 (equivalent to 30 days). The argument also contains the tapIsUsableOnce parameter, which determines whether the password is limited to a one time use. If true, the pass can be used once; if false, the pass can be used multiple times within the temporaryAccessPass lifetime. |
132
+
|arguments | Argument contains the name parameter "tapLifetimeInMinutes", which is the lifetime of the temporaryAccessPass in minutes starting at startDateTime. Minimum 10, Maximum 43200 (equivalent to 30 days). The argument also contains the tapIsUsableOnce parameter, which determines whether the passcode is limited to a one time use. If true, the pass can be used once; if false, the pass can be used multiple times within the temporaryAccessPass lifetime. |
133
133
134
134
135
135
```Example for usage within the workflow
@@ -643,4 +643,4 @@ For Microsoft Graph the parameters for the **Send offboarding email to users man
0 commit comments