Azure SDK limitation while fetching app registrations. #11817
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Graph
Mgmt
This issue is related to a management-plane library.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
Workflow: This issue is responsible by Azure service team.
Our requirement is to list all the registered applications for a tenant. The response should also contain information about the owners of the application.
To do so, we currently had to resort to calling Graph REST API natively instead of using Python SDK API.
The Graph REST API allows us to pass 'expand' parameter OData query parameters while calling API. So by calling,
GET /applications?$expand=Owners
we are effectively able to expand and join ‘Owners’ information with ‘application’.
The 'expand' parameter allows us to get owners of the application within the same API call. Without this we have to make one more API call to get owner for each application (once we have the list of applications from first API call) which is very time consuming.
However no such provision to pass ‘expand’ parameter exists in equivalent method in Python SDK. The API we would like to use is this one.
Strangely many other SDK methods for other Azure resources do provide provision for passing expand parameter but is missing from ‘list applications’.
The text was updated successfully, but these errors were encountered: