bpcurse / nextcloud-userexport

PHP script to export and filter lists (users, groups and groupfolders) using different Nextcloud APIs
The Unlicense
11 stars 3 forks source link

Import users #39

Open rosa2 opened 3 years ago

rosa2 commented 3 years ago

Hello and thanks for sharing your code :)

I use and teach FLOSS. Now I have convinced a NextCloud users group in a bigger community to have their own NextCloud. I have search how to export and import those users and I arrive to here.

I think that it will be not much work to make this feature request.

Have a good coding!

bpcurse commented 3 years ago

Hello @rosa2, thank you for your feedback.

I didn't have time in the last months to continue development on this project, but I will continue working on it in the next days.

If I understand your request correctly, you would like to export a bunch of users (defined by group membership) from an existing Nextcloud installation and import them (without changes) to another Nextcloud, correct? Do you have group admin or even admin permissions on the source Nextcloud?

As you teach FLOSS, please excuse that the code is still a bit untidy, will work on it, too ;)

Note to myself (FTR): related to #25

rosa2 commented 3 years ago

Thanks a lot for your fast answer :) Yes, I have admin access to both NextCloud and I could export the users. I have found this bash script, but until the weekend I will no have time to test it. I have ssh to the servers. https://gitlab.com/snippets/1989925 I teach FLOSS to users and I know a little of programing, but not as much as you, so don't worry! XDD Your tool would be very interesting to me because when I teach, I recommend FLOSS to users, as for example NextCloud.

Have a nice coding!