Skip to main content
Okta

Integrate Okta with Torq to trigger workflows: configure webhooks and event hooks, create test workflows, and set up Okta steps.

Updated over 2 weeks ago

Okta is an identity and access management service for web-based applications.

Torq enables quick and easy integration with Okta, so you can automate anything and everything within moments. Torq's public Okta steps include:

  • List All Okta Users

  • Add User to Group

  • Enroll Okta SMS factor

  • List User Assigned Roles

  • +49 more...

If you don't see a step you need, you can create your own in various ways, such as using the Send an HTTP Request step or Torq’s Step Builder, and share it across your organization.

To trigger a Torq workflow based on events sent from Okta, look here.

To use Okta steps in Torq workflows, look here.

Use Okta to Trigger Workflows in Torq

Step One: Create an Okta Trigger Integration in Torq

  1. Navigate to Integration: Go to Build > Integrations > Triggers > Okta and click Add.

  2. Fill in the Details:

    1. Give the integration a unique and meaningful name.

    2. Optionally, add an authentication header.

      1. Give the secret a name.

      2. Click Generate random secret.

      3. Copy the secret name and the secret and save them for later. You will use this same header name and secret when creating your event hook in Okta.

  3. Finalize: Click Add.

Step Two: Create an Event Hook in Okta

  1. Go to Okta: In Okta, click the Admin button at the top right of your home page to access your admin dashboard.

  2. Navigate to Event Hook: Go to Workflow > Event Hooks and click Create Event Hook.

  3. Fill in the Details:

    1. Name: Give the Event Hook a meaningful name.

    2. URL: Paste the URL from the Okta integration you created in Torq from step one.

    3. Authentication field: Paste the authentication header name you created earlier.

    4. Authentication secret: Paste the authentication header secret you created earlier.

    5. Requests: Add custom header fields and subscribe to one or more events to send to Torq.

  4. Finalize: Click Save & Continue.

Now that you've successfully created an Okta trigger, you can build your first Okta-initiated workflow!

In Torq, go to Build > Workflows > Create a Workflow > New Blank Workflow, and select the trigger type: Integrations > Okta. Find your new trigger, and automate away!


Use Okta Steps in Torq

Step One: Create an Okta API Token

API tokens inherit the same permissions as the user who creates them, and if the user permissions change, the API token permissions also change. For more information about API tokens, see the Okta documentation.

  1. Sign in to Okta: Sign in to your Okta account with administrator privileges.

  2. Create a Token: Click Security > API > Tokens > Create Token.

  3. Fill in the Details:

    1. Give the token a meaningful name

    2. Use the dropdown menu to select the relevant origin for API calls made with this token.

  4. Finalize: Click Create Token.

  5. Save Token: Copy the API token and save it to use later in Torq.

  6. Finalize: Click Ok, got it.

    oktagif.gif

Step Two: Create an Okta Steps Integration in Torq

  1. Navigate to Integration: Go to Build > Integrations > Steps > Okta and click Add.

  2. Fill in the Details:

    1. Give the integration a unique and meaningful name.

    2. In the API Key field, paste the API token that you saved in step one.

    3. In the Okta Domain field, paste the section of the URL from your company's Okta app (ex. my-company.okta.com).

  3. Finalize: Click Add.


FAQs

  • Okta may limit the number of event hooks you can create, which limits the number of trigger integrations you can set up within Torq. If you hit the event hook limit, subscribe to all events in Okta and use trigger conditions within your workflows to specify when a workflow should be triggered.


Templates

Now that you've added your integrations, check out these specially crafted templates by Torq's security experts. Visit Torq's template library for more.

Did this answer your question?