Chapter 2: Role-Based Access Control - Learning Activity: Granting Roles

Hi everyone,

When trying to do this course to add roles based AC to a user

when i use db.grantRolesToUser( ) to try and add roles to a account it doesn’t accept this.
I’ve attached a pic below of the issue i get

any help would be good thank you

You are not using

You screenshot shows that you typed db.grantUserRolesToUser.

Hi Steevej,

Thank you for the comment,

I figured out my mistake after taking a break from it.

i should be using db.grantRolesToUser()

Kind Regards