What is the best way to split up an existing wiki?

Hello everyone,

I’m currently using XWiki as a knowledge management system for one organization.

Due to a restructuring, another organization with several departments is being added.

Both organizations use different Active Directories.

I would like to create a shared wiki (main wiki) for both organizations and all departments, and additionally set up a separate (sub)wiki for each department.

Approximately 90% of the pages in the existing wiki belong to the first organization, while about 10% are general and should later be available to both organizations and all departments (main wiki).

I’ve attached a diagram illustrating my idea:

My idea is to set up the main wiki for general pages that apply to both organizations and all departments, and then create a separate (sub)wiki for each organization or department.

Is it possible to move entire spaces, including all pages, into a subwiki without much effort?

My question is how best to implement user login, since the users come from different, separate Active Directories. It should later be possible for users/groups from Organization 1 to access subwiki pages belonging to Organization 2, and vice versa.

Thanks in advance for your help.

Regards, Stefan