# Okta Workflows Zoom

**URL:** <https://devforum.zoom.us/t/okta-workflows-zoom/84621>\
**Category:** API and Webhooks\
**Tags:** api\
**Created:** [March 13, 2023, 2:29pm UTC](https://devforum.zoom.us/t/okta-workflows-zoom/84621 "2023-03-13T14:29:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![srecko.anzic](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@srecko.anzic](https://devforum.zoom.us/u/srecko.anzic)\
**Post date:** [March 13, 2023, 2:29pm UTC](https://devforum.zoom.us/t/okta-workflows-zoom/84621/1 "2023-03-13T14:29:48Z")

</div>

I am able to read users using Okta Workflows Zoom app…  
I was trying to make a Zoom custom API call GET /phone/users/{userId} from Okta Workflows and I was getting:  
“code”: 104, “message”: “Invalid access token, does not contain scopes:[phone:read, phone:read:admin].”

How could I include the scopes [phone:read, phone:read:admin] into Okta Workflows Zooom app?

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [March 13, 2023, 4:14pm UTC](https://devforum.zoom.us/t/okta-workflows-zoom/84621/2 "2023-03-13T16:14:11Z")

</div>

@srecko.anzic ,

Thank you for posting in the Zoom Developer Forum. To begin, can you clarify if you are creating a Zoom App Marketplace or OAuth App ? For both Marketplace app types, you will need to make sure you set the appropriate scopes. To do so, you would select the **phone:read** and **phone:read:admin** scopes for the App. The scopes are located on the **Scopes Tab** of the Marketplace App. Here is our help documentation on Adding Scopes to your Marketplace App for reference:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/c/3cada22de60df1d1d5cfffa31b753f75dd3712b7.png)

[https://marketplace.zoom.us/docs/guides/build/oauth-app/#scopes](https://marketplace.zoom.us/docs/guides/build/oauth-app/#scopes)

---

<div class="post-metadata">

**Author:** ![srecko.anzic](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@srecko.anzic](https://devforum.zoom.us/u/srecko.anzic)\
**Post date:** [March 13, 2023, 5:08pm UTC](https://devforum.zoom.us/t/okta-workflows-zoom/84621/3 "2023-03-13T17:08:01Z")

</div>

Hi Donte,

I think this is a Zoom app called Okta Workflows that we already have added.  
I am just not sure how to add more scopes. When I go to the app and I go to Scopes tab I can’t find the button to add scopes.

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [March 13, 2023, 8:15pm UTC](https://devforum.zoom.us/t/okta-workflows-zoom/84621/4 "2023-03-13T20:15:47Z")

</div>

Thanks for the clarifications @srecko.anzic ! It sounds like your user profile may not have the appropriate scopes. Can you share a screen shot of the message you are seeing ? Can share if you are trying to make an API call from `Okta workflow` to the Zoom Rest API `Get a user's profile` endpoint. Is that correct ?

## `Get a user's profile` endpoint.

[https://marketplace.zoom.us/docs/api-reference/phone/methods/#operation/phoneUser](https://marketplace.zoom.us/docs/api-reference/phone/methods/#operation/phoneUser)

## Okta workflow

> **[App Marketplace](https://marketplace.zoom.us/apps/aGvVCWUaT3OMgMRr_m8q2A)**

---

<div class="post-metadata">

**Author:** ![srecko.anzic](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@srecko.anzic](https://devforum.zoom.us/u/srecko.anzic)\
**Post date:** [March 13, 2023, 8:32pm UTC](https://devforum.zoom.us/t/okta-workflows-zoom/84621/5 "2023-03-13T20:32:29Z")

</div>

Hi Donte, I am not sure if I follow what you are asking me to send you over.  
Here is the error message that I get when I make a GET /phone/users/shRkpqUwREymX-uiyyUzFw

{  
“retry\_count”: 0,  
“flo”: “zoom:1.0.60:customAPIAction”,  
“method”: “8Jn\_QAmWVIy”,  
“execution”: “981457b5-e487-4e15-b4a2-ea48a91fbb70”,  
“module”: “http.call”,  
“kind”: “HTTP Request Error”,  
“statusCode”: 400,  
“headers”: {  
“strict-transport-security”: “max-age=31536000; includeSubDomains”,  
“x-zm-region”: “VA”,  
“cf-cache-status”: “DYNAMIC”,  
“connection”: “keep-alive”,  
“report-to”: “{"endpoints":[{"url":"https:\/\/[a.nel.cloudflare.com](http://a.nel.cloudflare.com)\/report\/v3?s=hgN562BoaCySnGYLCM%2F1zrKfYT2wL%2BmjJJQIVrnhNpTl%2F%2F%2BWF%2BpLRYh3gE2QqD1GB9DFJvm1E5YlYEoxDFDqgHcpbWpOtQEiQAlOagnegViszCnXzTCxOROTXzDC"}],"group":"cf-nel","max\_age":604800}”,  
“x-zm-trackingid”: “WEB\_6c9e8de15662e9241b31c1c222f11cb8”,  
“cf-ray”: “7a7709deeda60871-SEA”,  
“content-length”: “102”,  
“content-type”: “application/json”,  
“date”: “Mon, 13 Mar 2023 20:31:06 GMT”,  
“set-cookie”: [  
“\_\_cf\_bm=17s8JV60A5UndS7vB0vDZ7KId0PgqQe7oQ1109kXyog-1678739466-0-AS8BqtqYIMp4ob9luiXIHtIwdNmM+toHHwrIqv8elhUf6oncWUV7yHcKr4I1OyZLJtBVNSsI0apNNeoR7d9DkMw=; path=/; expires=Mon, 13-Mar-23 21:01:06 GMT; domain=.[zoom.us](http://zoom.us); HttpOnly; Secure; SameSite=None”  
],  
“server”: “cloudflare”,  
“x-frame-options”: “deny”,  
“vary”: “Access-Control-Request-Headers”,  
“nel”: “{"success\_fraction":0.01,"report\_to":"cf-nel","max\_age":604800}”  
},  
“body”: {  
“code”: 104,  
“message”: “Invalid access token, does not contain scopes:[phone:read, phone:read:admin].”  
},  
“message”: “400 Bad Request”,  
“description”: “HTTP Request Error”,  
“steps”: 28,  
“source”: {  
“flo”: “zoom:1.0.60:customAPIAction”,  
“method”: “8Jn\_QAmWVIy”,  
“execution”: “981457b5-e487-4e15-b4a2-ea48a91fbb70”,  
“module”: “http.call”  
}  
}

---

<div class="post-metadata">

**Author:** ![TPCoMatt](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tpcomatt/32/53902_2.png) [@TPCoMatt](https://devforum.zoom.us/u/TPCoMatt)\
**Post date:** [November 15, 2023, 2:16pm UTC](https://devforum.zoom.us/t/okta-workflows-zoom/84621/7 "2023-11-15T14:16:48Z")

</div>

Hello - Was there ever a resolution to this issue? I am facing the same problem.

---

<div class="post-metadata">

**Author:** ![srecko.anzic](https://avatars.discourse-cdn.com/v4/letter/s/a5b964/32.png) [@srecko.anzic](https://devforum.zoom.us/u/srecko.anzic)\
**Post date:** [November 15, 2023, 2:36pm UTC](https://devforum.zoom.us/t/okta-workflows-zoom/84621/8 "2023-11-15T14:36:45Z")

</div>

Hi @TPCoMatt , this is not possible with Okta Zoom App. You will have to create your own Zoom app in the Connection Builder in Okta Workflows. On Zoom side you will do the same and add the required scopes. This would require advanced connection builder skills because you will have to deal with pagination. Good luck!

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [November 16, 2023, 5:54am UTC](https://devforum.zoom.us/t/okta-workflows-zoom/84621/9 "2023-11-16T05:54:01Z")

</div>

Thanks for sharing this insight with the Zoom Developer forum, @srecko.anzic !

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [November 17, 2023, 5:54am UTC](https://devforum.zoom.us/t/okta-workflows-zoom/84621/10 "2023-11-17T05:54:38Z")

</div>

Closed on November 17, 2023, 5:54am UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
