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

Unable to create Zoom Account with Azure Account ID

Shwet01
Regular Contributor
Regular Contributor

Hi Folks,

I am creating Zoom Account with license. When i was passing JSON without license assignment, account is getting created but now i am creating account with license as well using azure Account Id(it will assign license at the time zoom account creation), it is getting failed. It multiple changes in JSON but still see the same error.

Can anyone please what is wrong in my JSON. 

 

Create account Json-

{
"accountIdPath": "call1.message.id",
"dateFormat": "yyyy-MM-dd'T'HH:mm:ssXXX",
"responseColsToPropsMap": {
"displayName": "call1.message.first_name~#~char",
"name": "call1.message.email~#~char",
"customproperty1": "call1.message.first_name~#~char",
"customproperty2": "call1.message.last_name~#~char",
"customproperty3": "call1.message.type~#~char"
},
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://removed-prod.azurewebsites.net/api/zoom-createAccount ",
"httpMethod": "POST",
"httpParams": "{\"action\":\"custCreate\",\"user_info\":{\"email\":\"${user.email}\",\"firstName\":\"${user.firstname}\",\"lastName\":\"${user.lastname}\",\"zone\":\"${user.regioncode}\",\"displayName\":\"${user.displayname}\",\"type\":1 }}",
"httpHeaders": {
"Authorization": "${access_token}",
"x-functions-key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
201
]
}
}
]
}

Payload in Log viewer-

Shwet01_0-1708024601740.png

Response in Provisioning Comment-

{"call1":{"headers":null,"message":"","statusCode":200,"description":null,"status":"Failed"}}

 

Thanks

shwet

[This message has been edited by moderator to mask Url]

8 REPLIES 8

rushikeshvartak
All-Star
All-Star

Share postman screenshot 


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

Hi @rushikeshvartak ,

Please find the screenshot-

Shwet01_0-1708062841402.png
Shwet01_1-1708062905067.png

Thanks 

shweta

[This message has been edited by moderator to mask URL]

Vedanth-BK
Regular Contributor
Regular Contributor

Hi @Shwet01 ,

I see that there are few attributes like custCreate and type in the httpParams of the Json which are not passed in postman. Please ensure you pass the same body in the Json as well.

Thank you
Vedanth B.K

Shwet01
Regular Contributor
Regular Contributor

Hi @Vedanth-BK ,

Thank you for pointing out.

I have corrected the json but now getting different error.

{
"accountIdPath": "call1.message.id",
"dateFormat": "yyyy-MM-dd'T'HH:mm:ssXXX",
"responseColsToPropsMap": {
"displayName": "call1.message.first_name~#~char",
"name": "call1.message.email~#~char",
"customproperty1": "call1.message.first_name~#~char",
"customproperty2": "call1.message.last_name~#~char",
"customproperty3": "call1.message.type~#~char"
},
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https:prod.azurewebsites.net/api/zoom-createAccount",
"httpMethod": "POST",
"httpParams": "{\"email\":\"${user.email}\",\"firstName\":\"${user.firstname}\",\"lastName\":\"${user.lastname}\",\"zone\":\"${user.regioncode}\",\"displayName\":\"${user.displayname}\"}",
"httpHeaders": {
"Authorization": "${access_token}",
"x-functions-key": "XXXXXXXXXxxxx="
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
201
]
}
}
]
}

 

call1":{"headers":null,"message":{"status":500,"data":[],"messages":["error.server.exception"],"errors":[null]},"statusCode":200,"description":null,"status":"Failed"}}

500 is interval server error right.

 

Thanks

shwet

Vedanth-BK
Regular Contributor
Regular Contributor

@Shwet01 yes 500 is internal server error but  i suspect the URL might be incorrect in the json. Please check.

Thank you
Vedanth B.K

NM
Regular Contributor III
Regular Contributor III

Hi @Shwet01,

Try this-

{
"accountIdPath": "call1.message.id",
"dateFormat": "yyyy-MM-dd'T'HH:mm:ssXXX",
"responseColsToPropsMap": {
"displayName": "call1.message.first_name~#~char",
"name": "call1.message.email~#~char",
"customproperty1": "call1.message.first_name~#~char",
"customproperty2": "call1.message.last_name~#~char",
"customproperty3": "call1.message.type~#~char"
},
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://removed-prod.azurewebsites.net/api/zoom-createAccount ",
"httpMethod": "POST",
"httpParams": "{\"action\":\"custCreate\",\"user_info\":{\"email\":\"${user.email}\",\"firstName\":\"${user.firstname}\",\"lastName\":\"${user.lastname}\",\"zone\":\"${user.regioncode}\",\"displayName\":\"${user.displayname}\",\"type\":1 }}",
"httpHeaders": {
"Authorization": "${access_token}",
"x-functions-key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200
]
}
}
]
}

Shwet01
Regular Contributor
Regular Contributor

Hi @NM ,

I see that you have modified the status code 200. This will only complete the task and zoom account account will be created in saviynt but will not actually provision the zoom account in zoom,  neither license will be assigned. It tried the same earlier.

 

Can you suggest something else. I am getting payload in the logs, what is my understanding is that saviynt is getting the user value and trying to hit the target but getting failed. Is there some issue form target end or saviynt?

Thanks

shwet

Shwet01
Regular Contributor
Regular Contributor

I am able to create zoom account with license. Issue was with JSON only. I removed the unwanted attribute like action, user info and type and it worked. Thank you all for all your help.

 

Thanks

shweta singh