# MongoDB

### [Listing of all MongoDB Actions](https://github.com/unskript/docs/blob/main/connnecting/connectors/mongodb/action_mongo/README.md)

### Authentication

![Information needed to onboard Mongo DB connector](https://491011674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fm4p7lGuBAXN5jCVyoF7P%2Fuploads%2FrzOtQ5wF73iBde6qLnTr%2FScreen%20Shot%202022-06-14%20at%206.02.37%20PM.png?alt=media\&token=7d52c1b9-c344-404c-94b2-f13ea0dcf045)

You will need to supply either a username/password, or a public/private API keys.

[If you are using Atlas, see instructions below the table.](#using-atlas)

| Name                  | Description                                                                              |
| --------------------- | ---------------------------------------------------------------------------------------- |
| Name                  | This credential will be listed using the name you provide                                |
| Host                  | Full MongoDB URI, in addition to simple host name. It also supports mongodb+srv:// URI's |
| Username              | Username to authenticate with MongoDB                                                    |
| Password              | Password to authenticate with MongoDB                                                    |
| Port                  | Port on which MongoDB server is listening                                                |
| Atlas API Public Key  | The public key acts as the username when making API requests                             |
| Atlas API Private Key | The private key acts as the password when making API requests                            |

### Using Atlas

#### Connect

Under DEPLOYMENT, click Database\
![](https://491011674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fm4p7lGuBAXN5jCVyoF7P%2Fuploads%2FN2mmTbxQBtwzm7kaBIeQ%2Fimage.png?alt=media\&token=df26a172-3c34-4d32-a4f7-f1d8b0ef2a04)

On this page, click the COnnect button, and then the Drivers:\
\
![](https://491011674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fm4p7lGuBAXN5jCVyoF7P%2Fuploads%2FcQFlrwKA8NojUun92kH2%2Fimage.png?alt=media\&token=66256b96-206d-4f97-ba1f-d7e4e6723ecb)

![](https://491011674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fm4p7lGuBAXN5jCVyoF7P%2Fuploads%2FrQ3QOjOTxJZr5yK8k6h8%2Fimage.png?alt=media\&token=33429c33-2497-4496-8e25-cab8bba47f8e)

This page will show you the URI to add:

<figure><img src="https://491011674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fm4p7lGuBAXN5jCVyoF7P%2Fuploads%2F6nxNiGeCw08CV2znHljx%2FScreenshot_2023-06-30_at_18_06_30.jpg?alt=media&#x26;token=96ce2b7c-27f1-4050-886e-be2cdb7c996e" alt=""><figcaption></figcaption></figure>

Enter mongodb+srv://\<the URL after the @> into your credential

#### Create Users

In your dashboard, create a user by clicking "Database Access" under SECURITY. Here you can add and remove users, and retrieve the password for your users.\
![](https://491011674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fm4p7lGuBAXN5jCVyoF7P%2Fuploads%2FprkOcWuMSdDj7fXo9VzS%2Fimage.png?alt=media\&token=d2a972e1-269c-4446-bc24-2660bd4a8d2f)

#### Access

Finally, enter the NAT Gateway for your unSkript installation in the Network Access section, so that unSkript is allowed to connect to Atlas.

![](https://491011674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fm4p7lGuBAXN5jCVyoF7P%2Fuploads%2FF9ipZfOigD9IKTiBTjjc%2Fimage.png?alt=media\&token=5a43201c-2edc-4130-932c-4d61c07c7051)
