Below is a high-level set of steps to help you create an Okta integration within ServiceNow using Flow Designer, ensure it is in your “EC” scope, and then push your work to GitHub. Depending on your specific requirements and your ServiceNow version, you may need to adapt some details. However, this walkthrough should give you a strong starting point.
- Prepare Your ServiceNow Environment
Identify or create your EC (Employee Center) scopeIn ServiceNow, go toSystem Applications>My Company Applications(orStudio).If an EC application or scope already exists, ensure you have the proper roles and permission to modify it.If you need to create a new app in that scope, clickCreate Applicationand choose a name, selecting “EC” as the scope if it exists in your environment.
In ServiceNow, go toSystem Applications>My Company Applications(orStudio).
If an EC application or scope already exists, ensure you have the proper roles and permission to modify it.
If you need to create a new app in that scope, clickCreate Applicationand choose a name, selecting “EC” as the scope if it exists in your environment.
Enable Flow Designer and IntegrationHub(if not already enabled)Make sureFlow DesignerandIntegrationHubare activated (System Applications > All Available Applications > All, then search for them).For Okta integrations, IntegrationHub or at least the ability to call external REST APIs is crucial.
Make sureFlow DesignerandIntegrationHubare activated (System Applications > All Available Applications > All, then search for them).
For Okta integrations, IntegrationHub or at least the ability to call external REST APIs is crucial.
Identify or create your EC (Employee Center) scope
In ServiceNow, go toSystem Applications>My Company Applications(orStudio).
If an EC application or scope already exists, ensure you have the proper roles and permission to modify it.
If you need to create a new app in that scope, clickCreate Applicationand choose a name, selecting “EC” as the scope if it exists in your environment.
In ServiceNow, go toSystem Applications>My Company Applications(orStudio).
If an EC application or scope already exists, ensure you have the proper roles and permission to modify it.
If you need to create a new app in that scope, clickCreate Applicationand choose a name, selecting “EC” as the scope if it exists in your environment.
Enable Flow Designer and IntegrationHub(if not already enabled)
Make sureFlow DesignerandIntegrationHubare activated (System Applications > All Available Applications > All, then search for them).
For Okta integrations, IntegrationHub or at least the ability to call external REST APIs is crucial.
Make sureFlow DesignerandIntegrationHubare activated (System Applications > All Available Applications > All, then search for them).
For Okta integrations, IntegrationHub or at least the ability to call external REST APIs is crucial.
- Create a Connection to Okta
Before building a Flow, you must set up how ServiceNow will talk to . Typically, you do this via Connection & Credential Aliases or direct REST credentials:
Gather Okta API detailsYou’ll need your Okta domain (e.g.,dev-xxxxxx.okta.com) and an API token or OAuth credentials.You can create an API token in your Okta Admin Dashboard:Security>API>Tokens.
You’ll need your Okta domain (e.g.,dev-xxxxxx.okta.com) and an API token or OAuth credentials.
You can create an API token in your Okta Admin Dashboard:Security>API>Tokens.
Create a Connection & Credential(optional but recommended)In ServiceNow, go toIntegrationHub>Connections & Credentials.Create aCredentialrecord for Okta containing your API token.Optionally create aConnection & Credential Aliasthat references this credential. This allows you to manage your credentials separately from the Flow logic.
In ServiceNow, go toIntegrationHub>Connections & Credentials.
Create aCredentialrecord for Okta containing your API token.
Optionally create aConnection & Credential Aliasthat references this credential. This allows you to manage your credentials separately from the Flow logic.
Gather Okta API details
You’ll need your Okta domain (e.g.,dev-xxxxxx.okta.com) and an API token or OAuth credentials.
You can create an API token in your Okta Admin Dashboard:Security>API>Tokens.
You’ll need your Okta domain (e.g.,dev-xxxxxx.okta.com) and an API token or OAuth credentials.
You can create an API token in your Okta Admin Dashboard:Security>API>Tokens.
Create a Connection & Credential(optional but recommended)
In ServiceNow, go toIntegrationHub>Connections & Credentials.
Create aCredentialrecord for Okta containing your API token.
Optionally create aConnection & Credential Aliasthat references this credential. This allows you to manage your credentials separately from the Flow logic.
In ServiceNow, go toIntegrationHub>Connections & Credentials.
Create aCredentialrecord for Okta containing your API token.
Optionally create aConnection & Credential Aliasthat references this credential. This allows you to manage your credentials separately from the Flow logic.
- Build a Flow in the EC Scope
Open Flow DesignerNavigate toFlow Designer>Designer.If prompted, ensure you are developing inside the EC scope/application.
Navigate toFlow Designer>Designer.
If prompted, ensure you are developing inside the EC scope/application.
Create a new FlowClickNew>Flow.Give your Flow a name (e.g., “Okta Integration Flow”).Verify that theApplication(scope) is set to “EC” or whichever name you used for that scope.
ClickNew>Flow.
Give your Flow a name (e.g., “Okta Integration Flow”).
Verify that theApplication(scope) is set to “EC” or whichever name you used for that scope.
Add a Trigger(if needed)Select a trigger (e.g., run on a schedule, or upon a record update, or via inbound API call).If you don’t have an event-based trigger right now, you can keep it simple with a manual or scheduled trigger for testing.
Select a trigger (e.g., run on a schedule, or upon a record update, or via inbound API call).
If you don’t have an event-based trigger right now, you can keep it simple with a manual or scheduled trigger for testing.
Add an Action to Integrate with OktaClick+under the Trigger.ChooseAction.If you have IntegrationHub Spokes for Okta installed, you could use out-of-box Okta actions. If not, selectRESTto build a custom action.Method: GET, POST, or whichever method your endpoint requires.Endpoint:https:///api/v1/...(the specific path depends on the Okta API you’re calling).Authentication:Use your previously created Connection & Credential Alias, if set up.Or manually add theAuthorization: SSWS {apiToken}header.Map theInputsandOutputsas needed.
Click+under the Trigger.
ChooseAction.
If you have IntegrationHub Spokes for Okta installed, you could use out-of-box Okta actions. If not, selectRESTto build a custom action.Method: GET, POST, or whichever method your endpoint requires.Endpoint:https:///api/v1/...(the specific path depends on the Okta API you’re calling).Authentication:Use your previously created Connection & Credential Alias, if set up.Or manually add theAuthorization: SSWS {apiToken}header.
Method: GET, POST, or whichever method your endpoint requires.
Endpoint:https:///api/v1/...(the specific path depends on the Okta API you’re calling).
Authentication:Use your previously created Connection & Credential Alias, if set up.Or manually add theAuthorization: SSWS {apiToken}header.
Use your previously created Connection & Credential Alias, if set up.
Or manually add theAuthorization: SSWS {apiToken}header.
Map theInputsandOutputsas needed.
Add additional logicUse Flow Designer’s data pills and steps (e.g., if you need to parse JSON responses, transform data, update a ServiceNow table, etc.).Chain any further actions or subflows to handle what you want to do with Okta’s data.
Use Flow Designer’s data pills and steps (e.g., if you need to parse JSON responses, transform data, update a ServiceNow table, etc.).
Chain any further actions or subflows to handle what you want to do with Okta’s data.
Save and Test the FlowClickSave.ClickTest.Confirm that the Flow runs successfully and that it’s communicating with as expected.
ClickSave.
ClickTest.
Confirm that the Flow runs successfully and that it’s communicating with as expected.
Open Flow Designer
Navigate toFlow Designer>Designer.
If prompted, ensure you are developing inside the EC scope/application.
Navigate toFlow Designer>Designer.
If prompted, ensure you are developing inside the EC scope/application.
Create a new Flow
ClickNew>Flow.
Give your Flow a name (e.g., “Okta Integration Flow”).
Verify that theApplication(scope) is set to “EC” or whichever name you used for that scope.
ClickNew>Flow.
Give your Flow a name (e.g., “Okta Integration Flow”).
Verify that theApplication(scope) is set to “EC” or whichever name you used for that scope.
Add a Trigger(if needed)
Select a trigger (e.g., run on a schedule, or upon a record update, or via inbound API call).
If you don’t have an event-based trigger right now, you can keep it simple with a manual or scheduled trigger for testing.
Select a trigger (e.g., run on a schedule, or upon a record update, or via inbound API call).
If you don’t have an event-based trigger right now, you can keep it simple with a manual or scheduled trigger for testing.
Add an Action to Integrate with Okta
Click+under the Trigger.
ChooseAction.
If you have IntegrationHub Spokes for Okta installed, you could use out-of-box Okta actions. If not, selectRESTto build a custom action.Method: GET, POST, or whichever method your endpoint requires.Endpoint:https:///api/v1/...(the specific path depends on the Okta API you’re calling).Authentication:Use your previously created Connection & Credential Alias, if set up.Or manually add theAuthorization: SSWS {apiToken}header.
Method: GET, POST, or whichever method your endpoint requires.
Endpoint:https:///api/v1/...(the specific path depends on the Okta API you’re calling).
Authentication:Use your previously created Connection & Credential Alias, if set up.Or manually add theAuthorization: SSWS {apiToken}header.
Use your previously created Connection & Credential Alias, if set up.
Or manually add theAuthorization: SSWS {apiToken}header.
Map theInputsandOutputsas needed.
Click+under the Trigger.
ChooseAction.
If you have IntegrationHub Spokes for Okta installed, you could use out-of-box Okta actions. If not, selectRESTto build a custom action.
Method: GET, POST, or whichever method your endpoint requires.
Endpoint:https:///api/v1/...(the specific path depends on the Okta API you’re calling).
Authentication:Use your previously created Connection & Credential Alias, if set up.Or manually add theAuthorization: SSWS {apiToken}header.
Use your previously created Connection & Credential Alias, if set up.
Or manually add theAuthorization: SSWS {apiToken}header.
Method: GET, POST, or whichever method your endpoint requires.
Endpoint:https:///api/v1/...(the specific path depends on the Okta API you’re calling).
Authentication:
Use your previously created Connection & Credential Alias, if set up.
Or manually add theAuthorization: SSWS {apiToken}header.
Use your previously created Connection & Credential Alias, if set up.
Or manually add theAuthorization: SSWS {apiToken}header.
Map theInputsandOutputsas needed.
Add additional logic
Use Flow Designer’s data pills and steps (e.g., if you need to parse JSON responses, transform data, update a ServiceNow table, etc.).
Chain any further actions or subflows to handle what you want to do with Okta’s data.
Use Flow Designer’s data pills and steps (e.g., if you need to parse JSON responses, transform data, update a ServiceNow table, etc.).
Chain any further actions or subflows to handle what you want to do with Okta’s data.
Save and Test the Flow
ClickSave.
ClickTest.
Confirm that the Flow runs successfully and that it’s communicating with as expected.
ClickSave.
ClickTest.
Confirm that the Flow runs successfully and that it’s communicating with as expected.
- Link Your Application to GitHub
ServiceNow supports linking your scoped application to a repository so you can manage version control in GitHub.
Open Your Application in StudioGo toSystem Applications>Studio.Select the EC application (the same one that contains your Flow).
Go toSystem Applications>Studio.
Select the EC application (the same one that contains your Flow).
Connect to Source ControlIn Studio, click onSource the top menu (depending on your UI, it might be in the left navigation under the application name).ChooseLink to Source Control(if not already linked).Provide your GitHub repository URL (e.g.,/.git).Enter thebranch ), and your GitHub credentials (either username/password or a personal access token).ClickSubmit.
In Studio, click onSource the top menu (depending on your UI, it might be in the left navigation under the application name).
ChooseLink to Source Control(if not already linked).
Provide your GitHub repository URL (e.g.,/.git).
Enter thebranch ), and your GitHub credentials (either username/password or a personal access token).
ClickSubmit.
Commit Your ChangesAfter linking, ServiceNow will scan which files have changed.Provide a commit message (e.g., “Add Okta Flow to EC scope”).ClickCommit Changes.This pushes your changes to the configured GitHub repository branch.
After linking, ServiceNow will scan which files have changed.
Provide a commit message (e.g., “Add Okta Flow to EC scope”).
ClickCommit Changes.
This pushes your changes to the configured GitHub repository branch.
Verify Changes in GitHubNavigate to your GitHub repository.Check the commit logs to confirm the new commit and files from ServiceNow are present.
Navigate to your GitHub repository.
Check the commit logs to confirm the new commit and files from ServiceNow are present.
Open Your Application in Studio
Go toSystem Applications>Studio.
Select the EC application (the same one that contains your Flow).
Go toSystem Applications>Studio.
Select the EC application (the same one that contains your Flow).
Connect to Source Control
In Studio, click onSource the top menu (depending on your UI, it might be in the left navigation under the application name).
ChooseLink to Source Control(if not already linked).
Provide your GitHub repository URL (e.g.,/.git).
Enter thebranch ), and your GitHub credentials (either username/password or a personal access token).
ClickSubmit.
In Studio, click onSource the top menu (depending on your UI, it might be in the left navigation under the application name).
ChooseLink to Source Control(if not already linked).
Provide your GitHub repository URL (e.g.,/.git).
Enter thebranch ), and your GitHub credentials (either username/password or a personal access token).
ClickSubmit.
Commit Your Changes
After linking, ServiceNow will scan which files have changed.
Provide a commit message (e.g., “Add Okta Flow to EC scope”).
ClickCommit Changes.
This pushes your changes to the configured GitHub repository branch.
After linking, ServiceNow will scan which files have changed.
Provide a commit message (e.g., “Add Okta Flow to EC scope”).
ClickCommit Changes.
This pushes your changes to the configured GitHub repository branch.
Verify Changes in GitHub
Navigate to your GitHub repository.
Check the commit logs to confirm the new commit and files from ServiceNow are present.
Navigate to your GitHub repository.
Check the commit logs to confirm the new commit and files from ServiceNow are present.
- Ongoing Maintenance
As you modify or add new flows, actions, or other application files, you cancommit(orstash,pull, andpush) changes from ServiceNow Studio to keep your GitHub repo in sync.
If you collaborate with others, they canpullyour changes from GitHub into their own ServiceNow instance (linked to the same repo) so that everyone stays aligned.
As you modify or add new flows, actions, or other application files, you cancommit(orstash,pull, andpush) changes from ServiceNow Studio to keep your GitHub repo in sync.
If you collaborate with others, they canpullyour changes from GitHub into their own ServiceNow instance (linked to the same repo) so that everyone stays aligned.
Summary
By following the steps above—creating your Okta connection, building a Flow in the EC scope, and linking your ServiceNow application to a GitHub repo—you’ll have an Okta integration Flow that’s properly version-controlled. Remember to tailor your Flow logic to your exact use case (such as user provisioning, group membership checks, or other Okta APIs).
Key Takeaways:
Create (or identify) an EC-scope ServiceNow application.
Build a Flow using Flow Designer and REST (or out-of-box Okta IntegrationHub actions).
Configure your Okta domain and API credentials.
Link your scoped application to GitHub using Studio’s Source Control and push your changes.
Create (or identify) an EC-scope ServiceNow application.
Build a Flow using Flow Designer and REST (or out-of-box Okta IntegrationHub actions).
Configure your Okta domain and API credentials.
Link your scoped application to GitHub using Studio’s Source Control and push your changes.
That’s it! You now have an Okta integration Flow in the EC scope, with your updates safely versioned and shared on GitHub.