Create approvals with application type permission
Is your feature request related to a problem? Please describe the problem.
Problem Description
I'm attempting to create a Microsoft Teams approval from a background service that authenticates using client credentials flow (grant_type: client_credentials) with a client secret. However, the API call is failing with an authorization error.
Current Implementation
- Authentication Method: Client Credentials Grant Type with client secret
- API Endpoint: Microsoft Graph - Create approvalItem
- Service Type: Background service (no user context)
Error Details
"Failed to authorize the client, required scope(s) or role(s) not present."
Describe the solution you'd like.
The background service should be able to create Microsoft Teams approvals programmatically without requiring user interaction or delegated permissions.
Additional context?
- The service needs to operate without user interaction
- Client credentials authentication is a requirement for our architecture
- Looking for any supported method to achieve this functionality, including alternative approaches
The endpoint you have mentioned doesn't support application permissions. If you can provide the feedback here:
https://feedbackportal.microsoft.com/feedback/forum/ebe2edae-97d1-ec11-a7b5-0022481f3c80
we can vote for it and there is a good chance that this feature will be implemented.
@MartinM85, is there a known workaround available? E.g. using a different, perhaps non-Graph API to achieve this?
@skyflyer I am not aware of any workaround or other API.
Here you go: https://feedbackportal.microsoft.com/feedback/idea/8c89f993-be8f-f011-aa44-7c1e52e168a6