I need help in adding new roles to an existing user in mongo DB. I need the solution in Pymongo. I would appreciate your help
I tried using db._create_or_update_user() db._create_or_update_user( "UserName","password", roles= [ {"role": "read", "db": "databbase"} ] )
But I am getting the error, Missing 2 required positional arguments, password and readonly