Alfresco Creating a new user group that permits only creating user and groups

烈酒焚心 提交于 2019-12-20 03:15:32

问题


I want to create a new user group.

The members in this user group can create new users and new groups.

I think creating users or groups require admin permission. This user group does not have other admin permission except creating, editing and deleting user,group. Does alfresco provide this kind of group in alfresco community 4.0c? How can I implement it? How to add a new group with specified permission? I really appreciate for help.


回答1:


You could add a custom role in permissionDefinitions.xml but I don't think that would help in this instance, since the ability to create users and groups plus the other administrative actions are hard-wired to the built-in administrators role.

Instead, you could create a custom web script which performs a check to see if the current user is a member of your custom security group. Since the authenticated user may not be a repository admin (and probably isn't) then you would need to use something like this Sudo tool for Alfresco webscripts to temporarily give them permission to create the objects.

You would need to be competent in Java webscript development in order to implement this. There are some good resources on the Alfresco wiki, documentation and training materials available online.




回答2:


You cane manage that through Alfresco Share. In your Alfresco installation directory: /tomcat/webapps/alfresco/WEB-INF/classes/alfresco/model/permissionDefinitions.xml you'll find the permissionDefinitions.xml file. Through that file you can manage your custom roles for Alfresco users and groups. Here, in this WIKI you can find some hints about what you need to change to accomplish that. Hope it helps. The wiki helps here, if you need some better explanation please let me know.



来源:https://stackoverflow.com/questions/12248734/alfresco-creating-a-new-user-group-that-permits-only-creating-user-and-groups

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!