> For the complete documentation index, see [llms.txt](https://www.cakewalk.security/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.cakewalk.security/docs/connections-and-integrations/integration-guides/mongodb-cloud.md).

# MongoDB Cloud

### :sparkles: Auto Provisioning

| **Authentication method** | Service account. See details [here](#how-can-i-get-the-api-key).                 |
| ------------------------- | -------------------------------------------------------------------------------- |
| **Required permissions**  | `Organization Owner`                                                             |
| **Optional metadata**     | `Organization name`. See details [here](#where-can-i-find-my-organization-name). |

<details>

<summary><strong>How can I create a service account?</strong></summary>

1. Navigate to MongoDB Cloud and click `Access Manager`.

![](https://ajeuwbhvhr.cloudimg.io/https://colony-recorder.s3.amazonaws.com/files/2025-09-09/0e49fa4a-e1d2-498c-ad6a-fe943be3d39e/ascreenshot.jpeg?tl_px=0,0\&br_px=1376,769\&force_format=jpeg\&q=100\&width=1120.0\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=268,17)

2. Select your organization.

![](https://ajeuwbhvhr.cloudimg.io/https://colony-recorder.s3.amazonaws.com/files/2025-09-09/26e9ca6f-011b-4e37-abf0-d418199a44da/ascreenshot.jpeg?tl_px=0,0\&br_px=1376,769\&force_format=jpeg\&q=100\&width=1120.0\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=222,58)

3. Click `Add new`.

![](https://ajeuwbhvhr.cloudimg.io/https://colony-recorder.s3.amazonaws.com/files/2025-09-09/d39a23f5-ffc6-4989-8254-b5f662fda7da/ascreenshot.jpeg?tl_px=544,0\&br_px=1920,769\&force_format=jpeg\&q=100\&width=1120.0\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=1017,103)

4. Select `Service Account`.

![](https://ajeuwbhvhr.cloudimg.io/https://colony-recorder.s3.amazonaws.com/files/2025-09-09/11c04494-aac8-4c24-bd22-54053bb0fe51/ascreenshot.jpeg?tl_px=544,0\&br_px=1920,769\&force_format=jpeg\&q=100\&width=1120.0\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=974,225)

5. Give your `Service Account` a recognizable name.

![](https://ajeuwbhvhr.cloudimg.io/https://colony-recorder.s3.amazonaws.com/files/2025-09-09/0d7f3481-b944-4552-813d-89d645e188fe/ascreenshot.jpeg?tl_px=0,19\&br_px=1376,788\&force_format=jpeg\&q=100\&width=1120.0\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=287,277)

6. Add an optional description.

![](https://ajeuwbhvhr.cloudimg.io/https://colony-recorder.s3.amazonaws.com/files/2025-09-09/7edb7161-587c-48cb-9286-0d60ecdb5f7d/ascreenshot.jpeg?tl_px=0,120\&br_px=1376,889\&force_format=jpeg\&q=100\&width=1120.0\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=289,277)

7. Set an expiration time, ideally the maximum of 365 days.

![](https://ajeuwbhvhr.cloudimg.io/https://colony-recorder.s3.amazonaws.com/files/2025-09-09/14e42da6-47ed-4893-bfac-c5322e2b705d/ascreenshot.jpeg?tl_px=0,310\&br_px=1376,1080\&force_format=jpeg\&q=100\&width=1120.0\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=221,371)

8. Click here

![](https://ajeuwbhvhr.cloudimg.io/https://colony-recorder.s3.amazonaws.com/files/2025-09-09/33c5a892-9a4d-4b89-87e0-e786c49a3ed8/ascreenshot.jpeg?tl_px=0,310\&br_px=1376,1080\&force_format=jpeg\&q=100\&width=1120.0\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=254,339)

9. Select `Organization Owner` as the Organization Permissions.

![](https://ajeuwbhvhr.cloudimg.io/https://colony-recorder.s3.amazonaws.com/files/2025-09-09/bf9e3ebc-acb9-4356-a7e2-66a9a63a989b/ascreenshot.jpeg?tl_px=76,310\&br_px=1452,1080\&force_format=jpeg\&q=100\&width=1120.0\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=524,380)

10. Click `Create` to continue.

![](https://ajeuwbhvhr.cloudimg.io/https://colony-recorder.s3.amazonaws.com/files/2025-09-09/4ff8461d-fd9d-4eb6-8ddc-8e6a8a94c73b/ascreenshot.jpeg?tl_px=23,310\&br_px=1400,1080\&force_format=jpeg\&q=100\&width=1120.0\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=524,367)

11. Copy the `Client ID` and paste it into the corresponding field in Cakewalk.

![](https://ajeuwbhvhr.cloudimg.io/https://colony-recorder.s3.amazonaws.com/files/2025-09-09/0b67615b-8ea1-4fb1-8ec7-a552f7fc0f32/ascreenshot.jpeg?tl_px=3,0\&br_px=1379,769\&force_format=jpeg\&q=100\&width=1120.0\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=524,275)

12. Copy the `Client Secret` and paste it into the corresponding field in Cakewalk.

![](https://ajeuwbhvhr.cloudimg.io/https://colony-recorder.s3.amazonaws.com/files/2025-09-09/99a07dd3-c6df-4e77-891b-855b3ac8396e/ascreenshot.jpeg?tl_px=4,83\&br_px=1380,852\&force_format=jpeg\&q=100\&width=1120.0\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=523,277)

</details>

<details>

<summary><strong>Where can I find my <code>Organization name</code>?</strong></summary>

1. Navigate to MongoDB Cloud and click on your organization.

![](https://ajeuwbhvhr.cloudimg.io/https://colony-recorder.s3.amazonaws.com/files/2025-09-09/bf2a8b60-ebf9-4ec4-8a84-7916ee49274a/ascreenshot.jpeg?tl_px=0,0\&br_px=1376,769\&force_format=jpeg\&q=100\&width=1120.0\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=168,19)

2. Select `View all organizations`.

![](https://ajeuwbhvhr.cloudimg.io/https://colony-recorder.s3.amazonaws.com/files/2025-09-09/e28c1e80-aed0-4542-80e6-0420d04899dd/ascreenshot.jpeg?tl_px=0,0\&br_px=1376,769\&force_format=jpeg\&q=100\&width=1120.0\&wat=1\&wat_opacity=0.7\&wat_gravity=northwest\&wat_url=https://colony-recorder.s3.us-west-1.amazonaws.com/images/watermarks/FB923C_standard.png\&wat_pad=153,140)

3. Copy the name of the organization that you'd like to use as the default in Cakewalk.

![](https://ajeuwbhvhr.cloudimg.io/https://colony-recorder.s3.amazonaws.com/files/2025-09-09/47fac0ee-72c5-4052-beee-bb30bbee7989/ascreenshot.jpeg?tl_px=0,0\&br_px=1919,1073\&force_format=jpeg\&q=100\&width=1120.0)

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://www.cakewalk.security/docs/connections-and-integrations/integration-guides/mongodb-cloud.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
