Update user details in AD through service catalog

Nitya2
Kilo Guru

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

2 REPLIES 2

Rahul Kumar17
Tera Guru

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:

  1. 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.

  2. 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.

  3. 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

If my response helped please mark it correct and close the thread.

Thanks,
Rahul Kumar

Hi @Rahul Kumar17 

Is this also possible to update in Onprem AD with REST api?