.. include:: /Includes.rst.txt .. _feature-1791341345: ======================== Feature: Group companies ======================== Description =========== An admin who is admin of both companies makes a company a member of another one's group with ``groupParentId`` in ``updateCompany``. Groups have one level. A group grants no role and no access: each company keeps its own roles and data. HR reads the headcount of the group with ``getCompanyGroupHeadcount``: employees who have not left, per company and department, for exactly the group companies in which the reader holds ``hr``, and how many companies were left out. With ``copyOrganisationStructure``, HR of both companies copies departments with their tree, job positions, job roles, employment types and locations from one group company into another; entries whose name exists are skipped, and a skipped department receives the copied sub-departments. Impact ====== None. .. index:: API, Database, package:adsum-core