arunbandari/mongo-gui

User Authorization Mode - Always Admins only or Flexible?

SteveFirsake opened this issue · 3 comments

Hi @arunbandari ,

I have a user who only has read and find credentials on MongoDB for one database.

When I log on as this user - I get a warning that the user is unauthorized and inherently even that database is not displayed.

What is the default user who access the tool? Is there provision for a non-admin user?

@SteveFirsake We've developed this tool keeping the superuser in mind but we do have plans to make it work with different access controls.

I have a user who only has read and find credentials on MongoDB for one database. When I log on as this user - I get a warning that the user is unauthorized and inherently even that database is not displayed.

We're doing the same for the demo instance and not sure how your use case is different?

Hi @arunbandari,

I've also encountered a similar issue in that I log in with a user that has only been able to access a specific database but get an error with not authorized on admin to execute the "list databases" command.

Is there any possible way to list databases for which the user has privileges without authorizing the user to access to admin database?

Mongo-error