# Add user to call queue voicemail access list

**URL:** <https://devforum.zoom.us/t/add-user-to-call-queue-voicemail-access-list/101731>\
**Category:** API and Webhooks\
**Tags:** phone\
**Created:** [January 12, 2024, 8:52pm UTC](https://devforum.zoom.us/t/add-user-to-call-queue-voicemail-access-list/101731 "2024-01-12T20:52:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jniehoff](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jniehoff/32/55590_2.png) [@jniehoff](https://devforum.zoom.us/u/jniehoff)\
**Post date:** [January 12, 2024, 8:52pm UTC](https://devforum.zoom.us/t/add-user-to-call-queue-voicemail-access-list/101731/1 "2024-01-12T20:52:49Z")

</div>

**API Endpoint(s) and/or Zoom API Event(s)**  
Phone/call\_queues/$callQueueId/policies/voice\_mail

**Description**  
I am trying to add users to the user access list for a call queue’s Voicemail. I have run into an issue where I cannot get the method to validate because I cannot provide a shared\_id. I am not sure how to get past this since it seems the shared\_id is randomly generated when adding the user to the voicemail access list in the web GUI.

**Error?**  
Passing a null, or empty value for shared\_id results in a failure.

**How To Reproduce**  
_Steps to reproduce the behavior:_  
\*1. Below is my invoke command (powershell)  
invoke-restmethod -uri “[https://api.zoom.us/v2/phone/call\_queues/$callQueueId/policies/voice\_mail](https://api.zoom.us/v2/phone/call_queues/$callQueueId/policies/voice_mail)” -Method Patch -Headers $headers -Body $jsonVoicemailSettings

Variables:  
$headers = @{  
Authorization = “Bearer $accessToken”  
‘Content-Type’ = ‘application/json’  
}

$jsonVoicemailSettings  
{  
“voicemail\_access\_members”: [  
{  
“allow\_delete”: true,  
“access\_user\_id”: “DL0B7yjWTk6uyCTP5R2B9w”,  
“allow\_sharing”: true,  
“shared\_id”: null,  
“allow\_download”: true  
}  
]  
}  
2. Access type - Server to Server app token  
3. Errors :invoke-restmethod : {“code”:300,“message”:“Validation Failed.”,“errors”:[{“field”:“access\_user\_id”,“field\_value”:“DL0B7yjWTk6uyCTP5R2B9w”,“message”:“Shared voicemail not found for (DL0B7yjWTk6uyCTP5R2B9w).”}]}  
At line:1 char:1

- invoke-restmethod -uri "[https://api.zoom.us/v2/phone/call\_queues/$cal](https://api.zoom.us/v2/phone/call_queues/$cal) …
- 

```auto
  + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
  + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
```

---

<div class="post-metadata">

**Author:** ![joe.warth](https://avatars.discourse-cdn.com/v4/letter/j/97f17d/32.png) [@joe.warth](https://devforum.zoom.us/u/joe.warth)\
**Post date:** [January 22, 2024, 7:59am UTC](https://devforum.zoom.us/t/add-user-to-call-queue-voicemail-access-list/101731/2 "2024-01-22T07:59:26Z")

</div>

At the risk of oversimplifying, I briefly ran into this the other week before realizing I was trying to Patch in new data rather than using the explicit Add endpoint for voicemail users (Add a policy setting to a call queue [Zoom Phone API](https://developers.zoom.us/docs/api/rest/reference/phone/methods/#operation/addCQPolicySubSetting)). I think the issue for me was just a bit of weirdness in the API documentation, at least how I read it, but it made sense. Hopefully this helps!

---

<div class="post-metadata">

**Author:** ![jniehoff](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jniehoff/32/55590_2.png) [@jniehoff](https://devforum.zoom.us/u/jniehoff)\
**Post date:** [February 5, 2024, 5:27pm UTC](https://devforum.zoom.us/t/add-user-to-call-queue-voicemail-access-list/101731/3 "2024-02-05T17:27:28Z")

</div>

Thanks for the input Joe. This is exactly what was going on and the change from PATCH to POST got the changes to succeed.

---

<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:** [February 22, 2024, 4:17am UTC](https://devforum.zoom.us/t/add-user-to-call-queue-voicemail-access-list/101731/4 "2024-02-22T04:17:32Z")

</div>

Closed on February 22, 2024, 4:17am UTC

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