msgraph-sdk-dotnet icon indicating copy to clipboard operation
msgraph-sdk-dotnet copied to clipboard

Create approvals with application type permission

Open amarkezic opened this issue 3 months ago • 4 comments

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

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

amarkezic avatar Sep 11 '25 13:09 amarkezic

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 avatar Sep 11 '25 15:09 MartinM85

@MartinM85, is there a known workaround available? E.g. using a different, perhaps non-Graph API to achieve this?

skyflyer avatar Sep 11 '25 18:09 skyflyer

@skyflyer I am not aware of any workaround or other API.

MartinM85 avatar Sep 12 '25 07:09 MartinM85

Here you go: https://feedbackportal.microsoft.com/feedback/idea/8c89f993-be8f-f011-aa44-7c1e52e168a6

amarkezic avatar Sep 12 '25 09:09 amarkezic