So I'm quite confused about this "Edit anyone's value for the field" permission. So if some role has this permissions, they should have a permission to edit someone's field, right? But how do I grant the user with this permission access to the form where they can change the field of other user.

Thanks in advance.

Comments

David_Rothstein’s picture

They need access to edit whatever the field is attached to also.

In the case of fields attached to users, that would be the "administer users" permission (at least with Drupal core alone), although be careful since that is a high-level administrative permission that should only be given to trusted roles.

ifish’s picture

Hoping that you might know this, is there anything out there to give specific roles access to user edit section and give permission to view specific fields only, because "adminster users" is quite too much.

thanks.

David_Rothstein’s picture

Not offhand... you could use something like https://drupal.org/project/edit_profile or https://drupal.org/project/profile2 to make the fields editable on a separate tab from all the other user account stuff (but you'd probably still need extra code to actually grant the lower-level users access to the separate tab).

David_Rothstein’s picture

Actually, https://drupal.org/project/profile2 might already have those separate permissions built in, so maybe no extra code would be necessary in that case. (Not sure; it's been a long time since I've used that module.) But in this case the fields wouldn't even be attached directly to the user object anymore, so it's a totally different kind of solution.

ifish’s picture

Profile 2 seems to be the ultimate solution for this :P Thanks for helping out!

mariacha1’s picture

Status: Active » Closed (works as designed)