Problem/Motivation

Is there away to import and export users from Drupal 8 platform to another one? Only user and there access rights! (/admin/people)

imagine we have 2 platforms of Drupal 8:
- Staging
- Live

We create the users and there access rights on staging. Later we want to create the same list on live Therefore we need to export the list from staging and import them in to live system.

Question

Is there a way to do that for example by using Drush or Drupal console? I was not able to find a way to solve this problem!

Thank you for any advice

Comments

remram created an issue. See original summary.

prasannag’s picture

Hi remram, You just have a look at Drush config commands.

For example, Just try drush config-export --help. You might get an idea on what you are expecting.

remram’s picture

Status: Active » Fixed

Hi prasannag
Thank you for your response, but I know config-export (cex). There is no option to export user to yml file.

@all: I have solved my problem with doing REST. Either you create your own view through Drupal AdminUI or you create your custom REST endpoint. I have decided for the second option. With REST you can compare your user list on both environments and synchronize them by doing POST or PATCH.

Cheers, Ramy

remram’s picture

Status: Fixed » Closed (fixed)