# No Permission to End Meeting

**URL:** <https://devforum.zoom.us/t/no-permission-to-end-meeting/121977>\
**Category:** Meeting SDK\
**Created:** [December 5, 2024, 9:23am UTC](https://devforum.zoom.us/t/no-permission-to-end-meeting/121977 "2024-12-05T09:23:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eoin-mcc](https://avatars.discourse-cdn.com/v4/letter/e/958977/32.png) [@eoin-mcc](https://devforum.zoom.us/u/eoin-mcc)\
**Post date:** [December 5, 2024, 9:23am UTC](https://devforum.zoom.us/t/no-permission-to-end-meeting/121977/1 "2024-12-05T09:23:35Z")

</div>

**Meeting SDK Type and Version**  
Windows C++ Meeting SDK - v6.2.5.48922

**Description**  
When I call `meetingService->Leave(END_MEETING)` I receive the error 12 (which means no permission)

**Error?**  
SDK ERROR 12 (NO PERMISSION)

**Troubleshooting Routes**  
I have attempted to set the SDK Bot as the host when creating the SDK JWT Token but still the same error.

**How To Reproduce**  
_Steps to reproduce the behavior including:_  
\*1. SDK JWT & General Account Level App  
\*2. SDK ERROR 12 (NO PERMISSION) on END\_MEETING  
\*3. Leave Meeting Code:

```auto
if (meeting_service) {
    SDKError err = meeting_service->Leave(END_MEETING);    

    if (err != SDKERR_SUCCESS) {
        cerr << "Failed to end meeting: " << err << '\n';
    }
}

```

---

<div class="post-metadata">

**Author:** ![amanda-recallai](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/amanda-recallai/32/44747_2.png) [@amanda-recallai](https://devforum.zoom.us/u/amanda-recallai)\
**Post date:** [December 6, 2024, 12:00am UTC](https://devforum.zoom.us/t/no-permission-to-end-meeting/121977/2 "2024-12-06T00:00:41Z")

</div>

Hey @eoin-mcc ,

Have you been able to confirm that your bot is in fact the host of the meeting when calling meetingService-\>Leave(END\_MEETING)? This command will only work if your bot is the host of the meeting. If you just want the bot to leave the meeting, you can use meetingService-\>Leave(LEAVE\_MEETING) instead.

You also might want to check out the Recall.ai API.

It’s a simple 3rd party API that lets you use meeting bots to get raw audio/video/metadata from meetings without you needing to spend months to build, scale and maintain these bots.

Here are the API docs: [https://docs.recall.ai](https://docs.recall.ai)
