Use Okta with Automation
The Okta integration with Automation is only available to Jira Service Management Cloud customers on Premium or Enterprise plans. Find out how to upgrade your plan.
You can connect your Okta account to your Jira project to automate the process of employee onboarding and other HR tasks. You must be a Jira admin to connect Okta to Jira Automation. Visit Okta's documentation to read more about registering a core API in Okta.
This integration currently only supports connections with Okta using the base domain of "okta.com". If your domain name includes "oktapreview.com" or "okta-emea.com" you will not be able to create a connection with your Jira project.
Configure an API in Okta
Before creating a connection between your project and Okta, you need to register an API client in Okta:
Sign in to your Okta account as a user with administrative privileges.
From the Admin Console, go to to Applications, then Applications.
Select Create App Integration.
For the Sign-in method, select OIDC - OpenID Connect.
For the Application type, select Web Application.
Select Next.
On the New Web App Integration page:
enter an App integration name (for example, Jira - Okta integration)
deselect the Proof of possession field
for the Grant type, under Core grants, select the following checkboxes:
Authorization Code
Refresh Token
Update Sign-in redirect URIs to http://id.atlassian.com/outboundAuth/finish
Select an Assignment option according to your preference
Select Save. Okta will create the app integration.
From the new integration Okta API Scopes tab, grant the required scopes. Select Any, then find the following scopes and select Grant:
offline_access
okta.groups.manage
okta.groups.read
okta.users.manage
okta.users.read
From the new application General tab, copy the Client ID and Client Secret
If you need to create a new Client Secret, you can go to the Okta API Scopes tab and create a new active secret.
From the URL bar, copy the Base URL. For example:
http://dev-1234567.okta.com
. Remember to remove the-admin
part of your subdomain.
Read more about registering a core API in Okta.
Make sure you have these three things before continuing to integrate Okta with Jira: Base URL, Client ID, and Client secret.
Integrate an automation rule with Okta
You can choose to create an automation rule with an action that integrates with Okta. Read more about creating an automation rule.
Each time you create a rule that integrates with Okta, you will need to create a connection using the details you received when you registered the API client in Okta.
From your project settings, select Project settings, then Automation.
Select Create rule and add a trigger.
Select Add component and search for Okta actions by searching for “Okta” in the search box.
When prompted to connect to Okta, select Connect.
Complete the form with a name for the connection and the details you received when you registered the API client in Okta (Base URL, Client ID, and Client secret).
Select Connect.
You will be taken to Okta for authorization.
Sign in to Okta.
When prompted to “Authorize Okta”, select Allow.
Based on the trigger, fill in the form with the required fields
Actions
Add user to a group
This action lets you automatically add users to an Okta group as part of your business processes. This can be useful when you’re onboarding a new employee, transitioning a user to a new department, or granting temporary project access.
Create user in Okta
This action allows you to create a new user in Okta using details about an employee from other services to use in your Jira project. This can be useful for streamlining your onboarding process and gathering employee details when resolving a query. For example, when a user is added to Workday, you might automate the next step to create a user in Okta using their Workday details. Read more about Workday triggers.
Retrieve user details from Okta
This action allows you to retrieve certain employee details from Okta to use in your Jira Service Management project. This can be useful for verifying if the user already exists in Okta to avoid creating duplicates.
Suspend user in Okta
This action allows you to automate this critical security step directly from Jira Automation. This can be useful when you need to suspend a user’s access due to offboarding, leave of absence, or security concerns.
Send custom Okta request
The Send custom Okta request action allows you to send a custom request to Okta using HTTP requests Get, Post, Put and Delete. This can be useful for automating a wide range of tasks in Okta.
Scopes
Scopes determine the access your automation rule is granted to Okta. Some default scopes have been added in Jira for each action. These scopes must be enabled in Okta before creating your connection.
Default scopes
The following default scopes have been added in Jira for each action:
offline_access
– Requests a refresh token used to obtain more access tokens without re-prompting the user for authentication.okta.groups.manage
– Allows the automation rule to manage existing groups in your Okta organization.okta.groups.read
– Allows the automation rule to read information about groups and their members in your Okta organization.okta.users.manage
– Allows the automation rule to create new users and to manage all users' profile and credentials information.okta.users.read
– Allows the automation rule to read the existing users' profiles and credentials.
See the full list of Okta scopes.
Smart values
You can use smart values to access data in Okta for use in your Jira project.
Action smart values
Smart value | Description |
---|---|
| Returns the response body. |
| Returns the response status. |
| Returns a user's department from Okta, for example: Engineering. |
| Returns a user's display name from Okta, for example: Jane Doe. |
| Returns a user's email address from Okta, for example: jane.doe@example.com. |
| Returns a user’s employee number from Okta, for example: EMP12345. |
| Returns a user's first name from Okta, for example: Jane. |
| Returns a user's Okta ID from Okta, for example: 00u1abc2def3ghi4. |
| Returns a user's last name from Okta, for example: Doe. |
| Returns a user's login username from Okta, for example: jane.doe@example.com. |
| Returns a user's manager from Okta, for example: Jess Deer. |
| Returns a user's manager ID from Okta, for example: 001xyz2abc3def4. |
| Returns a user's mobile phone number from Okta, for example: +1-555-555-5556. |
| Returns a user's primary phone number from Okta, for example: +1-666-666-6665. |
| Returns a user's secondary email from Okta, for example: jane.doe.personal@example.com. |
| Returns a user's status from Okta, for example: ACTIVE. |
| Returns a user's job title from Okta, for example: Senior Software Engineer. |
Was this helpful?