Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Integration with Sailpoint Nerm

sushantnrve
Tera Contributor

Hi Team ,

 

I want to integrate Service now with Sailpoint Nerm and below is the power shell script provided by Nerm team to me .

I am new to service now and this is first time I am goingintergation with third party tool.

Appreciate your help for step-to-step guide on this.

 

Scenario- Once and offboarding form is raised there will be one task created for Nerm.Then an api call should be sent to NERM with user information . Below are pwershell scripts provided by Nerm team for me to do testing .Plz let me know how to test it and do an api call through Service now 

 

Script 1 - When new user created .

 

$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("Content-Type", "application/json")
$headers.Add("Accept", "application/json")
$headers.Add("Authorization", "Token")
$response = ""

$body = @"
{
"workflow_session":{
"workflow_id":"94654205-297b-42c4-9255-37b068fd621d",
"requester_id":"d0d0a161-6f2b-4524-95c1-8b504484ae71",
"requester_type":"User",
"attributes": {
"first_name": "Tom",
"last_name": "test",
"email_address": "test@test.com"
}
}
}
"@

$response = Invoke-RestMethod 'Link of Instance ' -Method 'POST' -Headers $headers -Body $body
$response | ConvertTo-Json

 

Script 2 - Update of User 

 

$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("Content-Type", "application/json")
$headers.Add("Accept", "application/json")
$headers.Add("Authorization", " Token")
$response = ""


$body = @"
{
"workflow_session":{
"workflow_id":"df63edc4-ac08-42c0-abd4-9150dd04c107",
"profile_id":"1c6e5da6-a0a4-451c-82b1-83deccf44786",
"requester_id":"d0d0a161-6f2b-4524-95c1-8b504484ae71",
"requester_type":"User",
"attributes": {
"last_name": "Test"
}
}
}
"@


$response = Invoke-RestMethod 'Link of INstance ' -Method 'POST' -Headers $headers -Body $body
$response | ConvertTo-Json

0 REPLIES 0