In this blog we will learn, how to add permission or role in existing User. In this we will use db.updateUser() method to update the user’s profile on the database on which you run the method. An update to a field completely replaces the previous field’s values. This includes updates to the user’s roles array. Steps to …
Read More