ServiceNow
ServiceNow is a platform for IT and business workflows. Owlie syncs its users, groups, roles, departments and companies. Owlie can create and manage user accounts, group membership, direct user-role assignments and group-role assignments.
Capabilities
| Capability | Support |
|---|---|
| Sync | Yes. Users, groups, roles, departments, companies and their declared relationships. |
| Incremental sync | No. |
| Account provisioning | Yes. Create, update, delete, enable and disable users. |
| Grant writes | Yes. Add and remove direct group membership, direct user-role assignments and group-role assignments. |
| Notifications | No. |
| Custom operations | Yes. Unlock a user, require a password reset and set a password. |
Authentication
| Option | Choose it when | Ownership |
|---|---|---|
| Basic Auth | You have a dedicated ServiceNow account with the required Table API permissions. | Customer-owned account. |
| OAuth2 | You use a ServiceNow OAuth application and an authorized ServiceNow account. | Customer-owned OAuth application. |
Get credentials from ServiceNow
Basic Auth
Use a dedicated ServiceNow account and its username and password. Grant that account read access to the tables you sync. User provisioning needs create, update and delete access to sys_user. Grant writes also need read, create and delete access to sys_user_grmember, sys_user_has_role and sys_group_has_role as applicable, plus read access to their referenced users, groups and roles. ServiceNow applies table and field ACLs to REST requests. Check them in your instance. See the ServiceNow Table API reference and REST API security.
OAuth2
- In ServiceNow, go to All → System OAuth → Application Registry and select New.
- Select Create an OAuth API endpoint for external clients. Save the generated client ID and client secret. Follow ServiceNow's OAuth application setup.
- Allow the account that authorizes the connection to use the same table operations described for Basic Auth. Configure any OAuth scope required by your instance. The connector offers
useraccountas a scope option. Table ACLs still apply.
Connect ServiceNow in Owlie
| Field | Required | Format and example |
|---|---|---|
| Instance URL | Yes | HTTPS instance root, such as https://acme.service-now.com. |
| Username | For Basic Auth | Username of the ServiceNow API account. |
| Password | For Basic Auth | Password of that account. |
| Client ID | For OAuth2 | Client ID from Application Registry. |
| Client Secret | For OAuth2 | Secret from Application Registry. |
| Scopes | No | OAuth scopes configured for the instance. useraccount is an available option. |
Test connection requests one record from sys_user. It confirms that the selected credential can read that table, not that it can access every table or perform writes.
Entities
| Entity | In ServiceNow | Identifier | Key attributes | Sync | Create | Update | Delete | Grants (as target) |
|---|---|---|---|---|---|---|---|---|
| User | Platform user account in sys_user | sys_id | User name, email, name, active state | Yes | Yes | Yes | Yes | No |
| Group | User group in sys_user_group | sys_id | Name, description, active state | Yes | No | No | No | member_of |
| Role | Role in sys_user_role | sys_id | Name and description | Yes | No | No | No | assigned_role, group_assigned_role |
| Department | Department in cmn_department | sys_id | Name and company | Yes | No | No | No | No |
| Company | Company in core_company | sys_id | Name and active state | Yes | No | No | No | No |
Grant kinds
| Kind | ServiceNow relationship | Principal → target | Add/remove | Qualifiers | Membership |
|---|---|---|---|---|---|
member_of | sys_user_grmember row | User → group | Yes | None | No |
assigned_role | sys_user_has_role observation | User → role | Yes, direct rows only | None | No |
group_assigned_role | sys_group_has_role row | Group → role | Yes | None | No |
in_department | User's department field | User → department | No | None | No |
in_company | User's company field | User → company | No | None | No |
Grant writes identify each user, group and role by its ServiceNow sys_id. ServiceNow can show a user role inherited from a group. Owlie continues to sync role observations, but it only adds or removes a user-role Grant when it can distinguish a direct assignment. It refuses an inherited-only or ambiguous role row, including one with no inherited indicator. A visible role does not establish that Owlie can remove it as a direct Grant. ServiceNow Role Management V2 explains inherited role behavior.
Provisioning behaviour and limits
The default provisioning profile uses the identity's email for the ServiceNow user name and email, copies first and last name, and creates an active user. Disable sets active to false, and enable sets it to true. The user custom operations clear locked_out, set password_needs_reset, or update user_password.
Revoke deletes the ServiceNow user. Owlie first removes managed Grants when the provisioning profile calls for it. Check the lifecycle mapping and managed access before enabling automated revocation.
Department and company remain read-only Grants. Ordinary user attribute updates can change those fields when configured, but Owlie does not add or remove department or company placement as a managed Grant. The connector uses full sync with offset pagination. ServiceNow may restrict tables and fields according to the calling account's ACLs and web-service settings.
Troubleshooting
- “ServiceNow inherited user role cannot be managed as a direct grant”: ServiceNow shows an inherited role without a direct assignment. Check its source in ServiceNow and manage that source instead.
- “ServiceNow user role origin is unknown; direct grant cannot be managed”: the role row has no readable
inheritedvalue. Check access to that field in ServiceNow before retrying.
Changelog
ServiceNow is at connector version 1. Owlie displays its changelog with the connector in the integration catalog.