How do i set a user account expiration date when i create a new user in ServiceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2018 01:40 AM
I want to set a user expiration date for a newly created user in Servicenow
- Labels:
-
Incident Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2018 02:18 AM
From where users are coming to service-now?
AD or manually?
if from AD is there any field like user expiration then Map that field in User Transform Map.
or if manually then use default of user expiration field.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2018 02:25 AM
For a similar requirement, I ended up creating a custom field on sys_user table to hold the expiration date and a scheduled job that will run daily, query the user table and deactivates the user account that have expired.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2021 08:10 AM
Hello Kalaiarasan,
Can you provide me the code for run schedule job and check expiry date on user account? I have requirement to check the account expire and create request to extend or deactivate user in ServiceNow.
regards
Govind
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-14-2021 08:07 AM
Hello Kalaiarasan,
Can you provide me the code for run schedule job and check expiry date on user account? I have requirement to check the account expire and create request to extend or deactivate user in ServiceNow.
regards
Govind