VIDEO – MS Flow Grant Site Collection Admin) with HTTP to REST api

Опубликовано: 28 Сентябрь 2024
на канале: SPJeff
2,528
9

Demo for how to grant SharePoint Site Collection Admin (SCA) permission to by Ensure SPUser ID number. PowerAutomate (MS Flow) provides an action step for sending HTTP POST to SharePoint with all needed authentication headers. Works better than generic HTTP POST flow action when communicating over SharePoint REST api.

SharePoint users have ID numbers we can embed in the REST URL with “getuserbyid()” to grant SCA permission. We leverage Chrome F12 "fetch()" function to run test cases, view JSON reply, and copy JSON into MS Flow "Parse JSON" step instead of classic Fiddler or Postman technique. Simpler and brings full SharePoint authentication context with "X-RequestDigest."

Cheers