Workflows Tips #12: Deprovisioning via Slack, Conditional Processing, Updating Last Login, and a Keyboard Shortcut
Tags: nocode, workflows, automation, okta
Published: 2022-08-23 15:19:15

---
title: Workflows Tips #12: Deprovisioning via Slack, Conditional Processing, Updating Last Login, and a Keyboard Shortcut
published: true
date: 2022-08-23 04:24:43 UTC
tags: Nocode, workflows, automation, okta
canonical_url: https://maxkatz.net/2022/03/17/workflows-tips-12-deprovisioning-via-slack-conditional-processing-updating-last-login-and-a-keyboard-shortcut/
---

Welcome to another Okta Workflows Tips post. [Read](https://dev.to/oktaworkflows/okta-workflows-tips-57bj) all other tips.

In this post:

- Using Okta Workflows to automate user deprovisioning via Slack
- Verify outcome prior to processing Okta user actions
- Updating a custom attribute with last login from Okta dashboard or from an SP-initiated login (using SSO)
- And some (cool) keyboard and mouse shortcuts!

## Using Okta Workflows to Automate User Deprovisioning via Slack

_This tip is from [Pete Viri](https://www.linkedin.com/in/pete-viri-64b29165/). Pete is an Okta Certified Professional, with over of 10 years of IT experience currently working as a Systems Engineer at Airtable. Pete also hangs out at MacAdmins Slack [#okta-workflows channel.](https://www.macadmins.org/)_

This tip is a link to a great [guide](https://paper.dropbox.com/doc/Using-Okta-Workflows-to-Automate-User-Deprovisioning-via-Slack--BdYQuHOg~4bfyKjpC~xXuiGfAg-orNKxky5yAdc7f2dNu5Dr) on how to use Okta Workflows to automate user deprovisioning via Slack.

[![Start user off-boarding](https://katzmax.files.wordpress.com/2022/03/workflows_user_deprovision_guide2.png?w=196)](https://katzmax.files.wordpress.com/2022/03/workflows_user_deprovision_guide2.png)
<figcaption>Start user off-boarding</figcaption>

[![User off-boarding actions](https://katzmax.files.wordpress.com/2022/03/workflows_user_deprovision_guide.png?w=483)](https://katzmax.files.wordpress.com/2022/03/workflows_user_deprovision_guide.png)
<figcaption>User off-boarding actions</figcaption>

> Slack apps are a great way to integrate a variety of SaaS applications into its platform. Okta Workflows is no exceptionand works particularly well since it supports webhook triggers via its API Endpoint trigger card. We can setup flows using this to help automate the user lifecycle deprovisioning process to fill in the gaps that SCIM or other offboarding automations may not cover.
> 
> <cite><a href="https://paper.dropbox.com/doc/Using-Okta-Workflows-to-Automate-User-Deprovisioning-via-Slack%E2%80%93BdYQuHOg~4bfyKjpC~xXuiGfAg-orNKxky5yAdc7f2dNu5Dr" rel="nofollow">https://paper.dropbox.com/doc/Using-Okta-Workflows-to-Automate-User-Deprovisioning-via-Slack–BdYQuHOg~4bfyKjpC~xXuiGfAg-orNKxky5yAdc7f2dNu5Dr</a></cite>

Continue [reading Pete’s excellent guide](https://paper.dropbox.com/doc/Using-Okta-Workflows-to-Automate-User-Deprovisioning-via-Slack--BdW5VaWON7FvL~8zLLMVc5HCAg-orNKxky5yAdc7f2dNu5Dr) on how to deprovision users via Slack.

## Verify outcome prior to processing Okta user actions

_This tip is from [AJ Ahrens](https://www.linkedin.com/in/arthur-a-756209188/), Workflows Team Lead at Okta._

Okta events (user created, deactivated, activated, etc) trigger on failure or success.  
To ensure that a workflow only continues processing on success, add a **Branching – Continue If** card for the _outcome.result_ (from **Event Details** in the trigger event) and check its value for **SUCCESS**. If the condition is true (outcome.result == SUCCESS) only then continue to process the flow. If the condition is false the flow process will stop (end).

[![Check condition before continuing flow process](https://katzmax.files.wordpress.com/2022/03/workflows_tips12_continueif_success.png?w=955)](https://katzmax.files.wordpress.com/2022/03/workflows_tips12_continueif_success.png)
<figcaption>Check condition before continuing flow process</figcaption>

[![Testing if to continue processing the flow](https://katzmax.files.wordpress.com/2022/03/workflows_tips12_continueif_success_test.png?w=958)](https://katzmax.files.wordpress.com/2022/03/workflows_tips12_continueif_success_test.png)
<figcaption>Testing if to continue processing the flow</figcaption>

## Updating a custom attribute with last login from Okta dashboard or from a SP-initiated SSO

_This tip is from [AJ Ahrens](https://www.linkedin.com/in/arthur-a-756209188/), Workflows Team Lead at Okta._

Okta core **Last Login** attribute only gets updated if a user logs into the dashboard and doesn’t get updated if they login from a 3rd party application like Gmail, Workday and many others. The 3rd party login is also called an SP-initiated SSO (Service Provider initiated SSO). This makes creating a deactivation process difficult when the last login field is not providing all of the information.

You can build a workflow to update a custom attribute based on events retrieved from Okta’s system log. The published field is when the action (either logging into Okta dashboard or app sign on) happened.

## And some (cool) keyboard and mouse shortcuts!

_This tip is from [Gabriel Sroka](https://www.linkedin.com/in/gabrielsroka/)_, Okta expert and developer of the [rockstar](https://gabrielsroka.github.io/rockstar) Chrome extension. _Gabriel also hangs out in the [MacAdmins](https://www.macadmins.org) #okta-workflows Slack community._

You can use **Ctrl+S** (Windows) and **Command+S** keyboard shortcuts to save a flow.

And, and one more. Click a mapping variable (like **Display Name** ) and its connection line will stay on. Click another variable and the connection line will turn off. Something cool you can definitely use for taking screenshots 📸.

[![A workflows with connections line on](https://katzmax.files.wordpress.com/2022/03/workflows_tips12_keep_line_on.png?w=1024)](https://katzmax.files.wordpress.com/2022/03/workflows_tips12_keep_line_on.png)
<figcaption>A workflows with connections line on</figcaption>

* * *

Two resources to help you learn more:

📌 Try this step-by-step getting started tutorial: [Build Your First Automation With Okta Workflows: Notify When User Is Suspended](https://dev.to/maxkatz/build-your-first-automation-with-okta-workflows-notify-when-user-is-suspended-1l3p-temp-slug-2933517).

📌 All the [Workflows resources](https://dev.to/maxkatz/okta-workflows-resources-1ebi) (docs, tutorial, office hours, templates, office hours and more)