Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Create Account JSON throwing error

SinchanaC
New Contributor II
New Contributor II

Hi, 

We are doing an Azure AD integration with Saviynt and this is the JSON we are using for Create Account. It throws the following error while trying to create an account. Request for some help to resolve this.

{"headers":null,"message":{"html":{"head":{"title":"Object moved"},"body":{"h2":{"a":{"href":"/Error/UE_404?aspxerrorpath=/v1.0/users","content":"here"},"content":["Object moved to","."]}}}},"statusCode":302,"description":null,"status":"Failed"},

JSON: 

{
"accountIdPath": "call1.message.id",
"dateFormat": "yyyy-MM-dd'T'HH:mm:ssXXX",
"responseColsToPropsMap": {
"displayName": "call1.message.displayName~#~char",
"name": "call1.message.userPrincipalName~#~char"
},
"call": [
{
"name": "call1",
"connection": "${connectionName}",
"url": "https://portal.azure.com/v1.0/users",
"httpMethod": "POST",
"httpParams": "{\"accountEnabled\":true,\"displayName\":\"${user.firstname}\",\"mailNickname\":\"${user.firstname}\",\"userPrincipalName\":\"${user.username}@ABCD.onmicrosoft.com\",\"passwordProfile\":{\"forceChangePasswordNextSignIn\":true,\"password\":\"${password}\"}}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,
201,
204,
205
]
}
}
]
}

Thanks & Regards, 

Sinchana

 

3 REPLIES 3

SumathiSomala
All-Star
All-Star

@SinchanaC Please check the url and are you able to create the account using postman?

If yes , share screenshot

 

Regards,
Sumathi Somala

If this reply answered your question, please Accept As Solution and give Kudos.

Thank you Sumathi, the url was the issue, it works now.

rushikeshvartak
All-Star
All-Star

Below is url for Azure User creation https://graph.microsoft.com/v1.0/users 

Refer https://learn.microsoft.com/en-us/graph/api/user-post-users?view=graph-rest-1.0&tabs=http


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.