Hello Members,
I want to connect SharePoint REST API endpoints using Service Principal not Service Accounts but Not been successful so far in Power Automate.
I've tried following the steps
Created Service Principal
Assign API Permissions for SharePoint
Grant SharePoint permissions to the Service Principal - [Not able to execute below step.
Set-SPOSite -Identity "https://[#####.sharepoint.com/sites/##]" -Owner "[App Id]@#####.onmicrosoft.com", Says - The login name was not found in the tenant.]
Once I can grant access to SharePoint, then I can proceed the next steps on Power Automate.
Add HTTP Action, Select Method as GET, configure authentication using OAuth 2.0 and further.
I know, I can achieve the same using Service Account, but it restricted for my client.
Can you please suggest if any alternative approach available.
Thanks