web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Automating App registr...
Power Automate
Answered

Automating App registration for SPO site.selected

(0) ShareShare
ReportReport
Posted on by 239
Hi 
 
i have a requirement to automate the graph api app registration for sharepoint site.selected. we dont have option to execute powershell from our laptop hence i would like to check if it possible to automaate using power automate to perform site binding 
 
Thanks in advance
Categories:
I have the same question (0)
  • Suggested answer
    11manish Profile Picture
    3,210 on at
    If your goal is to automate the site binding for an existing App Registration using Sites.Selected, Power Automate is a viable solution by invoking the Microsoft
     
    Graph API directly.
     
    This is effectively the same operation performed by the PnP PowerShell cmdlets, but without requiring PowerShell execution.
     
    The only remaining manual (or separately automated) steps are creating the app registration, assigning the Graph Sites.Selected permission, and granting admin
     
    consent, as these cannot be fully handled by standard Power Automate actions alone.
  • Verified answer
    Vish WR Profile Picture
    3,730 on at
    .
     
    You can do this in Power Automate, u need to use an HTTP action to perform this.  I have attached the flow structure and high-level steps 
     
    If you  want, I can share the solution 
     

    High-Level Steps

    1. Register an application in Microsoft Entra ID.
    2. Add the Microsoft Graph Application permission Sites.Selected and grant Admin Consent.
    3. Obtain a Microsoft Graph access token using the Client Credentials flow.
    4. Retrieve the SharePoint Site ID using the Graph API.
    5. Call the Graph API endpoint:
      POST /sites/{site-id}/permissions
      
      to grant the application the required permission (read, write, manage, or fullcontrol) on the site.
    6. Repeat the process for additional SharePoint sites if required.
    7. Verify the permission by testing Graph or SharePoint operations using the application token.

    Power Automate Flow

     
  • Vish WR Profile Picture
    3,730 on at
     
    Sorry i have attached the wrong screenshot, but the overall approach is still correct.
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 481

#2
11manish Profile Picture

11manish 278

#3
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

Last 30 days Overall leaderboard