Hello Khandu Shinde,
In Microsoft Graph API, the startswith function is used to filter results based on the beginning of a string. However, the startswith function doesn't support wildcards like * in the way you might expect from other systems.
To achieve your goal of filtering AAD groups that start with "AZGRP-PRJ-", you can use the startswith function without the wildcard:
var request = _graphServiceClient.Groups
.Request()
.Filter($"startswith(displayName, 'AZGRP-PRJ-')")
.Top(pageSize);
This will return all groups whose displayName
starts with "AZGRP-PRJ-".
Unfortunately, if you need more complex wildcard patterns (like mid-string wildcards), the Graph API doesn't natively support this. You'd have to retrieve a larger set of results and then filter them further in your application logic.
I hope this helps!