question

ApoorvaP-6006 avatar image
0 Votes"
ApoorvaP-6006 asked ·

Authenticate to SharePoint admin center using key vault certificate

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?

azure-active-directory
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

soumi-MSFT avatar image
0 Votes"
soumi-MSFT answered ·

@ApoorvaP-6006, 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.

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

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?

0 Votes 0 ·