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 / Principle ID for "Send...
Power Automate
Answered

Principle ID for "Send HTTP Request to SharePoint

(1) ShareShare
ReportReport
Posted on by 9
I would like to create a flow where; when a MS Forms response is submitted the form responder is granted Contribute permissions to a document library (entire library) on a SharePoint site.
 
I used used these tutorials - https://www.youtube.com/watch?v=m1wYjAyJ_YU&t=328s and https://www.youtube.com/watch?v=WOQINxmofjg - to create the following flow;
 
 
 
Initialize Variable
 
 
 
1st Send HTTP Request to SharePoint; SendRequestforUser
 
Set Variable
 
2nd Send HTTP Request to SharePoint
 
I get the following error whenever I run the flow:
 
 
I have tried using a Compose action instead of Initialize/Set Variable and get the same error
 
I have a feeling that the issue stems from the MS Form trigger; I am pulling the User Email from the Form and not a SharePoint Site.
 
Any help would be greatly appreciated. 
 
Thanks,
 
Categories:
I have the same question (0)
  • Verified answer
    stampcoin Profile Picture
    5,158 Super User 2026 Season 1 on at
    The error message tells that 'principleid is not valid'.
    Your typed an extra 'e' in principleid. Remove that e and try it again.
     
    addroleassignment(principalid=PrincipalID,roleDefId=RoleID)
     
  • Suggested answer
    AR-17071907-0 Profile Picture
    9 on at
    That solved it! I used principle instead of principal
     
    Thank-you for point out my error.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 816

#2
Valantis Profile Picture

Valantis 603

#3
Haque Profile Picture

Haque 566

Last 30 days Overall leaderboard