I need some guidance on how the ZOOM API “revoke a User’s SSO token” can be called from a Powershell script. A sample code would be helpful.
We would like to delete the user token so that the user is signed out of the ZOOM Client. Any help would be appreciated.
I would suggest creating a
JWT App Type, then using the JWT Token to call the Revoke a Users SSO Token endpoint.
Here is some info on how to call REST APIs with powershell:
Thanks for sharing those links. The developer in my team is trying to take the Oauth route and have few questions
how do we pass the user (service account) credentials programmatically to ZOOM in order to generate the “oauth_access_token”
also, is there a user token set somewhere in the API(webpage) that could tell us which user (service account) account has authenticated to portal.
We are stuck at the authentication part which is needed in order to generate the “oauth_access_token” when we put in the CLient ID and Client Secret of the Service account we use to perform the user revocation functionality
I am a little confused about the questions you asked. Can you please clarify or give me examples?
To get an OAuth access token, your application needs to be installed via the
install link on your OAuth Apps settings page.
Once installed, use the code in the redirect URL, to
request an access token, then use that access token to make requests to the Zoom API.
"Authorization": "Bearer ACCESS_TOKEN"
Also checkout the draft OAuth instructions I have written here for step by step examples for OAuth:
This file has been truncated.
# Zoom OAuth
The Zoom API uses OAuth2 to authenticate and authorize Zoom users. Zoom’s OAuth2 paths live at https://zoom.us/oauth/. To get an OAuth API Key and Secret, and select the scopes your app needs, [create an OAuth App](https://marketplace.zoom.us/develop/create).
### On This Page
- [Getting an Access Token](#getting-an-access-token)
- [Using an Access Token](#using-an-access-token)
- [Refreshing an Access Token](#refreshing-an-access-token)
- [Revoking an Access Token](#revoking-an-access-token)
I created a Powershell module (
https://github.com/JosephMcEvoy/PSZoom) that will do what you are trying to do. It does use JWT however. The function is called Revoke-ZoomUserSsoToken.
Thanks for sharing
We appreciate you contributing to the Zoom developer community!