OBLYTECH Logo
OBLYTECH Logo

ServiceNow User Management: Create, Activate and Deactivate Users

ServiceNow user management starts with a user record, which holds a person's login. Someone with the user_admin role creates one from All, then User Administration, then Users, by entering a unique User ID and a name. Marking a user inactive, locking them out and ending a single session are separate actions with separate effects.

A user record links a login to roles, groups and preferences

Each user record sits in the Users table, which the platform names sys_user. It stores a user name, a password, and contact details, location and job title. Those fields identify the account. What the account can do comes from the records linked to it: roles for features and application capabilities, groups that carry roles to their members, delegates who act with a delegator's permissions, skills, subscriptions and personal preferences. For the wider concept, see access control lists explained.

Assigning roles to groups rather than to individuals simplifies administration. Build a group that holds the roles a job needs, then add the people who do that job, so a change in access is made once on the group.

Creating a user needs the user_admin role and a unique User ID

Open All, then User Administration, then Users, and select New. Complete the form and select Submit. The new record appears in the Users list. The minimum is a User ID plus either a first name or a last name.

Users are often added through LDAP directory integrations. Administrators can also add people by hand, enable self-registration through the User Registration Request plugin, or impersonate a user to confirm that the access is right.

The User ID is the login name.

Fields to complete on the form

Field What to enter
User ID A unique login name. Required.
Given name and Family name First and last name. Either can be cleared on an existing record, but not both at once.
Locked out Locks the user out and terminates all of their active sessions.
Active Makes the user active.
Email The address. Non-standard addresses can fail validation.
Identity type Account type, set from the Identity type drop-down menu.

Language, Time zone and Calendar integration are also set on the form. The Personalize Form icon can remove fields the team does not use.

Password and first sign-in

Assign the password on the form, save the record, then select Set Password. The password can be permanent or temporary. Tick Password needs reset to make the person change it at their first login.

Marking a user inactive removes them from person pickers and blocks sign-in

Marking someone inactive removes them from fields that reference active users on the User table.

Marking a user inactive requires the admin role. Open All, then User Administration, then Users, select the user, clear the Active check box and update the record.

By default, this also locks the user out. The Lock Out Inactive Users business rule governs that behaviour. The glide.authenticate.only.allow.active.user.login property allows only active users to log in, so the person cannot access the instance once Active is cleared.

Locking out a user and ending a session are separate actions

Each action has its own role requirement and its own effect.

Action Role required Where Result
Mark inactive (clear Active) admin All, User Administration, Users Hidden from active-user fields; locked out by default.
Lock out (select Locked Out) user_admin or admin All, User Administration, Users Cannot log in or act through email sent to the instance; sessions end.
Lock Out Session admin All, User Administration, Logged in users One session ends; the user is not locked out.

To lock someone out, select the user, select the Locked Out check box and update the record. The platform helps prevent users with the admin role from locking themselves out.

Ending a session suits system maintenance, when people are still logged in and the account should stay active. Open Logged in users, select the session and choose Lock Out Session. The user is redirected to the login page at their next transaction. A user can hold several sessions, and ending one leaves the others running. The list shows only users on the same application node as the administrator.

Session timing is separate. By default the platform logs a user out after 30 minutes of inactivity, unless Remember Me was selected at login. The glide.ui.session_timeout property sets that interval in minutes.

Groups pass roles to their members

To add a user to a group, you need the user_admin role. Open All, then User Administration, then Groups, and select the group. In the Group Members related list, select Edit, choose names in the Collection list, then select Add and Save. The user inherits all roles assigned to the group.

A user without the admin role cannot add someone to a group containing the admin role. Without the security_admin role, you cannot add someone to a group containing security_admin.

To remove someone when their role changes, select the check box beside their name in the Group Members related list, then choose Delete from the Actions on selected rows menu. Check the selection first, because the rows you pick are the ones removed.

Users with the role_delegator role can assign roles within a group, but only roles they already hold. Changes to user roles are tracked in the Audit Roles table.

Identity type and web service access decide how an account signs in

In the Australia release, Identity type includes an AI option for AI agents and agentic workflows. Role masking limits the roles such an agent inherits during tool execution, so it runs with restricted privileges, not extra ones. Users with the ai_user_admin role manage users whose identity type is AI.

That check box separates interactive users, who log in to the UI or a service portal with a name and password, from non-interactive users. Non-interactive users can use their credentials only for API connections such as JSON, SOAP and WSDL. New users start as interactive users.

To create a non-interactive account, a user_admin or admin selects Web Service Access Only on the user record and updates it. A non-interactive user can act as a MID Server user when it is flagged as an Internal Integration User. On an instance with strict security, add the soap role to web service accounts through their Roles related list.

Cascade rules decide what happens to records that point at a deleted user

When a record is deleted, the records that reference it follow the reference cascade rule set on each reference field.

Option Effect on referencing records
Clear (default) References are cleared, and the records are kept with an empty field.
Delete or Cascade Referencing records are deleted too. The platform marks this option with a caution.
Restrict Deletion is blocked while any record still references the one being deleted.
None Referencing records are left unchanged.

Take a user named in the Caller ID field on several incidents. Under the default, those incidents keep their data with an empty Caller ID. Under Delete or Cascade, any incident assigned to that user is deleted with it.

Changing the rule needs the personalize_dictionary role. Use Configure Dictionary from the reference field's label, open the Advanced view, and set the Reference cascade rule under Reference Specification. The rule has no effect on tables with many-to-many relationships.

Frequently asked questions

Who can create a user record?

Anyone holding the user_admin role. The form needs a unique User ID and either a first or last name before it submits.

What is the difference between Active and Locked out?

Active decides whether a user appears in fields that reference active users on the User table. Locked out decides whether the person can get into the instance at all, and selecting it ends their active sessions. Clearing Active also locks the user out by default.

How do I end one session without locking the account?

Open Logged in users with an admin role, select the session and choose Lock Out Session. The user is sent to the login page at their next transaction, and the account is not locked out.

Why will the form not save a new user?

One cause is a User ID that already belongs to someone else, since each User ID must be unique. The form also needs a User ID and either a first or last name. Check the Users list for the same login name before you submit.

Can a non-interactive account sign in to the UI?

No. It can use its credentials only for API connections such as JSON, SOAP and WSDL, and it cannot log in to the ServiceNow UI, a service portal or through single sign-on.