Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In this tutorial, we will create and publish an Azure AD PowerShell Workflow using the WFS. Please read through the concepts and important properties here to know more about how WFS supports executing PowerShell cmdlets. We will cover the following in this tutorial.

  • Create a workflow that uses AzXPowerShellActivity, which will run the command below in Azure AD Microservice. This command fetches DisplayName, Mail, and ObjectId attributes for the top 50 Azure Ad Users.

    Code Block
    Get-AzureADUser -Top 50 | Select DisplayName, Mail, ObjectId | ConvertTo-Json
  • We will include DynamicPowershellResultsGrid Activity in the Workflow to view the results in a grid.

  • Publish the Workflow

  • Verify the Workflow is working by executing the Workflow in EmpowerID. We should be able to see a grid with DisplayName, Mail, and ObjectId attributes for the top 50 Azure Ad Usersthe workflow displays the expected results by running it in the EmpowerID UI.

Create Workflow

Please follow the instructions below to create an Azure AD PowerShell Workflow that uses AzXPowerShellActivity & DynamicPowershellResultsGrid.

Note

This tutorial assumes that the reader knows how to create a basic workflow. Please consider following the instructions here to create a basic workflow.

...

We are all set to publish the Workflow. Please follow the instruction, and information about publishing the workflow items can be found here.

Verify the Workflow is Working

  1. Log in to your EmpowerID portal.

  2. Navigate to Object Administration → Workflows.

  3. Search the Workflow published earlier and click on the workflow name in the Run column to execute the Workflow.

    Image RemovedImage Added

  4. You should be able to see the Grid that populates the users from the Azure AD.

    Image RemovedImage Added

Insert excerpt
IL:External Stylesheet
IL:External Stylesheet
nopaneltrue

Macrosuite divider macro
dividerWidth100
dividerTypetext
emoji{"id":"smile","name":"Smiling Face with Open Mouth and Smiling Eyes","short_names":["smile"],"colons":":smile:","emoticons":["C:","c:",":D",":-D"],"unified":"1f604","skin":null,"native":"😄"}
textColor#000000
dividerWeight3
labelPositionmiddle
textAlignmentcenter
iconColor#0052CC
fontSizemedium
textRelated Pages
emojiEnabledfalse
dividerColor#DFE1E6
dividerIconbootstrap/CloudsFill

Page Treeroot@selfstartDepth1PowerShell Activity

Create MSOnline PowerShell Workflow