Answer: Permissions are set by choosing a profile: Explore uses `read` on production databases for the database user and `GROUP_READ_ONLY` + `GROUP_DATA_ACCESS_READ_ONLY` for the service account; Build adds `readWrite@devin_dev`; Operate adds a custom role granting `createIndex` on named collections plus `GROUP_SEARCH_INDEX_EDITOR`. Status: Confirmed Entry: tool/devin/permissions-and-security/mongodb-set-permissions Revision: 1 Digest: sha256:35032433f82d0734 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:15:00Z Last changed: 2026-11-13T03:15:00Z Last verified: 2026-11-20T12:46:31Z Next check: 2026-11-21T12:46:31Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Explore database user roles | `read` on production databases | [1] | 2026-11-20 Explore service account roles | `GROUP_READ_ONLY` + `GROUP_DATA_ACCESS_READ_ONLY` | [1] | 2026-11-20 Build database user roles | Explore, plus `readWrite@devin_dev` | [1] | 2026-11-20 Build service account roles | Same as Explore | [1] | 2026-11-20 Operate database user roles | Explore, plus a custom role granting `createIndex` on those collections | [1] | 2026-11-20 Operate service account roles | Explore, plus `GROUP_SEARCH_INDEX_EDITOR` | [1] | 2026-11-20 Sources: [1] Cognition. "Connect Devin to MongoDB". https://docs.devin.ai/integrations/mongodb.md Role: primary. Accessed: 2026-11-20T12:46:31Z Quote: "`read` on production databases" (Supports: Explore database user roles) Quote: "`GROUP_READ_ONLY` + `GROUP_DATA_ACCESS_READ_ONLY`" (Supports: Explore service account roles) Quote: "Explore, plus `readWrite@devin_dev`" (Supports: Build database user roles) Quote: "Same as Explore" (Supports: Build service account roles) Quote: "Explore, plus a custom role granting `createIndex` on those collections" (Supports: Operate database user roles) Quote: "Explore, plus `GROUP_SEARCH_INDEX_EDITOR`" (Supports: Operate service account roles) Published: 2026-11-20T12:46:30Z Snapshot SHA-256: c81514a05524058dfa29c544995f0be98610bb412f8c889fd7202386fb96ca05 (captured 2026-11-13T03:14:59Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:15:00Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:46:31Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:46:31Z Last attempt: 2026-11-20T12:46:31Z Notes and limitations: Extracted automatically from a single official source (section "Step 4: Set permissions"). Related: https://latestn.com/tool/devin/permissions-and-security/oidc-security-properties What security properties does Devin's OIDC token provide, such as expiration and revocation? https://latestn.com/tool/devin/permissions-and-security/oidc-token-claims What token claims does Devin include in its OIDC identity tokens? https://latestn.com/tool/devin/permissions-and-security/outposts-api-token-scopes Which API token scopes does Devin Outposts require? https://latestn.com/tool/devin/permissions-and-security/mcp-env-vars-secrets How do I use environment variables for secrets in Devin MCP server configuration? https://latestn.com/tool/devin/permissions-and-security/mcp-tool-permissions How do I control which MCP tools the Devin Local agent is allowed to use? https://latestn.com/tool/devin/permissions-and-security/model-allowlist-authentication What authentication does the Devin Desktop update model allowlist endpoint require? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:15:00Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/devin/permissions-and-security/mongodb-set-permissions/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/devin/permissions-and-security/mongodb-set-permissions POST: https://latestn.com/dispute/tool/devin/permissions-and-security/mongodb-set-permissions with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/devin/permissions-and-security/mongodb-set-permissions?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I set permissions for Devin's MongoDB database user and service account? Revision 1, last verified 2026-11-20T12:46:31Z. https://latestn.com/tool/devin/permissions-and-security/mongodb-set-permissions (accessed 2026-11-21T10:04:03Z). @misc{LatestN_tool_devin_permissions_and_security_mongodb_set_permissions_r1, title = {How do I set permissions for Devin's MongoDB database user and service account?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/devin/permissions-and-security/mongodb-set-permissions}}, note = {Revision 1; digest sha256:35032433f82d0734; last verified 2026-11-20T12:46:31Z; accessed 2026-11-21T10:04:03Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/devin/permissions-and-security/mongodb-set-permissions