Let Oomnitza be your single source of truth!
You'll get visibility of your users as data from ServiceNow is automatically transformed into consumable information and actionable insights.
Connect Oomnitza and ServiceNow in minutes
You'll get visibility of your ServiceNow users by creating configurable workflows to automate tasks such as:
-
- Workflows for deleting users'
- Workflows for getting a user's information
- Workflows for getting a SaaS user’s role and last login time
Contents
Before you start
Before you create workflows, you need to have added your ServiceNow credentials to Oomnitza. Follow the steps in Adding your ServiceNow credentials to Oomnitza and add your Basic Authentication credentials to Oomnitza.
We recommend that you also create the extended integration for ServiceNow users. You can use the information retrieved in these integrations to trigger workflows that can delete and get user information.
Creating workflows
Create user workflows
To create a user workflow, you must complete these steps:
- Click Configuration > Workflows
- Click Add (+) and select People from the list.
- Drag and drop the API block onto the Sandbox.
- Click Edit on the API block and enter ServiceNow in the search field.
- Select a preset:
- ServiceNow Get User Details
- ServiceNow Delete User
- ServiceNow Update User
- ServiceNow Create User
- To choose a preset, click the forward arrow (>).
- Select the credentials that you created in Adding your ServiceNow credentials to Oomnitza.
- Your Subdomain should be derived from the variable created in Setting your ServiceNow Subdomain as a global variable or entered manually.
- Configure the API Block following the preset instructions below, and save your changes.
- Edit the Begin Block and add rules to trigger the workflow. For example, if you set the Actions to Schedule and add a rule so that the Email Equals <EmployeeEmail> you can trigger a workflow to fetch a user matching a certain name on a specific date. Refer to Using the Begin block.
- Connect the Blocks.
- Save, validate, and activate your workflow.
Using the Get User Details preset
The Get User Details preset enables you to get a ServiceNow user by their ServiceNow User ID.
You can configure the message payload by selecting Advanced Mode.
- Select the Information tab. You will notice that the ServiceNow User ID is referenced in the property
{{servicenow_user_id}}
. Follow the mapping steps in Creating custom mappings so that this property exists in Oomnitza and is populated with information before you run this workflow. - Select the Response tab. You can map the entire response by placing
{{response}}
in the Response field and mapping it to a custom long text Oomnitza field, such as API Response. For information on creating custom fields, see Creating Custom Fields in Oomnitza. Once you have the entire response, you can then parse the JSON response values to custom Oomnitza fields.
Using the ServiceNow Delete User preset
This ServiceNow Delete User preset allows you to delete a user from ServiceNow by their ServiceNow User ID.
You can configure the message payload by selecting Advanced Mode.
- Select the Information tab. You will notice that the ServiceNow User ID is referenced in the property
{{servicenow_user_id}}
. Follow the mapping steps in Creating custom mappings so that this property exists in Oomnitza and is populated with information before you run this workflow. - Select the Response tab. You can map the message response as per the example in the Get User Details preset.
For additional information about the ServiceNow API see ServiceNow - Delete table API.
Tip: You can use this preset in conjunction with the ServiceNow Get User Role preset. You can use the ServiceNow delete user preset to delete the accounts that were found inactive after running the ServiceNow Get User Role preset.
Using the ServiceNow Update User preset
This ServiceNow Update User preset allows you to update a ServiceNow user by their ServiceNow User ID. When you select this preset, you will need to supply the new user information, which includes their Address, Phone Number, New Password, and New Email. You can refer to existing Oomnitza fields in the workflow by entering: {{email}}
, {{password}}
, etc.
You can configure the message payload by selecting Advanced Mode.
- Select the Information tab. You will notice that the ServiceNow User ID is referenced in the property
{{servicenow_user_id}}
. Follow the mapping steps in Creating custom mappings so that this property exists in Oomnitza and is populated with information before you run this workflow. - Select the Body tab to review or edit the user information you have entered.
- Select the Response tab. You can map the message response as per the example in the Get User Details preset.
Using the ServiceNow Create User preset
This ServiceNow Create User preset allows you to create a new ServiceNow user.
You can configure the message payload by selecting Advanced Mode.
-
Select the Body tab. The values in curly braces
{{}}
refers to existing Oomnitza fields, which should be populated with information before you run this workflow. Alternatively, you can replace the values in the curly braces with the actual details and surround them with double quotation marks: for example"company": "Oomnitza"
. For further information on the field names, refer to the Service Now Documentation: Create a User. - Select the Response tab. You can map the message response as per the example in the Get User Details preset.
Reference articles for workflows
Using the ServiceNow User Role preset
You can create a Saas User workflow in Oomnitza using the ServiceNow User Role preset. This preset supplies you with the Role and Last Login Date of your SaaS users.
Prerequisites
Before you create a SaaS user workflow, you should have already run your extended user integration and selected User plus SaaS User to populate the software entry in the Software > SaaS menu.
To create a Saas User workflow using the ServiceNow User Role preset, complete the following steps:
- Click Configuration > Workflows
- Click Add (+) and select Software SaaS Users from the list.
- Enter the name and a description of the workflow.
- Edit the Begin block by adding the rules that will trigger the workflow. For further information see SaaS User Roles.
- Click the Blocks tab, and drag and drop the SaaS User Role retrieval block onto the canvas.
- Click the Edit icon.
- Enter ServiceNow in the search field and choose the ServiceNow User Role preset.
- Click the right arrow >.
- Enter your Credentials.
- Enter your ServiceNow subdomain.
- Select the Deactivate User checkbox to remove the users listed in SaaS > ServiceNow > Users if they do not exist in your SaaS application.
- Click SAVE.
- Connect the blocks.
- Save, validate, and activate your workflow.
To view active ServiceNow users in the SaaS Users UI, complete the following steps:
- Click Software from the menu.
- Select the SaaS tab, and select your software entry for ServiceNow.
- Click Users in the side pane.
- The Role and Last activity column will be populated with the user details to confirm that this user has been found in your ServiceNow SaaS.
Tip: You can use this preset in conjunction with the ServiceNow Delete user preset. You can use the preset to delete the accounts that were found inactive after running the ServiceNow User Role preset.
Comments
0 comments
Please sign in to leave a comment.