Hi,
I'm relatively new to Mongo & PyMongo. I've read the PyMongo docs and I'm a little confused on the syntax for creating, granting and revoking roles. I'm assuming based on the docs that this has to be done by passing a document into the db.command() method but I'm having difficulty figuring out what the proper syntax is for each use case. Assuming I'm correct and db.command() is the way to go:
1. What would the syntax be to add myCustomRole to user Foo in database Bar?
2. What would be the syntax to revoke myCustomRole from user Foo in database Bar?
3. If I'm totally off-base and there's a better way to do it with pyMongo, what would it be?
Thanks very much for any help/advice you're able to offer.
Cheers,
S.