Update user details in AD through service catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2023 02:25 AM
Hi All,
we have one catalog (user termination/extend contract request) , we have date variable after complete request we need to update extend date in AD (active directory) user account . How can we achieve this requirement? can we achieve this through rest api? do we need orchestration, we don't have license? we don't have integration hub license.
we have azure AD

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2023 02:50 AM
Hi Nitya,
Yes, it is possible to achieve this requirement using a REST API. You can use the Azure AD Graph API or Microsoft Graph API to update the user account in Azure AD with the new extend date.
Here are the general steps to achieve this:
Create a script include in ServiceNow that will call the REST API to update the user account in Azure AD. You will need to provide authentication credentials in the script to authenticate with the Azure AD API.
In the ServiceNow catalog, create a catalog client script that will run after the user submits the user termination/extend contract request. This script will get the date value from the form and call the script include created in step 1 to update the user account in Azure AD.
You can also create a UI action that will allow administrators to manually update the user account in Azure AD. This UI action can call the same script include created in step 1.
Since you don't have a license for orchestration or Integration Hub, you will need to use the REST API directly to update the user account in Azure AD. However, you will need to ensure that you have the necessary permissions and credentials to call the API.
Thanks,
Rahul Kumar
Thanks,
Rahul Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2023 01:07 AM
Is this also possible to update in Onprem AD with REST api?