classes/rest/unified.php [645:652]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public function add_member_to_group($groupobjectid, $memberobjectid) {
        $endpoint = '/groups/'.$groupobjectid.'/members/$ref';
        $data = [
            '@odata.id' => $this->get_apiuri().'/v1.0/directoryObjects/'.$memberobjectid
        ];
        $response = $this->betaapicall('post', $endpoint, json_encode($data));
        return ($response === '') ? true : $response;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



classes/rest/unified.php [661:668]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public function add_owner_to_group($groupobjectid, $memberobjectid) {
        $endpoint = '/groups/'.$groupobjectid.'/owners/$ref';
        $data = [
            '@odata.id' => $this->get_apiuri().'/v1.0/users/'.$memberobjectid
        ];
        $response = $this->betaapicall('post', $endpoint, json_encode($data));
        return ($response === '') ? true : $response;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



