and more in a single search tool across platforms. Read the announcement here. |
01/08/2024 12:48 AM - edited 01/10/2024 10:26 PM
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
Solved! Go to Solution.
01/08/2024 01:28 AM - edited 01/08/2024 01:29 AM
@SinchanaC Please check the url and are you able to create the account using postman?
If yes , share screenshot
01/08/2024 08:45 PM
Thank you Sumathi, the url was the issue, it works now.
01/08/2024 06:52 PM
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