Defender for Cloud - user_impersonation scope

itay4 36 Reputation points

Hi, we'd like to use this API request: [link to Microsoft API]. According to the documentation, we need the scope "user_impersonation." How do we add it? through API permissions -> Azure Service Management API?
Also, can we use the client credentials flow for this?

Microsoft Defender for Cloud
Microsoft Defender for Cloud
An Azure service that provides threat protection for workloads running in Azure, on-premises, and in other clouds. Previously known as Azure Security Center and Azure Defender.
1,261 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Givary-MSFT 30,521 Reputation points Microsoft Employee

    @itay4 Thank you for reaching out to us, As I understand you are trying to call Azure Management Rest API with permissions of user_impersonation scope.

    Refer to this Stack Overflow post - where one of my colleague answered it in detailed with the screenshots.

    Let me know if you have any further questions, feel free to post back.

    Please remember to "Accept Answer" if answer helped, so that others in the community facing similar issues can easily find the solution.

    0 comments No comments