# Help with ZOOM API integration with Powershell

**URL:** <https://devforum.zoom.us/t/help-with-zoom-api-integration-with-powershell/6768>\
**Category:** API and Webhooks\
**Created:** [November 21, 2019, 4:09pm UTC](https://devforum.zoom.us/t/help-with-zoom-api-integration-with-powershell/6768 "2019-11-21T16:09:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kruben](https://avatars.discourse-cdn.com/v4/letter/k/74df32/32.png) [@kruben](https://devforum.zoom.us/u/kruben)\
**Post date:** [November 21, 2019, 4:09pm UTC](https://devforum.zoom.us/t/help-with-zoom-api-integration-with-powershell/6768/1 "2019-11-21T16:09:44Z")

</div>

Hi,

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.

Thanks

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [November 21, 2019, 7:07pm UTC](https://devforum.zoom.us/t/help-with-zoom-api-integration-with-powershell/6768/2 "2019-11-21T19:07:50Z")

</div>

Hey @kruben,

I would suggest creating a [JWT App Type](https://marketplace.zoom.us/docs/guides/getting-started/app-types/create-jwt-app), then using the JWT Token to call the [Revoke a Users SSO Token endpoint](https://marketplace.zoom.us/docs/api-reference/zoom-api/users/userssotokendelete).

Here is some info on how to call REST APIs with powershell:

> <https://stackoverflow.com/questions/3574723/call-rest-api-from-powershell-script>

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![kruben](https://avatars.discourse-cdn.com/v4/letter/k/74df32/32.png) [@kruben](https://devforum.zoom.us/u/kruben)\
**Post date:** [December 18, 2019, 5:11pm UTC](https://devforum.zoom.us/t/help-with-zoom-api-integration-with-powershell/6768/3 "2019-12-18T17:11:08Z")

</div>

Hi Tommy,

Thanks for sharing those links. The developer in my team is trying to take the Oauth route and have few questions

1. how do we pass the user (service account) credentials programmatically to ZOOM in order to generate the “oauth\_access\_token”
2. 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

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 18, 2019, 9:40pm UTC](https://devforum.zoom.us/t/help-with-zoom-api-integration-with-powershell/6768/4 "2019-12-18T21:40:23Z")

</div>

Hey @kruben,

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](https://marketplace.zoom.us/docs/guides/getting-started/app-types/create-oauth-app#local-test) on your OAuth Apps settings page.

Once installed, use the code in the redirect URL, to [request an access token](https://marketplace.zoom.us/docs/guides/authorization/oauth/oauth-with-zoom#request-access-token), then use that access token to make requests to the [Zoom API](https://marketplace.zoom.us/docs/api-reference/zoom-api).

```json
{
   "Authorization": "Bearer ACCESS_TOKEN"
}

```

Also checkout the draft OAuth instructions I have written here for step by step examples for OAuth:

> <https://gist.github.com/tommygaessler/9be242433d3fe5883fd15dfa94f3f7b3>

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![maci01](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maci01/32/2129_2.png) [@maci01](https://devforum.zoom.us/u/maci01)\
**Post date:** [July 23, 2020, 5:33am UTC](https://devforum.zoom.us/t/help-with-zoom-api-integration-with-powershell/6768/5 "2020-07-23T05:33:18Z")

</div>

I created a Powershell module ([https://github.com/JosephMcEvoy/PSZoom](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.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 24, 2020, 9:35pm UTC](https://devforum.zoom.us/t/help-with-zoom-api-integration-with-powershell/6768/6 "2020-07-24T21:35:12Z")

</div>

Thanks for sharing @maci01! 🙂

We appreciate you contributing to the Zoom developer community!

-Tommy
