Edit Profile Moodle 2.9

Edit Profile Moodle 2.9

by Andre Paz Leal -
Number of replies: 5

Ok, we have a big issue here with our current setup, we integrate Moodle with one of our system and the user cannot have the ability to change it´s username and password and on Moodle 2.9 with the profile option on menu the user have access to edit its profile, from the first option, and from inside the Course Details/ Subscribed Courses also.

Anyone have a solution using the platform? For us the user cant have the ability to change the username, email, password.

The only solution that I found was using CSS (but a more advanced user can easily change the element using Inspector):

#page-user-editadvanced #id_moodle{
display:none;
}
Average of ratings: -
In reply to Andre Paz Leal

Re: Edit Profile Moodle 2.9

by Paul Verrall -
Hi Andre,

There are a few capabilities (permissions) you can remove from the 'authenticated users' role that should get you to where you want to be,

Take a look at restricting,

  • moodle/user:changeownpassword
  • moodle/user:editownprofile

Here a few links to the docs to help give you some background,

https://docs.moodle.org/29/en/Creating_custom_roles

https://docs.moodle.org/29/en/Permissions

The exact steps I would follow would be,

  • Site Administration > Users > Permissions > Define Roles
  • Edit the 'Authenticated user' (click the little cog)
  • Scroll down to the filter box above the capabilities list and filter for the permissions mentioned above.
  • Un-tick the allow box and save changes.

Paul.

Average of ratings:Useful (2)
In reply to Paul Verrall

Re: Edit Profile Moodle 2.9

by Andre Paz Leal -

Paul thanks, well I am with a little apprehension of changing those capabilities cause I have a few webservices that use those persmissions, so changing that may affected that webservice user, I dont know. But I´ve changed only the student capabilities and nothing happened, maybe because there is other option on my setup that says that every user loged must be treated as a authenticated user.

In reply to Andre Paz Leal

Re: Edit Profile Moodle 2.9

by Paul Verrall -

Hi Andre,

You should *ideally* have a separate role for your webservice user to which you can explicitly allow those permissions. The result would be something like this when you check the capability overview....

capabilities overview

In reply to Paul Verrall

Re: Edit Profile Moodle 2.9

by Andre Paz Leal -

Thanks again Paul, yes I have all set as you explain, but the fact is, as I treat every user as an authenticated user still do not work, maybe some other setting is confliting, the student "aluno" cannot change the password, email, or any attributes on his profile. This is how I set to prohibit:


In reply to Paul Verrall

Re: Edit Profile Moodle 2.9

by Andre Paz Leal -

Ok, I did it it not the way that I want, I would like to only let the user change at least it´s picture, but changing the option updateprofile did what I want: