Trustero utilizes a service user to obtain permissions to the applications defined within the ServiceNow Instance. This guide explains how to create that service user.
Pre Requisites
- Oauth is enabled for the ServiceNow instance
- An Existing ServiceNow Application
Setup
The following procedure ensures that the Trustero service user has least privilege access to the ServiceNow Instance
- Oauth Application Registration
- Service Account Creation
- Custom Role Creation
- Application Role Creation
Oauth Application Registration
- Create an OAuth entity in the Application Registry by using Create File
- Change the Client Type to “Integration as User”
- Enable Default Grant Type and OAuth Application User if not yet enabled. This is done through the form layout
- Open the form layout builder and switch to Global
- https://www.servicenow.com/docs/bundle/zurich-platform-security/page/integrate/authentication/task/add-oauth-application-user.html
- Add the following columns to the form if not already enabled
- Default Grant Type
- Oauth Application User
- At the bottom of the App Registry Config page you will see the additional field
- Now that the form is configured, fill it out. Select form field options:
- Client Type: Integration as User
- Default Grant Type: Resource Owner Password Credentials
- OAuth Application User: (needs to be created, see next section for details)
- Open the form layout builder and switch to Global
Service Account Creation
Upon creation of the Application Registration, we are able to create a user that is dedicated to it.
- Click the magnifying glass on the side of Oauth Application User
- You will be redirected to the user list, click the New Button
- Create the service user with a dedicated email
- You should be redirected to the user page, remember to select Set Password to provide a password for this new user.
- The password will be used in the Trustero integration
Custom Role Creation
After creating the user, we need to create a role that we can assign to the user
- Create a Role File
- Fill out the form and click update
- Going back to the User page under the Roles Tab
- Click Edit and add the created Role to the Role List
Application Role Creation
With user assigned to the Role, we need to assign the Custom Role to the Application
- Go to the Application Roles for the Application
- Application > Security > Role > Agent > Application with Role
- Application > Security > Role > Agent > Application with Role
- Link the Agent of the Application and the Trustero Role