Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transfer users local to users ldap #205

Open
wixaw opened this issue Mar 9, 2018 · 8 comments
Open

Transfer users local to users ldap #205

wixaw opened this issue Mar 9, 2018 · 8 comments

Comments

@wixaw
Copy link

wixaw commented Mar 9, 2018

Hi
I wish migrate users local to users ldap. But if user exist, a new user is created with firstname.name_1234 id.
How can I transfer our users ?

Thank you in advance

@wixaw wixaw changed the title Transfer user local to user ldap Transfer users local to users ldap May 22, 2018
@wixaw
Copy link
Author

wixaw commented May 22, 2018

Any idea please ?

@PVince81
Copy link
Contributor

Create a new user in LDAP and sync the user with "occ user:sync", then use the "occ files:transfer-ownership" command to migrate the files to the new account.

Note that not everything will be migrated by this command.

There is currently no support for converting user accounts directly between backends. I heard some discussion about this lately but not sure if there are tickets for that yet @butonic

@wixaw
Copy link
Author

wixaw commented Jul 17, 2018

Thank's @PVince81
We have a special use of local user, they only have access to the files shared with them.
Does the "occ files:transfer-ownership" command also synchronize the shares?

Thanks

@PVince81
Copy link
Contributor

the "occ files:transfer-ownership" also transfers outgoing user shares and public link shares. Not incoming shares.

@wixaw
Copy link
Author

wixaw commented Nov 5, 2018

Hello,
I'm working on this migration again. I have owncloud 10.0.10 in production.
When you say "Not incoming shares" you mean: not what is in the oc_share table with the share_with attribute?
If so, it's a shame, it's exactly the function I need

@troyrollo
Copy link

I have managed to transfer most of my user accounts into an LDAP server using the attached script. Use at your own risk and make sure you have backups

owncloud-to-ldap.txt

@wixaw
Copy link
Author

wixaw commented Oct 4, 2021

thank you so much @troyrollo
what versions of oc and ldap plugin did you do this with? in case the tables are not the same

@troyrollo
Copy link

10.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants