如何创建仅用于管理用户的Plone 4组? [英] How to create a Plone 4 group who's sole purpose is to manage users?

查看:76
本文介绍了如何创建仅用于管理用户的Plone 4组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试建立一个纯粹负责创建和修改用户的Plone组(Plone 4.0.7).我不希望他们具有对站点的完全管理员访问权限,而仅具有Users and Groups功能.

I'm trying to set up a Plone group (Plone 4.0.7) that will be responsible purely for creating and amending users. I don't want them to have full admin access to the site, purely to the Users and Groups functionality.

我已经在my.package/profiles/default/rolemap.xml中创建了一个角色,如下所示:

I have created a role in my.package/profiles/default/rolemap.xml like so:

<role name="Maintain Users" /> 

,然后添加权限:

<permission name="Manage users" acquire="false">
    <role name="Maintain Users" />
    <role name="Manager" />
</permission>

my.package/setuphandlers.py中,我添加了一个使用以下角色的新组:

In my.package/setuphandlers.py I have added a new group that uses the role:

groups = {
    ....
    'Service Desk': ['Maintain Users', 'Member'],
    ....
}

我能够将用户添加到新创建的Service Desk组中,因此我确信它可以正常工作,但是我没有得到的是该组中的用户能够维护用户的能力.

I am able to add users to my newly created Service Desk group, so I'm confident that works, but what I'm not getting is the ability for users in that group to be able to Maintain Users.

我天真地希望他们一旦登录,菜单上就会有一个选项(类似于站点设置").

I naively expected there to be an option on the menu (similar to 'Site Setup') once they had logged in, this is not the case.

要实现此目标,我还需要采取哪些其他步骤?

What additional steps do I need to take to be able to achieve this?

推荐答案

您必须将这2个权限授予您的自定义角色:

You have to grant these 2 permissions to your custom role:

  • Plone Site Setup: Overview(用于菜单条目和对控制面板的访问)
  • Plone Site Setup: Users and Groups(用于管理用户和组的权限)
  • Plone Site Setup: Overview (for the menu entry and the access to the control panel)
  • Plone Site Setup: Users and Groups (for the permission to manage users and groups)

这篇关于如何创建仅用于管理用户的Plone 4组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆