Skip to main content

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​

CapabilitySupport
SyncYes. Users, groups, roles, departments, companies and their declared relationships.
Incremental syncNo.
Account provisioningYes. Create, update, delete, enable and disable users.
Grant writesYes. Add and remove direct group membership, direct user-role assignments and group-role assignments.
NotificationsNo.
Custom operationsYes. Unlock a user, require a password reset and set a password.

Authentication​

OptionChoose it whenOwnership
Basic AuthYou have a dedicated ServiceNow account with the required Table API permissions.Customer-owned account.
OAuth2You 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​

  1. In ServiceNow, go to All → System OAuth → Application Registry and select New.
  2. Select Create an OAuth API endpoint for external clients. Save the generated client ID and client secret. Follow ServiceNow's OAuth application setup.
  3. 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 useraccount as a scope option. Table ACLs still apply.

Connect ServiceNow in Owlie​

FieldRequiredFormat and example
Instance URLYesHTTPS instance root, such as https://acme.service-now.com.
UsernameFor Basic AuthUsername of the ServiceNow API account.
PasswordFor Basic AuthPassword of that account.
Client IDFor OAuth2Client ID from Application Registry.
Client SecretFor OAuth2Secret from Application Registry.
ScopesNoOAuth 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​

EntityIn ServiceNowIdentifierKey attributesSyncCreateUpdateDeleteGrants (as target)
UserPlatform user account in sys_usersys_idUser name, email, name, active stateYesYesYesYesNo
GroupUser group in sys_user_groupsys_idName, description, active stateYesNoNoNomember_of
RoleRole in sys_user_rolesys_idName and descriptionYesNoNoNoassigned_role, group_assigned_role
DepartmentDepartment in cmn_departmentsys_idName and companyYesNoNoNoNo
CompanyCompany in core_companysys_idName and active stateYesNoNoNoNo

Grant kinds​

KindServiceNow relationshipPrincipal → targetAdd/removeQualifiersMembership
member_ofsys_user_grmember rowUser → groupYesNoneNo
assigned_rolesys_user_has_role observationUser → roleYes, direct rows onlyNoneNo
group_assigned_rolesys_group_has_role rowGroup → roleYesNoneNo
in_departmentUser's department fieldUser → departmentNoNoneNo
in_companyUser's company fieldUser → companyNoNoneNo

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 inherited value. 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.