Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
David_Rothstein CreditAttribution: David_Rothstein commentedThey 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.
Comment #2
ifish CreditAttribution: ifish commentedHoping 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.
Comment #3
David_Rothstein CreditAttribution: David_Rothstein commentedNot 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).
Comment #4
David_Rothstein CreditAttribution: David_Rothstein commentedActually, 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.
Comment #5
ifish CreditAttribution: ifish commentedProfile 2 seems to be the ultimate solution for this :P Thanks for helping out!
Comment #6
mariacha1 CreditAttribution: mariacha1 at ThinkShout commented