I'm using query string parameters in a Graph API request to fetch users from Azure AD, however none appear to be working when I execute it through Powershell.
Here's the documentation on the API: https://docs.microsoft.com/en-us/graph/query-parameters
Here's some details about the scenario:
- The request: https://graph.microsoft.com/v1.0/users?$top=999&$select=userPrincipalName
- Executed via Powershell using the Invoke-RestMethod command
- It seems to work when I use the Graph Explorer: https://developer.microsoft.com/en-us/graph/graph-explorer