[development] [support] Administer a subset of users

sivaji j.g sivaji2009 at gmail.com
Wed Sep 1 10:04:57 UTC 2010


Hi,

I am developing a smart school site where one of the user roles is
"collage". Users belongs to this role need to be allowed to administer a
subset of users "students" in the site. The subset of users can be the users
in OG group. The group admin need to be allowed to create, edit, block and
delete users in the group context.

I managed to achieve this by granting "administer users" permission to role
"college" and with a custom module i altered the access callback for item
'user/%user/delete' and 'user/%user_category/edit' (to prevent admin from
one group, editing or deleting the students account on other group). I guess
this will have a potential security problem in future, would like to know if
there is any module/ workaround/ hack to achieve this requirement in drupal
way.

Any help will be greatly appreciated. Thanks in advance.

-- 
Sivaji
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20100901/5aad1f5b/attachment.html 


More information about the development mailing list