Allow teachers to edit user profile custom field

Allow teachers to edit user profile custom field

by Steve Turvey -
Number of replies: 1

I have a user profile custom field set up which I need teachers to be able to update periodically. As admin, I have gone to:

System admin > Users > Permissions > Define roles

There I have changed the following for the 'Teacher role':

Edit user profile (moodle/user:editprofile) = Allow

Update user profiles (moodle/user:update) = Allow

For some reason this isn't working. Teachers still don't have the ability to access the user profiles. Please help!

Moodle version: 3.3.1

Average of ratings: -
In reply to Steve Turvey

Re: Allow teachers to edit user profile custom field

by Randy Thornton -
Picture of Documentation writers

This is not working because when a Teacher goes to a user profile they are not longer a Teacher. They are only Teachers and only have those permissions in the context of a course where they are enrolled and not on a user profile page.

So, your settings look good but they don't apply because the teacher doesn't have that role anymore.

I think what you need to do is create a site wide role to allow just this ability to it, and put your teachers in that. Take a look at some of the permissions the Manager role has, since it can do this.