Authenticate to SharePoint admin center using key vault certificate

Apoorva P 1 Reputation point
2019-11-28T17:12:19.91+00:00

I have configured Azure key vault with certification and also registered app in AAD and given SharePoint permissions, am trying to authenticate to SharePoint online admin center it throws error as 401 unauthorized.

I have followed below approach as described in below blog
https://mmsharepoint.wordpress.com/2019/01/11/secure-azure-functions-part-2-handle-certificates-with-azure-keyvault-when-accessing-sharepoint-online/

I am able to connect to SharePoint online site collections(using csom code as described in article), the same approach am trying to connect to SharePoint online admin center but with no success as it says 401 unauthorized.

Do we need to add any additional permissions in order to coonect to SP online tenant?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,437 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. soumi-MSFT 11,716 Reputation points Microsoft Employee
    2019-11-28T19:13:44.61+00:00

    @Apoorva P , can you please share the detailed steps or if you are following any documentation to get this setup done with us so that its easier for us to help you fix this.

    Are you trying to connect to Sharepoint Online using Service Principal and Certificate?

    Please do help us with some more insights to help you better.