An API that connects multiple Microsoft services, enabling data access and automation across platforms
Thanks for confirming @JosephXu-MSFT . Here is a snippet of how I resolved the problem:
try {
$graph = new Graph();
$graph->setAccessToken($accessToken);
$url = '/groups?$count=true&$filter=startsWith(displayName, \''.$displayName.'\')';
$group = $graph->createRequest("GET", $url)
->execute();
} catch (\Exception $e) {
dd($e->getMessage());
}