Skip to content

Managed identity use with HTTP action and Graph API - Authorization_RequestDenied #1489

@zane33

Description

@zane33

Describe the Bug with repro steps

  1. Create a HTTP get action to Graph API
  2. Set authentication mechanism to managed identity
  3. Create graph permissions on managed identity
  4. Run HTTP action - Authorization_RequestDenied

What type of Logic App Is this happening in?

Consumption (Portal)

Which operating system are you using?

Windows

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

Workflow JSON

{
  "type": "Http",
  "inputs": {
    "uri": "https://graph.microsoft.com/v1.0/users/?$filter=onPremisesSamAccountName%20eq%20'@{variables('samAccountNameVar')}'&$count=true",
    "method": "GET",
    "headers": {
      "ConsistencyLevel": "eventual"
    },
    "authentication": {
      "type": "ManagedServiceIdentity",
      "audience": "https://graph.microsoft.com"
    }
  },
  "runAfter": {
    "Set_UPN_variable": [
      "Succeeded"
    ]
  },
  "runtimeConfiguration": {
    "contentTransfer": {
      "transferMode": "Chunked"
    }
  }
}

Screenshots or Videos

No response

Browser

Chrome

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions