Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Provisioning for Service Now app using REST

sushmita
Regular Contributor
Regular Contributor

Hello,

I am trying to create a test user in service now using the REST connector. The 'rule run' job picks up the account in EIC that needs to be created in SNOW. Once the provisioning job is complete, I can see the account in SNOW, but the only field populated is 'title'. The user account has other fields like firstname, lastname, email & city. I don't see any error in logs after running provisioning job. Below is the create accounts json for this connector, updated the same one present in connector guide. 

{
"accountIdPath":"call1.message.result.sys_id",
"responseColsToPropsMap":{

},
"call":[
{
"name":"call1",
"connection":"acctAuth",
"url":"https://testing.service-now.com/api/now/table/sys_user",
"httpMethod":"POST",
"httpParams":"{\"email\":\"${user.email}\",\"first_name\":\"${user.firstname}\",\"last_name\":\"${user.lastname}\",\"employee_number\":\"${user.name}\",\"title\":\"${user.title}\"}",

"httpHeaders":{
"Authorization":"${access_token}"
},
"httpContentType":"application/json",
"unsuccessResponses":{
"error.message":"Operation Failed"
}
}
]
}

4 REPLIES 4

rushikeshvartak
All-Star
All-Star

{
"accountIdPath":"call1.message.result.sys_id",
"responseColsToPropsMap":{

},
"call":[
{
"name":"call1",
"connection":"userAuth",
"url":"https://<domain-name>/api/now/table/sys_user",
"httpMethod":"POST",
"httpParams":"{\"email\":\"${user.email}\",\"first_name\":\"${user.firstname}\",\"last_name\":\"${user.lastname}\",\"employee_number\":\"${user.employeeid}\",\"user_name\":\"${user.username}\",\"title\":\"${user.title}\"}",
"httpHeaders":{
"Authorization":"${access_token}"
},
"httpContentType":"application/json",
"unsuccessResponses":{
"error.message":"Operation Failed"
}
}
]
}


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

sushmita
Regular Contributor
Regular Contributor

We do not have a user_name attribute in our SNOw instance, hence mapping 'employeeid' to the user.name field in EIC. does that matter?

There is no field called user.name

map to user.username


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Thank you, I tried the same but the result was the same..the only field updated was 'title'.