This video is about How you can add SharePoint group automatically using Power automate. Below are the syntax for Send HTTP request to SharePoint.
1. Create group
Api end pont:
_api/web/SiteGroups
Headers:
{
"accept": "application/json;odata=verbose",
"content-type": "application/json;odata=verbose"
}
Body:
{
"__metadata": {
"type":"SP.Group"
},
"Title": "@{triggerOutputs()?['body/Title']}",
"Description":"Use this group to grant people read permissions"
}
2. Assign Permission
Api end pont:
/_api/web/roleassignments/addroleassignment(principalid=@{body('Parse_JSON')?['d']?['Id']}, roledefid=1073741826)
Headers:
{
"accept": "application/json;odata=verbose",
"content-type": "application/json;odata=verbose"
}
Please Like, share and subscribe for more videos..