Is it possible to view the users site and content as admin? Because I was helping someone and I was logged in to the network admin account but when we went to his site url, his dashboard came up and we were able to create new posts and so on.

In light of all the privacy violations going on I'd hope I couldn't get into a users account. Or at least have an option to turn that behavior off.


Yes. Yes they can. In my testing and throughout the code you see


If you weren't able to do that I think WP would not run.

  • 2
    This is wrong. switch_to_blog() doesn't make you an admin in the other site. – fuxia Jan 19 '16 at 7:42
  • 1
    Just what toscho said. switch_to_blog() has nothing to do with users and permissions, it´s used for setting the "focus" of your queries to a different blog in a multisite installation. – flomei Jan 19 '16 at 8:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.