public function handle_get($data)
 {
     $profile = GroupBackend::fetch_group_profile($this->params["id"]);
     $data = [];
     $data["profile"] = $profile->toExternalForm();
     $data["settings"] = GroupBackend::fetch_group_settings($profile);
     $data["permissions"] = GroupBackend::fetch_group_permissions($profile);
     $users = [];
     /** @var UserProfile $user */
     foreach (GroupBackend::fetch_group_users($profile) as $user) {
         $users[] = $user->toExternalForm();
     }
     $data["users"] = $users;
     return $data;
 }
 public function handle($data)
 {
     $profile = GroupBackend::fetch_group_profile($this->params["id"]);
     $permissions = GroupBackend::fetch_group_permissions($profile);
     return ["permissions" => $permissions];
 }