Forum Discussion

AJBerry223's avatar
AJBerry223
Former Employee
Jun 05, 2025
Solved

Approvals API only working in the default environment

I am using the beta Approvals API (approvalItem resource type - Microsoft Graph beta | Microsoft Learn) for a proof of concept and have noticed that it works great in the Personal Productivity (Default) environment, but I get 404 non found errors when trying to access approvals in other environments. I've tried adding the app registration I'm using to the environment as an S2S app with Sys Admin privileges and added the org API endpoint to the app itself but neither solved it.

Is this intended behavior?

  • I wound up using the Power Automate approvals API instead and it worked, so this is no longer necessary. Thanks for looking into it though Ayush2001​!

5 Replies

  • NoahHelp's avatar
    NoahHelp
    Iron Contributor

    First compare the approval's environment ID with the environment targeted by your Graph call and confirm the delegated user can open that approval there. A 202 only means the operation was accepted, not that the response succeeded. Since this is a beta endpoint, I'd send Microsoft the approval ID, environment ID and failed operation ID to confirm whether non-default environments are supported for this action.

  • VagAll1's avatar
    VagAll1
    Copper Contributor

    Hi,We see the same behavior. The beta Graph approvals API (/solutions/approval/approvalItems) returns 404 ApprovalItemNotFoundOrNotAccessible for approvals created in a production (non-default) environment, while the same calls work against approvals in the default environment of another tenant. In both cases the approvals are created by the Power Automate Approvals connector and are visible in Teams.

     

    @AJBerry223, Ayush2001​ could you share which "Power Automate approvals API" you used instead? Did it work for responding to and cancelling approvals created in a non-default environment?

     

    Also, has Microsoft confirmed whether this behavior is intended, and is there a supported way to respond to and cancel approvals from an external system in a non-default environment?

  • AJBerry223's avatar
    AJBerry223
    Former Employee

    I wound up using the Power Automate approvals API instead and it worked, so this is no longer necessary. Thanks for looking into it though Ayush2001​!