can Students be given ability to edit username?

can Students be given ability to edit username?

by jacob snovel -
Number of replies: 3

Is it possible to give students the ability to edit their own username once they're account has been created?

Average of ratings: -
In reply to jacob snovel

Re: can Students be given ability to edit username?

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Jacob,

By default only admins and managers can edit usernames. It's controlled by the capability moodle/user:update. (See the documentation Capabilities/moodle/user:update for further details.) Students can however edit the name that is displayed in Moodle.

Average of ratings: Useful (1)
In reply to Helen Foster

Re: can Students be given ability to edit username?

by jacob snovel -

so how do I change that? I found where it lists it in capabilities, but can find where to override that.

Or, what could also solve the issue is if I could give that capability to one person but ONLY over a group of students. This person needs "non-editing teacher" rights to a catagory of courses but nothing else besides the ability to change the username.

In reply to jacob snovel

Re: can Students be given ability to edit username?

by Helen Foster -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Unfortunately I don't think it's possible to restrict the capability as you describe. It provides access to the editadvanced page where any profile setting can be changed, not just the username. It also needs to be applied in the system context i.e. a user must be assigned a system role.