{"id":18926633,"date":"2026-06-02T15:34:36","date_gmt":"2026-06-02T15:34:36","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/switch-role\/"},"modified":"2026-06-02T15:34:36","modified_gmt":"2026-06-02T15:34:36","slug":"switch-role","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/switch-role\/","title":{"rendered":"Switch role"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hi there,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Firstly, this is one of the best free plugins available, thanks for maintaining it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I have a fairly niche edge case and wanted to check whether something might be possible.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Just to be clear, the plugin itself is working correctly as designed. User Switching is successfully switching users in all normal WordPress functionality.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I use Plugin Organizer to enable\/disable functionality based on roles. After switching users, when I debug the current role it still reports the initial logged-in role rather than the switched user\u2019s role, even though the switched user is otherwise functioning correctly throughout WordPress.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Is there any way to make WordPress fully return the switched user\u2019s role everywhere, or is this simply a limitation of how User Switching works internally?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks again, really appreciate the plugin.<\/p>\n","protected":false},"template":"","class_list":["post-18926633","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18926633","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18926633\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18926633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}