Role with membership update capabilities?

We’ve got a non-profit group using s2Member. Our membership chairman needs a login to add, edit, and promote users and their information. I’ve created a new role with just those characteristics but the only access that shows for that account is the default “open” part of our site. There is a “+New” on the left of the top bar and User underneath but those offer no access and takes the selector to the membership options page.

Our chair is slightly computer challenged, so I’d like to offer her the option to do limited work within the user base. How do I do that?

I should mention that my current attempt is using the User Role Editor.

What I’d suggest is that you do this “backwards” by cloning the administrator role and then removing any capabilities that you don’t want her to have.

That’s an interesting challenge.

I’d also try the User Role Editor first to see how far it gets me.

Let us know how it goes. :slight_smile:

Another possibility, would be having your staff use the s2Member Pro Importer to update the users. See: https://s2member.com/kb-article/importingupdating-users/

I am using the User Role Editor. I’ll start once again but from an administrator copy. I believe I started there but with the editor role. I’ll make smaller changes to see what is triggering the display of the word “users” but without access.

I’m trying to separate responsibilities which is why I don’t want to use imports from the membership chair. I use them for now while doing her work but I wouldn’t be comfortable giving her mass change capabilities.

The User Role Editor does not allow you to make a copy of Administrator. Now what?

Okay, I’ve got the Editor role with the Users added. I’ll start paring down now and let you all know what happens.

2 Likes

Okay, more than strange! I’ve cut down the grants piece by piece and the one grant I can’t remove is “edit posts”.

When I log into an account with just that and the user update capabilities, guess what still shows up? s2Member!!! So she could accidentally get into the most sensitive area possible.

To be very clear, it was the s2Member setup itself.

i added a “membership manger” role to my own s2 member with this code in a custom plugin, could also go in functions.php -

$result = add_role( 'membership_manager', 'Membership Manager', array(
'edit_users' => true,
'list_users' => true,
'create_users' => true,
'promote_users' => true,
'delete_users' => true,
));

more info here - https://isabelcastillo.com/editor-role-manage-users-wordpress

adding a multiple role plugin like below will allow you to assign multiple roles per user, so you could add member manger role to an editor etc and keep client out of admin updates etc - https://wordpress.org/plugins/multiple-roles/

sam

1 Like

Very nice, Sam! :smiley:

1 Like

my above code would also allow the membership manger role to see admin s2member menu, if this is not desired one could also use the Admin Menu Editor plugin to restrict access to specific menus in admin area -

https://wordpress.org/support/plugin/admin-menu-editor/

https://adminmenueditor.com/free-version-docs/how-to-hide-menus/

sam

1 Like

I don’t know how to thank you enough! The Admin Menu Editor is a life saver!

2 Likes

glad i could help, but the thanks should go to the authors of that plugin :wink:

note that admin menu editor plugin may still allow access to “hidden” admin menu items via direct link if they are not properly restricted via role capabilities (i have not tested that so not sure), but it can be an easier quick fix vs fine tuning user role capabilities

sam

1 Like