Share via

Graph API to fetch the App Information like appId along with different app Secret's expiry date

Shylendri Sundaradhas 1 Reputation point
2021-08-06T05:27:17.45+00:00

Currently the below graph API which provides application details requires permission like 'Application.Read.All', Directory.AccessAsUser.All’

https://graph.microsoft.com/v1.0/applications/{appId}

Considering the privacy constraint, providing these permission doesn't fit to our requirement.

As per the conversation, requesting for an API that provides registered application details including appId along with different app Secret's expiry date with the minimal permission

Reference Support Ticket raised on the same issue: - 2105030060002358
Reference Microsoft Doc - https://learn.microsoft.com/en-us/graph/api/application-list?view=graph-rest-1.0&tabs=http

Microsoft Security | Microsoft Graph

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 46,456 Reputation points
    2021-08-09T09:34:30.297+00:00

    You must grant the corresponding api permission for your MS graph api endpoint, otherwise you will receive a 403 error. As you can see, we have set corresponding permissions for each api endpoint. These permissions are arranged from low to high, you only need to grant one of them to your application. You cannot call the api and get the correct response without granting the corresponding permissions.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.