Shared Connections

MongoQUI University

Sharing a Connection (Step-by-Step)

  1. Right-click → Share Connection on any saved connection.
  2. Add Team Members – search by name / email, then select.
  3. Role Type – choose MongoDB Built-in Role or Custom Team Role.
  4. If Custom, pick the desired role from the dropdown.
  5. Click Share Connection.

Under the hood

A SharedConnection document is created storing:

  • connectionId
  • userIds[]
  • roleId
  • immutable: true

No part of the MongoDB URI is exposed to recipients.


Managing Shared Connections

  • Shared Connection List – Sidebar → Shared ConnectionAll Shared Connections.
  • Columns: Connection Name | Shared Users | Last Updated | Connection ID | Actions.
  • Manage opens Shared Connection Access where you can ✏️ edit a user’s role or 🗑️ remove a user.
  • Changes apply in real time; users see new permissions on their next query.

sharedconection


Default Role Assignment

  1. Edit the source connection.
  2. Navigate to Sharing → Default Role.
  3. Pick the role that should auto-populate in the share modal.

Great for high-turnover projects that reuse the same permission set.

Sharing setting and permissions

Security & Compliance

  • Tamper-proof – Non-owners see a read-only banner; edits are blocked.
  • Audit Logs – Every share / edit / revoke is logged with actor, timestamp, and diff.
  • Soft Delete – Removing a user marks the entry inactive for 7 days before hard purge.
  • Encryption – Connection URIs stored with AES-256-GCM using your Org’s key.

Best Practices

  1. Least Privilege – default to read-only; grant write only when required.
  2. Naming Convention<env>-<role>-<scope> (e.g. prod-analytics-read).
  3. Quarterly Review – audit dormant shares in the Shared Connection List.
  4. Credential Rotation – update the original connection; all shares pick up the new password instantly.

Troubleshooting & FAQs

Q: Teammate can’t see the connection I shared.
A: Confirm they belong to your Organization and that their email matches. Check Shared Users count and assigned role.

Q: Why can’t I delete a shared connection someone else created?
A: Only the connection owner or an Org Admin can revoke or delete it.

Q: What happens if I delete a Custom Role that is in use?
A: You’ll get a warning listing affected shares; map them to another role before deletion.

Q: Does this replace MongoDB’s own RBAC?
A: No. MongoQUI sharing is an additional layer; the database still enforces its own user/role model.

  • MongoDB RBAC Module – For on-cluster auth & authorization.
  • Connection Manager – Create, categorize, and test connections.
  • Audit Logs – System-wide event tracking for compliance.

Next Up: Learn how to Export & Import Data with field-level transformations.