LogicApps SignIn fails with Sharepoint connector

Jane 1 Reputation point

When I try to connect to a SharePoint connector in LogicApps, it fails with this error -

Failed with error: 'OAuth2CertificateSharePointOnlineV2 authorization flow failed for service 'SharePoint Online Certificate V2'. MSGraph discovery endpoint https://graph.microsoft.com/v1.0/sites/root/sharepointIds/siteUrl returned status code 400 (BadRequest). Response: { "error": { "code": "BadRequest", "message": "Unable to retrieve tenant service info.", "innerError": { "date": "2020-08-25T02:28:38", "request-id": "e31d1d41-510c-4535-aa4e-3e87a44f54ee" } } }'. Please sign in again.

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
1,804 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 49,456 Reputation points Microsoft Employee

    Hi @Jane

    Looking into the exception details it looks like you are using SharePoint Online and not On-premise SharePoint. Please confirm if it is correct?
    If you are using SharePoint online, then there is no gateway needed. I was able to repro the issue if my tenant doesn't have the valid SharePoint online subscription. Please make sure your tenant has a valid SharePoint online subscription.

    To view whether your tenant has valid SharePoint subscription please navigate to https://portal.office.com/account/?ref=MeControl#subscriptions

    Click on Subscription and see whether you are able to see Sharepoint license for the logged-in user on your tenant.


    In PowerAutomate or LogicApps scenario connection is created before it is possible to know what tenant user is going to access so the only option defaults to the user’s home tenant as today. That is how it works today and there is no workaround. As of now, there is no way to access non-home tenants from PowerAutomate/LogicApps. I will reach out to my documentation team and add this in the document.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.