What does assign roles in a user profile do?

What does assign roles in a user profile do?

de Howard Miller -
Número de respuestas: 3
Imagen de Core developers Imagen de Documentation writers Imagen de Particularly helpful Moodlers Imagen de Peer reviewers Imagen de Plugin developers
The user profile page(s) has a roles tab where one can assign roles. I can't think/understand what affect this might have. What context are we in here?
Promedio de valoraciones: -
En respuesta a Howard Miller

Re: What does assign roles in a user profile do?

de Helen Foster -
Imagen de Core developers Imagen de Documentation writers Imagen de Moodle HQ Imagen de Particularly helpful Moodlers Imagen de Plugin developers Imagen de Testers Imagen de Translators
Hi Howard,

The roles tab in a user profile page is for assigning a role in the user context. The Parent role is an example of a role assigned in the user context.
En respuesta a Helen Foster

Re: What does assign roles in a user profile do?

de Heather P -
Hello
Do you know how to get that roles tab appear on a user profile? I'm in version 1.9.1 I'm trying to make it so that a teacher can add a Personal tutor to a learner where a Personal tutor is a role I have created to use with the ILP module and added to the student via the Mentees thing.

I can only see the roles tab when I log in as an administrator. I've tried adjusting the teacher role at site level (Users - edit user profile - allow).
Thanks
En respuesta a Heather P

Re: What does assign roles in a user profile do?

de Helen Foster -
Imagen de Core developers Imagen de Documentation writers Imagen de Moodle HQ Imagen de Particularly helpful Moodlers Imagen de Plugin developers Imagen de Testers Imagen de Translators
Hi Heather,

The reason why the roles tab doesn't appear when teachers view user profiles is because the user context is outside/separate from the course context. Users are generally assigned the role of teacher in the course context.

To enable a non-admin user to view the roles tab in a user profile page, you would need to create a new role with permission to assign roles and then assign it as a system role (via Site Administration > Users > Permissions > Assign system roles). You would also need to select which role(s) the user could assign on the "Allow role assignments" page.