Change WordPress user roles and capabilities › Forums › Restrict or Permit access inside WordPress – how to › Restrick backend access on main site of network
02/10/2020 at 13:31 #7056thebigbanikParticipant
Hi, I use the URE Pro version in a multisite installation. A new user will grand the role Business Manager when buying a woocommerce subscription. After he subscribes, I will create a subsite and make this user the subsite’s administrator. Can I restrict the backend access on this user role but only for the main site? For his subsite he will have access since he will be an administrator. Thanks.03/10/2020 at 11:52 #7057VladimirKeymaster
WordPress multisite grants access to users on the per site basis. Every subsite has its own user roles list and stores separately which roles are granted to which user.
Thus, user A will not have ‘Business Manager’ role access at the subsite B until you directly grant him “Business Manager” role at the subsite B.03/10/2020 at 13:06 #7058thebigbanikParticipant
Hi, thank you for the reply but I am not sure I uderstand correctly. All I need is every user who will be a subscriber, he can be an administrator of his subsite and have no access to other subsites. I will split it in steps.
MAIN SITE: Sells subscriptions (BASIC & ADVANCED)
USER A: Buys subscription BASIC (gets the BUSINESS MANAGER role)
USER B: Buys subscription ADVANCED (gets the BUSINESS MANAGER role)
At the moment users are just subscribers with the BUSINESS MANAGER role and can edit their custom page in the main site.
MAIN SITE: Creates a SITE A and makes USER A the administrator of SITE A (additional user role BASIC MANAGER)
MAIN SITE: Creates a SITE B and makes USER B the administrator of SITE B (additional user role ADVANCED MANAGER)
In conclusion, both users have the BUSINESS MANAGER ROLE and their extra role and both are administrators on each sub site. Can USER A login to SITE B? In the users list of each subsite there are only the super admin and each administrator, USER A on SITE A and USER B on SITE B. Since USER A is not listed in the SITE B user list, is it possible to login with its credentials? I don’t want that. Thanks, I hope it is not complicated.05/10/2020 at 04:47 #7066VladimirKeymaster
>>Can USER A login to SITE B?
Yes. WordPress multisite has the single users database table. User logins to the network, not to the site of the network. Then WordPress looks, what role(s) user have at the site, which he opens. Every site has own permissions. So user A will not have any permissions at the site B and may get probably ‘You do not have enough permissions’ error message when try to open wp-admin at the site B.
- You must be logged in to reply to this topic.