> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ServiceNow

> The ServiceNow business model is based on providing products using SaaS cloud computing software. It involves setting up systems to define, manage, automate and structure services for companies.

## Creating a ServiceNow connection

Create the connection by using one of the following methods:

* [Username & Password](#using-username-and-password)
* [Client ID & Secret](#using-client-id-and-secret)
* [Client & User Credentials](#using-client-and-user-credentials)

### Using Username and Password

To create the connection you need:

* An Instance Name
* A Username
* A Password
* A MFA Secret Key

### Obtaining the credentials

1. **ServiceNow instance name**: If your company’s ServiceNow address is `https://instance-name.service-now.com`, copy "instance-name".

2. **Username and password**: The username and password are the same as used to log in to your ServiceNow instance.

3. **MFA secret key** (optional): The paired MFA secret key used to enable MFA for the given user.

   <img src="https://mintcdn.com/blinkops-2/iMIEUHxdi6cXuLI5/img/servicenow/mfa-secret-key.png?fit=max&auto=format&n=iMIEUHxdi6cXuLI5&q=85&s=facf4a13d1618dfad4279e57b7205893" alt="MFA Secret Key" width="898" height="437" data-path="img/servicenow/mfa-secret-key.png" />

<Info>
  **If the user executing the actions does not have Admin privileges, an Admin must follow the steps below to assign them the appropriate permissions.**
</Info>

### Create a New Role

1. In the navigation filter (under the `All` tab), search for **roles** and click **Roles** under **Users and Groups**.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Roles/roles_search.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=4d67b17f73b45c93b2dc082eab5373ef" alt="RolesSearch" width="1223" height="396" data-path="img/servicenow/Roles/roles_search.png" />

2. On the **Roles** page, click **New**.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Roles/roles_list.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=97bd2ed3f3ba3d207a3accadbd0cbd3f" alt="RolesList" width="967" height="336" data-path="img/servicenow/Roles/roles_list.png" />

3. Enter a name for your new role. Click **Submit** to create it.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Roles/new_role_config.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=78aff029e3802807468946fc2042d547" alt="NewRole" width="1920" height="414" data-path="img/servicenow/Roles/new_role_config.png" />

#### Assign Role to a Custom Table's ACL

1. In the navigation filter (under the `All` tab), search for **tables** and click **Tables** under **System Definition**.

   <img src="https://mintcdn.com/blinkops-2/WZApQS_85F_OgSDn/img/servicenow/Tables/tables_search.png?fit=max&auto=format&n=WZApQS_85F_OgSDn&q=85&s=7508ed8a740ad39a9a34e8c2ac8fde97" alt="SearchTables" width="3894" height="736" data-path="img/servicenow/Tables/tables_search.png" />

2. On the **Tables** page, click **New**.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Tables/tables_list.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=ae38096758f19db1a98f6e9c8aa89d76" alt="TablesList" width="1911" height="618" data-path="img/servicenow/Tables/tables_list.png" />

3. Enter a **Label** for the table, the **Name** will be generated automatically.
   Scroll down to the **Controls** section, and in the **User role** field, select the custom role you created.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Tables/new_table.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=cd7dbc0b30e8f6a43071b37030d6566a" alt="NewTable" width="1911" height="908" data-path="img/servicenow/Tables/new_table.png" />

#### Assign Roles To User

1. In the navigation filter (under the `All` tab), search for **users** and click **Users** under **Organization**.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Users/users_search.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=aef2383e65053b39e521487640e9f6f3" alt="NewTable" width="1911" height="618" data-path="img/servicenow/Users/users_search.png" />

2. On the **Users** page, click the user you want to assign the roles to.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Users/choose_user.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=4b6ca6100e3429cf48f25541e1fcd76b" alt="chooseUser" width="1911" height="618" data-path="img/servicenow/Users/choose_user.png" />

3. On the user's page, Scroll down to the **Roles** section, and click **Edit**.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Users/edit_user_role.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=ad30b80cd2a16b22ff3a64ff85b61a40" alt="EditUserRole" width="1909" height="871" data-path="img/servicenow/Users/edit_user_role.png" />

4. Search for the new custom role and add it to the user. Also, assign the `itil` role to ensure access to standard tables like **Incident**. Click **Save**.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Users/add_role_to_user.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=2d5fea42886105093a2e0cfb9822d598" alt="AddRole" width="1911" height="886" data-path="img/servicenow/Users/add_role_to_user.png" />

   <Info>
     The **itil** role grants permissions for core ITIL-aligned tasks such as creating, reading, updating, and closing records in Incident, Problem, Change, and Configuration Management (CMDB) modules.
   </Info>

<Check>
  After completing all the steps, a new table will be associated with your custom role, and the user will have that role assigned. As the admin, you’ve granted the necessary permissions, allowing the user to authenticate using their own (non-admin) username and password. This enables them to perform actions on both standard and custom tables.
</Check>

#### Creating your connection

1. In the Blink platform, navigate to the **Connections** page > **Add connection**. A New Connection dialog box opens displaying icons of external service providers available.

2. Select the **ServiceNow** icon. A dialog box with name of the connection and connection methods appear.

3. (Optional) Edit the name of the connection. At a later stage you cannot edit the name.

4. Select **Username & Password** as the method to create the connection.

5. Fill in the parameters:

   * The Instance Name
   * The Username
   * The Password
   * The MFA Secret Key

6. (Optional) Click **Test Connection** to test it.

7. Click **Create connection**. The new connection appears on the **Connections** page.

### Using Client ID and Secret

To create the connection you need:

* An Instance Name
* A Client ID
* A Client Secret

### Obtaining the credentials

1. **ServiceNow instance name**: If your company’s ServiceNow address is `https://instance-name.service-now.com`, copy "instance-name".

2. Follow the next steps carefully to enable Client Credentials authentication method and obtain the **Client ID & Secret**.

<Info>
  Only ServiceNow **Admins** can create OAuth applications and obtain the Client ID and Secret.
</Info>

### Obtaining the client ID and Secret

To use the **Client ID & Secret** authentication method, you'll need to create both a new **system property** and a new **OAuth application**.

The following steps will guide you through the process.

If you want to allow **non-admin users** to access APIs or modify tables using this method, you'll need to assign appropriate roles to the **OAuth application user** associated with the Client ID and Secret.
This includes:

* Creating a new role
* Assigning the role to the relevant table
* Assigning the role to the application user

**Instructions for each step are provided below.**

#### Create a System Property

1. Sign in to your ServiceNow instance.

2. In the navigation filter (under the `All` tab) search for `/sys_properties_list.do`, hit enter.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Sys_prop/sys_prop_search.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=42b2e26eeef6e735ae86810e6a0f84d8" alt="searchSYSProp" width="1250" height="252" data-path="img/servicenow/Sys_prop/sys_prop_search.png" />

3. The list of system properties will appear. Click **New** to add a new property.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Sys_prop/new_sys_prop.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=dbdd318ee363af45413eae08ad1cc23b" alt="NewSysProp" width="1168" height="469" data-path="img/servicenow/Sys_prop/new_sys_prop.png" />

4. In the **Name** field, enter `glide.oauth.inbound.client.credential.grant_type.enabled`. Set the **Type** to **Boolean**, and in the **Value** field enter **true**. Click **Submit**.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Sys_prop/add_sys_prop.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=ffe4bd05dcd4f54881fc0a3cfab700c6" alt="AddSysProp" width="967" height="355" data-path="img/servicenow/Sys_prop/add_sys_prop.png" />

#### Create a new App and obtain Client ID & Secret

1. In the navigation filter (under the `All` tab), search for **oauth** and click **Application Registry** under **System OAuth**.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/App/oauth_search.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=72e9fea8cdc9f474d26a6a3e828beb4f" alt="appSearch" width="967" height="328" data-path="img/servicenow/App/oauth_search.png" />

2. On the **Application Registry** page, click **New**.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/App/apps_list.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=4e7530e8c11e8e0238ae2722e301f59e" alt="appsList" width="967" height="328" data-path="img/servicenow/App/apps_list.png" />

3. Select **Create an OAuth API endpoint for external clients**.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/App/app_kind.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=454a33d0a7c78eb5e55bab3abcb40463" alt="appKind" width="967" height="328" data-path="img/servicenow/App/app_kind.png" />

4. Insert a **name** to the new app, and add a user to the **Oauth Application User** field. Click **Submit** to create the app.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/App/app_config.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=066c199e5ab1e3b9bf3d988abc535fb4" alt="appConfig" width="967" height="441" data-path="img/servicenow/App/app_config.png" />

   <Info>
     In this authentication method, a user **must** be assigned to the **client credentials**. If the **OAuth Application User** field is **not** visible in your application form, you can add it manually:

     Right-click on the top boundary of the application form, select **Configure** > **Form Builder**, then drag and drop the **OAuth Application User** field into the form layout. Save your changes.
   </Info>

5. In the **Application Registry** page, search your new app and click on it.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/App/app_search.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=718a5855cdeeb3d7bed88ac959e360ed" alt="appKind" width="1276" height="396" data-path="img/servicenow/App/app_search.png" />

6. Copy the displayed **Client ID**, then click the **lock icon** to reveal the **Client Secret**, and copy that as well.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/App/client_id_secret.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=dd51becd68adc67594ba172178a7c3bd" alt="clientIDSecret" width="967" height="336" data-path="img/servicenow/App/client_id_secret.png" />

<Info>
  As mentioned earlier, to grant non-admin users permission to access tables through the API, you must assign the appropriate roles to the user.

  ServiceNow provides built-in roles that grant access to standard tables (e.g., the `itil` role for **incidents**). However, for custom tables, you’ll need to create a custom role, then assign it to both:

  * The OAuth application user

  * The table’s Access Control List (ACL)

  **The next steps will walk you through how to do this.**
</Info>

#### Create a New Role

1. In the navigation filter (under the `All` tab), search for **roles** and click **Roles** under **Users and Groups**.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Roles/roles_search.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=4d67b17f73b45c93b2dc082eab5373ef" alt="RolesSearch" width="1223" height="396" data-path="img/servicenow/Roles/roles_search.png" />

2. On the **Roles** page, click **New**.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Roles/roles_list.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=97bd2ed3f3ba3d207a3accadbd0cbd3f" alt="RolesList" width="967" height="336" data-path="img/servicenow/Roles/roles_list.png" />

3. Enter a name for your new role. Click **Submit** to create it.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Roles/new_role_config.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=78aff029e3802807468946fc2042d547" alt="NewRole" width="1920" height="414" data-path="img/servicenow/Roles/new_role_config.png" />

#### Assign Role to a Custom Table's ACL

1. In the navigation filter (under the `All` tab), search for **tables** and click **Tables** under **System Definition**.

   <img src="https://mintcdn.com/blinkops-2/WZApQS_85F_OgSDn/img/servicenow/Tables/tables_search.png?fit=max&auto=format&n=WZApQS_85F_OgSDn&q=85&s=7508ed8a740ad39a9a34e8c2ac8fde97" alt="SearchTables" width="3894" height="736" data-path="img/servicenow/Tables/tables_search.png" />

2. On the **Tables** page, click **New**.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Tables/tables_list.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=ae38096758f19db1a98f6e9c8aa89d76" alt="TablesList" width="1911" height="618" data-path="img/servicenow/Tables/tables_list.png" />

3. Enter a **Label** for the table, the **Name** will be generated automatically.
   Scroll down to the **Controls** section, and in the **User role** field, select the custom role you created.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Tables/new_table.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=cd7dbc0b30e8f6a43071b37030d6566a" alt="NewTable" width="1911" height="908" data-path="img/servicenow/Tables/new_table.png" />

#### Assign Roles To User

1. In the navigation filter (under the `All` tab), search for **users** and click **Users** under **Organization**.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Users/users_search.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=aef2383e65053b39e521487640e9f6f3" alt="NewTable" width="1911" height="618" data-path="img/servicenow/Users/users_search.png" />

2. On the **Users** page, click the user you want to assign the roles to.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Users/choose_user.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=4b6ca6100e3429cf48f25541e1fcd76b" alt="chooseUser" width="1911" height="618" data-path="img/servicenow/Users/choose_user.png" />

3. On the user's page, Scroll down to the **Roles** section, and click **Edit**.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Users/edit_user_role.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=ad30b80cd2a16b22ff3a64ff85b61a40" alt="EditUserRole" width="1909" height="871" data-path="img/servicenow/Users/edit_user_role.png" />

4. Search for the new custom role and add it to the user. Also, assign the `itil` role to ensure access to standard tables like **Incident**. Click **Save**.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Users/add_role_to_user.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=2d5fea42886105093a2e0cfb9822d598" alt="AddRole" width="1911" height="886" data-path="img/servicenow/Users/add_role_to_user.png" />

   <Info>
     The **itil** role grants permissions for core ITIL-aligned tasks such as creating, reading, updating, and closing records in Incident, Problem, Change, and Configuration Management (CMDB) modules.
   </Info>

<Check>
  Once you've completed all the steps, you'll have a new table associated with your custom role, and the OAuth application user will have that role assigned. This setup enables you to authenticate using the Client ID and Secret you created earlier, and perform actions on standard and custom tables.
</Check>

#### Creating your connection

1. In the Blink platform, navigate to the **Connections** page > **Add connection**. A New Connection dialog box opens displaying icons of external service providers available.

2. Select the **ServiceNow** icon. A dialog box with name of the connection and connection methods appear.

3. (Optional) Edit the name of the connection. At a later stage you cannot edit the name.

4. Select **Client ID & Secret** as the method to create the connection.

5. Fill in the parameters:

   * The Instance Name
   * The Client ID
   * The Client Secret

6. (Optional) Click **Test Connection** to test it.

7. Click **Create connection**. The new connection appears on the **Connections** page.

### Using Client and User Credentials

To create the connection you need:

* An Instance Name
* A Client ID
* A Client Secret
* A Username
* A Password

<Info>
  Only ServiceNow **Admins** can create OAuth applications and obtain the Client ID and Secret.
</Info>

### Obtaining the credentials

1. **ServiceNow instance name**: If your company’s ServiceNow address is `https://instance-name.service-now.com`, copy "instance-name".

2. **Username and password**: The username and password are the same as used to log in to your ServiceNow instance.

3. Follow the next steps carefully to obtain the **Client ID & Secret**.

#### Create a new App and obtain Client ID & Secret

1. Sign in to your ServiceNow instance.

2. In the navigation filter (under the `All` tab), search for **oauth** and click **Application Registry** under **System OAuth**.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/App/oauth_search.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=72e9fea8cdc9f474d26a6a3e828beb4f" alt="appSearch" width="967" height="328" data-path="img/servicenow/App/oauth_search.png" />

3. On the **Application Registry** page, click **New**.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/App/apps_list.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=4e7530e8c11e8e0238ae2722e301f59e" alt="appsList" width="967" height="328" data-path="img/servicenow/App/apps_list.png" />

4. Select **Create an OAuth API endpoint for external clients**.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/App/app_kind.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=454a33d0a7c78eb5e55bab3abcb40463" alt="appKind" width="967" height="328" data-path="img/servicenow/App/app_kind.png" />

5. Insert a **name** to the new app. Click **Submit** to create the app.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/App/client_id_secret1.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=5a8cb9c5ca782f187c3df55ddfbc1952" alt="clientIDSecret" width="1920" height="893" data-path="img/servicenow/App/client_id_secret1.png" />

6. In the **Application Registry** page, search your new app and click on it.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/App/app_search.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=718a5855cdeeb3d7bed88ac959e360ed" alt="appKind" width="1276" height="396" data-path="img/servicenow/App/app_search.png" />

7. Copy the displayed **Client ID**, then click the **lock icon** to reveal the **Client Secret**, and copy that as well.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/App/client_id_secret.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=dd51becd68adc67594ba172178a7c3bd" alt="clientIDSecret" width="967" height="336" data-path="img/servicenow/App/client_id_secret.png" />

<Info>
  **If the user executing the actions does not have Admin privileges, an Admin must follow the steps below to assign them the appropriate permissions.**
</Info>

### Create a New Role

1. In the navigation filter (under the `All` tab), search for **roles** and click **Roles** under **Users and Groups**.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Roles/roles_search.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=4d67b17f73b45c93b2dc082eab5373ef" alt="RolesSearch" width="1223" height="396" data-path="img/servicenow/Roles/roles_search.png" />

2. On the **Roles** page, click **New**.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Roles/roles_list.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=97bd2ed3f3ba3d207a3accadbd0cbd3f" alt="RolesList" width="967" height="336" data-path="img/servicenow/Roles/roles_list.png" />

3. Enter a name for your new role. Click **Submit** to create it.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Roles/new_role_config.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=78aff029e3802807468946fc2042d547" alt="NewRole" width="1920" height="414" data-path="img/servicenow/Roles/new_role_config.png" />

#### Assign Role to a Custom Table's ACL

1. In the navigation filter (under the `All` tab), search for **tables** and click **Tables** under **System Definition**.

   <img src="https://mintcdn.com/blinkops-2/WZApQS_85F_OgSDn/img/servicenow/Tables/tables_search.png?fit=max&auto=format&n=WZApQS_85F_OgSDn&q=85&s=7508ed8a740ad39a9a34e8c2ac8fde97" alt="SearchTables" width="3894" height="736" data-path="img/servicenow/Tables/tables_search.png" />

2. On the **Tables** page, click **New**.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Tables/tables_list.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=ae38096758f19db1a98f6e9c8aa89d76" alt="TablesList" width="1911" height="618" data-path="img/servicenow/Tables/tables_list.png" />

3. Enter a **Label** for the table, the **Name** will be generated automatically.
   Scroll down to the **Controls** section, and in the **User role** field, select the custom role you created.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Tables/new_table.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=cd7dbc0b30e8f6a43071b37030d6566a" alt="NewTable" width="1911" height="908" data-path="img/servicenow/Tables/new_table.png" />

#### Assign Roles To User

1. In the navigation filter (under the `All` tab), search for **users** and click **Users** under **Organization**.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Users/users_search.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=aef2383e65053b39e521487640e9f6f3" alt="NewTable" width="1911" height="618" data-path="img/servicenow/Users/users_search.png" />

2. On the **Users** page, click the user you want to assign the roles to.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Users/choose_user.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=4b6ca6100e3429cf48f25541e1fcd76b" alt="chooseUser" width="1911" height="618" data-path="img/servicenow/Users/choose_user.png" />

3. On the user's page, Scroll down to the **Roles** section, and click **Edit**.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Users/edit_user_role.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=ad30b80cd2a16b22ff3a64ff85b61a40" alt="EditUserRole" width="1909" height="871" data-path="img/servicenow/Users/edit_user_role.png" />

4. Search for the new custom role and add it to the user. Also, assign the `itil` role to ensure access to standard tables like **Incident**. Click **Save**.

   <img src="https://mintcdn.com/blinkops-2/4jJzHLYX9WcCQdrG/img/servicenow/Users/add_role_to_user.png?fit=max&auto=format&n=4jJzHLYX9WcCQdrG&q=85&s=2d5fea42886105093a2e0cfb9822d598" alt="AddRole" width="1911" height="886" data-path="img/servicenow/Users/add_role_to_user.png" />

   <Info>
     The **itil** role grants permissions for core ITIL-aligned tasks such as creating, reading, updating, and closing records in Incident, Problem, Change, and Configuration Management (CMDB) modules.
   </Info>

<Check>
  After completing all the steps, a new table will be associated with your custom role, and the user will have that role assigned. As the admin, you’ve granted the necessary permissions, allowing the user to authenticate using the Client ID and Secret you created earlier, along with their own (non-admin) username and password. This enables them to perform actions on both standard and custom tables.
</Check>

#### Creating your connection

1. In the Blink platform, navigate to the **Connections** page > **Add connection**. A New Connection dialog box opens displaying icons of external service providers available.

2. Select the **ServiceNow** icon. A dialog box with name of the connection and connection methods appear.

3. (Optional) Edit the name of the connection. At a later stage you cannot edit the name.

4. Select **Client & User Credentials** as the method to create the connection.

5. Fill in the parameters:

   * The Instance Name
   * The Client ID
   * The Client Secret
   * The Username
   * The Password

6. (Optional) Click **Test Connection** to test it.

7. Click **Create connection**. The new connection appears on the **Connections** page.
