| Forum

How to assign a new custom role to a user in Moodle?

I have created a new Custom Role in Moodle by selecting User context. Now I want to assign this new role to a user in Moodle? Moodle documentation did not help much.

To assign a custom role to a user login as an administrator and navigate to the user list (Site administrator -> Users -> Browse list of users).

Click on the First name/Surname of the user to which you want to assign the role.

Click on Preferences.

Click on Assign roles relative to this user

Click on the role you would like to assign to this user.

Move the user from right side list(Potential Users) to left side list(Existing User) for assigning the role.