In essence Andy Cohen has already described the solution to overcome the MongoCommandException in one of his blog posts.
However, when I connected to my Mongo database hosted with mLab and attempted to run the db.grantRolesToUser command I got an exception that my user was not authorized on my database to execute the command.
If you experience the same issue the following steps might help you to overcome it: