Robert Pearman

Results 2 comments of Robert Pearman

Work around, using Invoke-RestMethod if you query: `https://graph.microsoft.com/v1.0/domains//domainNameReferences/microsoft.graph.group` or `https://graph.microsoft.com/v1.0/domains//domainNameReferences/microsoft.graph.user` You can retrieve all results, it is not clear how to do this using Get-MgDomainNameReference as trying to filter on...

Invoke-MgGraphRequest < is the way to go. You still need to use a filtered URL, but It returns a @odata.nextLink that you can follow to loop through/paginate.