Migrate user accounts to new Xwiki installation

Hi,

I was wondering if anyone new how to do this, migrate the user accounts from one Xwiki installation to a fresh new one.

In fact I’m trying to do this since a full wiki upgrade, using Docker images, from older 8.x to any newer version does not work well for me (documents and attachments go missing and other weird behavior). So I was thinking of migrating the user accounts and then just re-creating the pages.

Thanks!

You can try the Admin Tools which has an option to export all pages from a space.
Choose the XWiki space and remove manually all pages that are not users. This is a bit of work, as there are a lot of other pages in that space, but it still might be the quickest solution. A possible less cumbersome approach might be to install the extension, but edit the query which fetches all documents from the space to include only pages which have a user object associated with them. The examples in the Query Module might help with that.