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

Getting error while disabling zoom account

Shwet01
Regular Contributor
Regular Contributor

Hi All,

I am disabling zoom accounts but getting below error. Can you check what is wrong in the JSON. Please suggest what is wrong in my code.

DISABLE ACCOUNT JSON-

{
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://api.zoom.us/v2/users/${account.name}/status",
"httpMethod": "PUT",
"httpParams": "{\"action\": \"deactivate\"}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [204]
}
}
]
}

Getting below error-

Shwet01_0-1708934462225.png

LOG-

 

Shwet01_1-1708934586916.png

 

Thanks

shweta

8 REPLIES 8

naveenss
All-Star
All-Star

Hi @Shwet01 have you tested disabling the account from postman?

If its working can you pls share the postman screenshot?

 

Regards,
Naveen Sakleshpur
If this reply answered your question, please click the Accept As Solution button to help future users who may have a similar problem.

Shwet01
Regular Contributor
Regular Contributor

Hi @naveenss ,

Yes it is working in postman.

Shwet01_0-1708956361343.png

 

Thanks

shweta

@Shwet01 can you try the below JSON?

{
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://api.zoom.us/v2/users/${account.name}/status",
"httpMethod": "PUT",
"httpParams": "{\"action\": \"deactivate\"}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [204]
}
}
]
}

Regards,
Naveen Sakleshpur
If this reply answered your question, please click the Accept As Solution button to help future users who may have a similar problem.

Shwet01
Regular Contributor
Regular Contributor

Hi @naveenss ,

I am getting the same error again with your code as well.

Shwet01_0-1708957723369.png

 

Thanks

shweta

 

@Shwet01  from the log snippet that you've attached, I can see 401 status code. Can you check your connection JSON if that is working with the correct credentials?

naveenss_0-1708958836490.png

 

Regards,
Naveen Sakleshpur
If this reply answered your question, please click the Accept As Solution button to help future users who may have a similar problem.

Shwet01
Regular Contributor
Regular Contributor

Hi @naveenss ,

Yes connection json is working because i am able to create zoom account with connection json.

Thanks

shweta

@Shwet01can you double check the connection name used in disable account json against the create account json?

”connection”: “acctAuth”

 

Regards,
Naveen Sakleshpur
If this reply answered your question, please click the Accept As Solution button to help future users who may have a similar problem.

Why you have different URL for Create Account & Disable Account

create Account -  https://forums.saviynt.com/t5/identity-governance/unable-to-create-zoom-account-with-azure-account-i...


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