I am currently trying to filter Azure applications based on a list of app IDs. I have the necessary setup in place, with the graph service client having "Application.ReadWrite.OwnedBy" permissions and the same client app is added as an owner to the applications I want to retrieve. I have the following code snippet that filters based on a single appId, but I want to modify it to filter based on the entire list of appIds.
Code snippet I am currently using to filter single appId details
var appIds = ["id1","id2","id3"]
var applications = await this.graphServiceClient.ApplicationsWithAppId(appIds[0]).GetAsync((requestConfiguration) => requestConfiguration.QueryParameters.Select = ["id", "appId", "displayName", "requiredResourceAccess"]);
I want to filter based on the entire appIds array
I registered one application and added "Application.ReadWrite.OwnedBy" permission of Application type to it as below:
Now, I added this as Owner to the applications that I want to retrieve:
To filter applications based on the entire
appIdsarray, you can make use of below sample code:Response: