Step 1: Build the flow

  1. In the Admin Console, go to WorkflowWorkflows Console.
  2. In the Workflows Console, click New Flow. Or, if you have a folder where you'd like to store the flow, open it and click Create a Flow Now.
  3. Click Add New Event, and then select Okta from the menu of applications.
  4. In the Okta events menu, select User Suspended.
  5. If you haven't connected your Okta account yet, click New Connection.
  • In the Admin Console, go to ApplicationsApplications.
  • Select Okta Workflows OAuth.
  • In the Sign On tab, copy the Client ID. Return to Workflows Console and paste it into the Client ID field in the New Connection window.
  • In the Sign On tab, copy the Client Secret. Return to Workflows Console and paste it into the Client Secret field in the New Connection window.
  • In the Workflows Console, enter your domain name, without http://, in the New Connection window.
  • Click Create.
  1. If you've already connected your Okta account, you may be prompted to authenticate your connection. Sign in with your Okta credentials.
  2. In the Workflows Console, click Function, and then select Compose.
  3. In the Compose card, type the following message: Hello, the user with username was suspended in Okta (leave a blank space after username.)
  4. Drag and drop theAlternate ID field from the Okta - User Suspended card to the blank space in the Compose card.
  5. In the Workflows Console, go toAdd AnotherApp Action.
  6. Select Office 365 Mail from the menu of applications, and then choose Send Email from the actions menu.
  7. If you haven't authenticated your Office 365 account, complete the prompt steps.
  8. In the Send Email card, enter your email address into the To field.
  9. Drag and drop the output from the Compose card to the Body field of the Send Email card.
  10. Enter User Suspended Notification in the Subject field of the Send Email card.
  11. Click Save, and then name your flow. Be sure to select Save All Data.
  12. In the Okta Workflows Console, toggle the Flow is OFF switch to ON.

Next steps

Step 2: Trigger the flow