{"id":255,"date":"2019-01-11T15:02:54","date_gmt":"2019-01-11T09:02:54","guid":{"rendered":"https:\/\/codexpert.io\/?p=255"},"modified":"2024-10-08T15:08:57","modified_gmt":"2024-10-08T09:08:57","slug":"how-to-migrate-users-from-one-site-to-another-share-logins-pro","status":"publish","type":"post","link":"https:\/\/codexpert.io\/blog\/how-to-migrate-users-from-one-site-to-another-share-logins-pro\/","title":{"rendered":"How to migrate users from one site to another &#8211; Share Logins Pro"},"content":{"rendered":"<div class='cx-content-before'><\/div><p>So, you installed <a href=\"https:\/\/codexpert.io\/share-logins\/\" target=\"_blank\" rel=\"noopener\">Share Logins Pro<\/a> on your site and it works as expected. When a new user creates his\/her account on a site, it&#8217;s automatically creating an account for that user on other sites. Awesome!<\/p>\n<h2 id=\"cx-heading-1\">What about your existing users?<\/h2>\n<p>Say, you have 2 sites <em>https:\/\/foobar.com<\/em> and <em>https:\/\/barfoo.com<\/em>. When a user, John registers his account in <em>https:\/\/foobar.com<\/em>, he gets his account created in <em>https:\/\/barfoo.com<\/em> as well. That&#8217;s what it should do.<\/p>\n<p>But, if you already have some user accounts that were registered\/created before <a href=\"https:\/\/codexpert.io\/share-logins\/\"><strong>Share Logins Pro<\/strong><\/a> was installed? We gave a thought about it and asked our development team to integrate this feature so you (site owner) can export users from one of your sites and import them in other ones.<\/p>\n<p>And they did it!<\/p>\n<h2 id=\"cx-heading-2\">You can now migrate your users!<\/h2>\n<p><img decoding=\"async\" title=\"Migrate User with Share Logins\" src=\"https:\/\/codexpert.io\/wp-content\/uploads\/elementor\/thumbs\/Migrate-User-with-Share-Logins-pm6x79k8g34nwvebj4eq5coam896f9r99anc8l8nwg.jpg\" alt=\"Migrate User with Share Logins\" \/><\/p>\n<p>I&#8217;m going to show you how you can migrate users from one site to another.<\/p>\n<h2 id=\"cx-heading-3\">1. Update Share Logins Pro to the latest version<\/h2>\n<p>Go to <a href=\"https:\/\/my.pluggable.io\" target=\"_blank\" rel=\"noopener\">codexpert dashboard<\/a> and download the latest version of the plugin.<\/p>\n<p>Deactivate and remove the existing <strong>Share Logins Pro<\/strong>, and install the downloaded one.<\/p>\n<h2 id=\"cx-heading-4\">2. Export Users from a site<\/h2>\n<p>Go to <strong>Migrate Users<\/strong> under <strong>Share Logins <\/strong>from wp-admin dashboard of your site. You&#8217;ll find some optional input fields while exporting your users.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/codexpert.io\/wp-content\/uploads\/2019\/01\/exportUsers.png\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" srcset=\"https:\/\/codexpert.io\/wp-content\/uploads\/2019\/01\/exportUsers.png 1694w, https:\/\/codexpert.io\/wp-content\/uploads\/2019\/01\/exportUsers-768x199.png 768w, https:\/\/codexpert.io\/wp-content\/uploads\/2019\/01\/exportUsers-1536x398.png 1536w\" alt=\"\" width=\"800\" height=\"207\" \/><\/p>\n<p><strong>1. Exclude Users:<\/strong> If you want to exclude some of your users from the export, please input their ID&#8217;s in this field. You need to separate ID&#8217;s with a comma delimiter.<\/p>\n<p><strong style=\"color: var( --e-global-color-text ); font-family: var( --e-global-typography-text-font-family ), Sans-serif;\">2. Meta Fields: <\/strong>You can choose one or more metadata from this field. For example, if you choose <em style=\"color: var( --e-global-color-text ); font-family: var( --e-global-typography-text-font-family ), Sans-serif; font-weight: var( --e-global-typography-text-font-weight );\">nickname<\/em>, <em style=\"color: var( --e-global-color-text ); font-family: var( --e-global-typography-text-font-family ), Sans-serif; font-weight: var( --e-global-typography-text-font-weight );\">first_name,<\/em> and <em style=\"color: var( --e-global-color-text ); font-family: var( --e-global-typography-text-font-family ), Sans-serif; font-weight: var( --e-global-typography-text-font-weight );\">last_name, <\/em>the export file will contain these selected data for every user.<\/p>\n<p>Click the <strong>Export Users<\/strong> button and save the exported file.<\/p>\n<p>Please note, the Share Logins migrate user feature does not carry over passwords.<\/p>\n<h2 id=\"cx-heading-5\">3. Import Users to another site<\/h2>\n<p>Go to <strong>Migrate Users<\/strong> under <strong>Share Logins<\/strong> in another site and click on I<strong>mport Users<\/strong> tab.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/codexpert.io\/wp-content\/uploads\/2019\/01\/importUsers.png\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" srcset=\"https:\/\/codexpert.io\/wp-content\/uploads\/2019\/01\/importUsers.png 1687w, https:\/\/codexpert.io\/wp-content\/uploads\/2019\/01\/importUsers-768x171.png 768w, https:\/\/codexpert.io\/wp-content\/uploads\/2019\/01\/importUsers-1536x341.png 1536w\" alt=\"\" width=\"800\" height=\"178\" \/><\/p>\n<p><strong>1. Choose File: <\/strong>Choose the file that you exported from your previous site. This file should have <em>.cx<\/em> extension.<\/p>\n<p><strong>2. Update Users:<\/strong> If there is a user in both the exported file and in this site, should it update the user data? Check this if you want to update.<\/p>\n<p><strong>3. Remove Existing Roles: <\/strong>If there is a matching user (explained in #2), should it remove the user&#8217;s existing roles and keep only the new ones from the exported file? Check this if you want to remove existing roles.<br \/>\n<strong>Note:<\/strong> We don&#8217;t recommend to remove existing roles as it may arise complexities.<\/p>\n<p>Click <strong>Import Users<\/strong> and it should import all the users from your first site to this one.<\/p>\n<p>If you face any issues migrating your users, please don&#8217;t hesitate to let us know. We&#8217;re here to help you!<\/p>\n<div class='cx-content-after'><\/div>","protected":false},"excerpt":{"rendered":"<p>So, you installed Share Logins Pro on your site and it works as expected. When a new user creates his\/her account on a site, it&#8217;s automatically creating an account for that user on other sites. Awesome! What about your existing users? Say, you have 2 sites https:\/\/foobar.com and https:\/\/barfoo.com. When a user, John registers his [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4157,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[355],"tags":[20],"class_list":["post-255","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wp-user-management","tag-share-logins"],"_links":{"self":[{"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/posts\/255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/comments?post=255"}],"version-history":[{"count":1,"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/posts\/255\/revisions"}],"predecessor-version":[{"id":28641,"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/posts\/255\/revisions\/28641"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/media\/4157"}],"wp:attachment":[{"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/media?parent=255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/categories?post=255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codexpert.io\/blog\/wp-json\/wp\/v2\/tags?post=255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}