NodeDriver: Updating admin user

In node application, there is a addUser and removeUser function to add/remove admin users.

Is there a similar function to update a user? e.g. updating a user role, or authenticationRestrictions (IP addresses)

For those who are looking for the same thing. Apparently you can use db.command .

E.g.

 db.addUser('restrictedUser', 'password123');
 db.command({ updateUser: 'restrictedUser', authenticationRestrictions: [{ clientSource: '127.0.0.1'}] })

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