Introduction
- In this article, we will learn how can we perform SharePoint app-only authentication in Power Automate.
- Here in this article, we will get users from the SharePoint group through SharePoint app-only authentication in Power Automate.
- SharePoint App-Only is older, but it is useful in many scenarios.
First, we will learn how to create a SharePoint App for authentication.
How to create a SharePoint App
Step 1. Navigate to your site collection and then open the appregnew.aspx page.
https://{tenant name}.sharepoint.com/_layouts/15/appregnew.aspx
Step 2. On this page, click on the Generate button to generate a client ID and client secret.

Step 3. Store the retrieved information (client ID and client secret). We will need this in the next steps.
Step 4. In the Title field, type the name of the App. For App Domain type www.localhost.com and to Redirect URI, type https://www.localhost.com.

Step 5. Now click on the Create button.
Step 6. Now we need to grant permission to the newly created app. To grant permission, go to the app in.aspx page of your site.
https://{tenant name}.sharepoint.com/_layouts/15/appinv.aspx
Step 7. Once the page is loaded, add the client ID in the App Id field and click on the Lookup button.

Step 8. On clicking the Lookup button, it will fill in other information like Title, App Domain, and Redirect URL.

Step 9. Now in a Permission Request XML, enter the below XML.
<AppPermissionRequests AllowAppOnlyPolicy="true">
<AppPermissionRequest Scope="http://sharepoint/content/sitecollection" Right="FullControl" />
</AppPermissionRequests>
Step 10. Now click on the Create button. When you click on the Create button, it will redirect to a permission consent dialog. Press Trust It to grant the permissions.

Step 11. Now our SharePoint app is ready, so let’s move to the Power Automate.
How to use this Client ID and Client Secret in Power Automate?
Step 1. We will use the HTTP request action of Power Automate, which requires a premium license.







Vinay AyinapurapuPosted Jan 20, 2022, 10:27 PM
Excellent article Sanjay. You nailed it.
vishwanth reddyPosted Jul 21, 2021, 1:29 PM
Can we create the app with other than Right=FullControl ?? What are the other permission levels?