Jump to content

Recommended Posts

Posted (edited)

I think you need page-edit and user-admin permissions assigned to a user to be able to set them new granular user-admin-XXX permissions.

Edited by Ivan Gretsky
Posted

I think you need page-edit and user-admin roles assigned to a user to be able to st them new granular user-admin-XXX permissions.

From the blog post,

As of ProcessWire 2.6.10, you can now handle this easily by doing the following:

  1. Create a new permission called user-admin-all (Setup > Permission > Add New). You only have to do this once. It is an indicator to ProcessWire that you wish to support granular control for user administration.

  2. Create a new permission with the name user-admin-members (Setup > Permissions > Add New). The format is user-admin-[role], where [role] is the name of any role in your system.

  3. Assign the user-admin-members permission to your members-manager role (Access > Roles > members-manager). Now users with the members-manager role can create, edit and delete users with the members role. They can also assign the members role to users with the guest role (only), or any other users that they have permission to edit (like if you are using more user-admin-[role] permissions for other roles).

     

Posted (edited)

Yep, but to assign these new permissions you need to first assign prerequisite permissions. Hаve you managed to do it?

Edited by Ivan Gretsky
Posted

You're already highlighting it. The user needs to have the user-admin-role permission, which in turn requires page-edit and user-admin. See "user-admin" as "This role should be able to edit some users, which one I'll tell you later" permission.

Posted

I see. To assign new permission to a role

1. assign "page edit" permission to that role. Save. Then, user-admin permission will be populated on the permission list.

2 assign "user-admin" permission. Save.

3. Eventually, the new permissions will be populated on the list

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...