- Published on
Update User Profile Using Power Automate and Forms
- Authors
- Name
- Nicolas Kheirallah
Create a form under https://forms.office.com/Pages/DesignPageV2.aspx
Add the field or the fields you want to update in the form, Im going to update about me field
Save the form
Create a new flow under Power automate, this will be an automated flow https://make.powerautomate.com/
Select: "When a new response is submitted" as the trigger
Add a new step and select: "Get Response Details"
Single value Property
| Name | Value |
| ------------ | ------------------------------------------------------------------ |
| Site Address | https://yourTenant.sharepoint.com/sites/yourSite |
| Method | POST |
| Uri | /\_api/SP.UserProfiles.PeopleManager/SetSingleValueProfileProperty |
| Headers | Accept: application/json; odata=nometadata |
| Headers | content-type: application/json; odata=nometadata |
| Body |
{
"accountName": "i:0#.f|membership|UsersEmailFromForm",
"propertyName": "AboutMe",
"propertyValue": "YourFieldFromForms"
}
Multi value Property
| Name | Value |
| ------------ | ------------------------------------------------------------------ |
| Site Address | https://yourTenant.sharepoint.com/sites/yourSite |
| Method | POST |
| Uri | /\_api/SP.UserProfiles.PeopleManager/SetMultiValuedProfileProperty |
| Headers | Accept: application/json; odata=nometadata |
| Headers | content-type: application/json; odata=nometadata |
| Body | |
{
"accountName": "i:0#.f|membership|UsersEmailFromForm",
"propertyName": "OnePiece",
"propertyValue": ["Luffy", "Zoro", "Nami", "Usopp", "Robin"]
}