public function copy($userGroupId, $group, $copyMembers = 0)
    {
        $this->groupId = $userGroupId;
        $this->copyMembers = $copyMembers;

        $this->getLogger()->info('Creating a copy of User Group ID ' . $userGroupId);
        $response = $this->doPost('/group/' . $userGroupId . '/copy', [
            'group' => $group,
            'copyMembers' => $copyMembers
        ]);

        /** @var XiboUserGroup $userGroup */
        $userGroup = $this->hydrate($response);

        return $userGroup;
    }