# Connecting to a MongoDB Atlas Cluster

**URL:** <https://community.dremio.com/t/connecting-to-a-mongodb-atlas-cluster/4393>\
**Category:** Uncategorized\
**Created:** [October 22, 2019, 5:10pm UTC](https://community.dremio.com/t/connecting-to-a-mongodb-atlas-cluster/4393 "2019-10-22T17:10:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdguzmans](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/jdguzmans/32/2364_2.png) [@jdguzmans](https://community.dremio.com/u/jdguzmans)\
**Post date:** [October 22, 2019, 5:10pm UTC](https://community.dremio.com/t/connecting-to-a-mongodb-atlas-cluster/4393/1 "2019-10-22T17:10:33Z")

</div>

Has anyone been able to connect Dremio to an Atlas Cluster? I am having this issue:

Setup:

- Dremio Community Edition, Build 4.0.2-201910020123580864-a98a0b9.
- Mongo V4.2.1, Replica Set 3 Nodes.

I get this error `Could not find/access authentication database admin`.

This is the way I am setting up the conection:

 ![Screenshot%20from%202019-10-22%2012-04-52](https://us1.discourse-cdn.com/flex020/uploads/dremio/original/2X/3/3815f4c4f4b5cb651e5ed1837590989224710dee.png)

---

<div class="post-metadata">

**Author:** ![balaji.ramaswamy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/balaji.ramaswamy/32/843_2.png) [@balaji.ramaswamy](https://community.dremio.com/u/balaji.ramaswamy)\
**Post date:** [October 22, 2019, 5:24pm UTC](https://community.dremio.com/t/connecting-to-a-mongodb-atlas-cluster/4393/2 "2019-10-22T17:24:40Z")

</div>

@jdguzmans

Would you be able to send us the server.log from the coordinator

Thanks  
@balaji.ramaswamy

---

<div class="post-metadata">

**Author:** ![jdguzmans](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/jdguzmans/32/2364_2.png) [@jdguzmans](https://community.dremio.com/u/jdguzmans)\
**Post date:** [October 22, 2019, 7:25pm UTC](https://community.dremio.com/t/connecting-to-a-mongodb-atlas-cluster/4393/3 "2019-10-22T19:25:24Z")

</div>

Thanks for your interest on this @balaji.ramaswamy, I solved this problem.

I had to specify this on Advanced Options  
 ![Screenshot%20from%202019-10-22%2014-23-03](https://us1.discourse-cdn.com/flex020/uploads/dremio/original/2X/d/dec69a1eecd0b47a849ac8fffd2a87060865a51f.png)

replicaSet = \<CLUSTER\_NAME\>-shard-0  
authSource=admin  
ssl=true
