Technically all sites (under a multisite network) use the same database – hence when you export users you will have exported all users from all subdomains.
For the second point, you will probably need a plugin that allows you to grant different levels of access in different subdomains. There are plenty of member – user plugins available. Try to search one that supports multisite.
I hope that helps.
Thread Starter
Rodrigo
(@vejapixel)
Hello Yalcin, thanks for the reply.
Yes, I realized that all subdomains use the same database. But when I create a subdomain, the only registered user is the admin.
So although the domain and all subdomains share the same database, if the user registered in the main domain (ex. mysite.com) is on the blog.mysite.com site and wants to login, he will use the same data Access to the main site (mysite.com), or does he need to register again?
I ask because I wanted the user to have the same access for all the sites (mysite.com, blog.mysite.com, blo2.mysite.com, …), regardless of which of the sites he has registered.
I thank you.
Rodrigo
I tried this on a multisite I operate and the answer is mostly no: The user can login from any subdomain in the network but they land in the admin page of whichever domain they registered on.
So YES: The user database is shared. And NO: They cannot login to access the admin page of other subdomains.
I am not 100% sure but I’m pretty confident that you need some sort of a member/user management plugin for this purpose. I’ll keep looking into this though – this is an interesting one…
I believe I’ve found a solution: The network admin users page lists all users that have registered, regardless of which subdomain they registered from. For those you want to give access to other subdomains you need to add them to those specific domains by using the “add existing user” option on the add user page.
Thread Starter
Rodrigo
(@vejapixel)
Ok Yalcin … But the problem with this is that I have to insert one by one.
Imagine, for example, if I have 10 websites (subdomains) and 100 user accounts. So I would have to go into each of these 10 sites and add one by one of the 100 user accounts. That means I would have to do this process to register existing users 500 times. It’s a lot of work.
Could not you do it all at once, exporting and importing?
This process of exporting and importing users would only be for now while I’m creating the sites in subdomains (every subdomain created, I would import all users), because once I did that, the new subscribers I wanted them to be able to Have access to all subdomains with the same login (if they want)
For example, if you subscribe to blog3.mysite.com, your subscribers could only stay at blog2.mysite.com. But if this user accesses blog1.mysite.com, the system would automatically identify in the database (since it is the same DB) that the user (email and user) already has a registration. From there the system could ask if the user wants to use the same login of existing access or if the user wants to create a new access login.
Yalcin, I do not know if it was confusing for you, but I tried to explain it in the best way possible.
And if it is not possible what I want, then it would be a suggestion for the WP team to put into development in the next versions.
I thank you.
Rodrigo
Rodrigo, you are right: This is a manual process. However this is the only built-in functionality I could find in WP.
That’s why I suggested you probably need to search for a third party plugin for to deliver the exact functionality you need. I know WP engineers are scanning the conversations here in forums so they may have picked up the subject to review or maybe respond to you separately – I am just a user that is trying to be helpful 🙂
One more idea: I don’t know the context of your project but have you checked the official WP plugin BuddyPress? That one is a community management / engagement tool that may offer more user management options.
Thread Starter
Rodrigo
(@vejapixel)
Okay, Yalcin, thank you very much for your attention. I’ll check this plugin.