Ticket: Principle of Least Privilege can't login with compass

Hi,Team! I created user mflixAppUser in mongodb atlas and set readWrite permission on sample_mflix database:

But I can’t log in with compass:

Can you help me figure out what’s the problem? Thanks!

try adding sample_mflix to the end of uri: ...mongodb.net/sample_mflix
or try using authSource: ...mongodb.net/?authSource=sample_mflix

Thank you for your reply! I’ve tried to add authSource but it didn’t work.

Then i tried to add another user, it worked.

I used the user: testtest123, and succeed to login.

I deleted my mflixAppUser and recreated it. And it worked! Maybe my password is worng. Thanks a lot!

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.