Can I restrict user's access on a certain IP? Like in a certain way in MySQL.
CREATE 'dbuser'@'10.1.0.1' identitifed by 'password';
GRANT USAGE on *.* to 'dbuser'@'10.1.0.1';
We are not using any mongodb tools except for Robo
When you create a user then you can specify Authentication Restrictions
Would be like this:
use admin
db.createUser(
   {
     user: &quot;dbuser&quot;,
     pwd: &quot;password&quot;
     roles: [ { role: &quot;readWrite&quot;, db: &quot;reporting&quot; } ],
     authenticationRestrictions: [ {
        clientSource: [&quot;192.0.2.0&quot;],
        serverAddress: [&quot;198.51.100.0&quot;]
     } ]
   }
)

But for me it is not clear, if you are looking for this.