I'm calling https://graph.microsoft.com/v1.0/appCatalogs/teamsApps to find id of my app, but I'm getting AccessDenied error.
This looks like a Graph bug because my app has all the necessary permissions to access the Teams Apps list.
The application flow description:
1. Ask for the Admin consent using https://login.microsoftonline.com/${tenantId}/adminconsent?client_id=${clientId}&redirect_uri=${redirectUrl}
2. Obtain the access token from Graph API /api/getToken?tenantId=${tenantId}&secret=${secret}
3. Use "@microsoft/microsoft-graph-client" to access /appCatalogs/teamsApps
4. Receive { "error": { "code": "Forbidden", "message": "Forbidden" } }
App permissions:
AppCatalog.Read.All
Chat.Read.All
Directory.AccessAsUser.All
Directory.Read.All
Group.Read.All
TeamsAppInstallation.ReadWriteForUser.All
TeamsAppInstallation.ReadWriteSelfForUser.All
User.Read.All
TeamsApp.Read.All