Recently, while working on a Send Birthday Wishes flow for a client, I needed to retrieve employee birthdays from Office 365 and check if today was someone’s birthday. However, when I ran the flow, it didn’t match anyone’s birthday because none of the employees had a birthday that day. That’s when I thought, why not update the birthday date in Office 365?
After some research, I found two ways to update my birthday in Office 365 using Power Automate:
- Using the Update my profile action
- Using the Send an HTTP request to SharePoint action
But why stop at birthdays? In this tutorial, I will show you how to update the birthday date and any user profile data in Office 365 using Power Automate and cover how to update other user profiles using Power Automate.
Update User Profile Data in Office 365 Using Power Automate
As I told you above, we will use those two actions to update User Profile Data in Office 365 Using Power Automate:
- Using the Update my profile action: This is the easiest way to update your own profile information in Office 365 Users.
- Using the Send an HTTP request to SharePoint action: This method allows you to update not only your own profile but also other users’ profiles.
Update User Profile Data in Office 365 Using Update My Profile Action
The Update My Profile action in Power Automate lets you update your own Microsoft 365 profile information, such as your job title, phone number, or office location. It’s useful if you want to keep your profile up to date automatically based on changes in other systems, like a SharePoint list or an HR database.
With the Update My Profile action in Power Automate, you can only update specific fields in your Microsoft 365 profile. These fields include:
- About Me (a short bio about yourself)
- Birthday (your date of birth)
- Interests (hobbies or topics of interest)
- My Site (your personal site URL)
- Past Projects (projects you’ve worked on)
- Schools (educational background)
- Skills (your professional skills)
You cannot update fields like your name, job title, email, or manager details using this action.

Let’s see with an example:
Suppose you want to update your birth date to today’s date and add more skills. Now, let’s see how to update it by following the steps below:
1. Open Power Automate and create a new flow. Choose Instant Cloud flow and select Manually trigger a flow trigger.

2. Add Get my profile (V2) action from the Office 365 Users connector. To check the previous information before making changes.

3. Then add the Update My Profile and provide the below parameters:
From the Advanced parameter, select the Birth Date and Skills:
- Birth Date: Provide the below expression:
formatDateTime(utcNow(), 'yyyy-MM-ddTHH:mm:ssZ')
- Skills: Add the skills like the screenshot below.

Click on the Save button and Test the flow manually. After the flow runs successfully, click the Get My Profile action, where you can see the previous value.

As you can see, my birthday is 2025-03-18, which was yesterday. To check if the update action is updated correctly, you can create or edit a new flow.
In my case, I edited the flow, then removed the update my profile action and added two compose actions. I added my birthday in the first compose action, and in the second compose action, I added skill from dynamic content.

Now save the flow and run it again, then check the compose action output to see if the birthday and skill are updated.

Update User Profile Data in Office 365 Using Send an HTTP request to SharePoint Action
We can update your profile and other user data by Send an HTTP request to SharePoint. I will tell you only minor changes.
I need to update my Job Title in Office 365 using Power Automate for this example.
Now let’s see how to do:
1. Open Power Automate and create a new flow. Choose Instant Cloud flow and select Manually trigger a flow trigger.

2. Add Get my profile (V2) action from the Office 365 Users connector. Check the previous job title.
3. Add the Send an HTTP request to SharePoint action to update the user’s profile property and provide the below parameters:
- Site Address: Select the SharePoint Site Address
- Method: Select POST as the method
- URI: Provide the below URI:
_api/SP.UserProfiles.PeopleManager/SetSingleValueProfileProperty
- Header: Use the below headers to make REST API calls to SharePoint:
{
"Accept": "application/json;odata=verbose",
"Content-Type": "application/json;odata=verbose"
}
- Body: Provide the below:
{
"accountName": "i:0#.f|membership|user@yourdomain.com",
"propertyName": "SPS-JobTitle",
"propertyValue": "Senior Developer"
}

Now, Save the flow and run it manually. After the flow runs successfully, click the Get My Profile action to see the previous value of the job title.

NOTE:
Sometimes may be the flow is not working properly (keeps running continuously) or gives any error, then we need to enable one option from the SharePoint Admin center.
Follow the instructions below if the same case happens with you.
As you can see, the job title is Product Manager. You can create a new flow to check if the update action is updated correctly. After the flow runs successfully, if it is not changed, just wait some time.
If you want to change the user profile data for another user in the Send an HTTP request to SharePoint action, change the site address:
https://tenant-admin.sharepoint.com/
Then, in the body section, change the account name.
[Error] Action ‘Send_an_HTTP_request_to_SharePoint’ failed: BadGateway in Power Automate
I hope you face the same error. Action ‘Send_an_HTTP_request_to_SharePoint’ failed: BadGateway.

We face this error because If the SharePoint field you’re trying to update has the setting “Allow users to edit values for this property” unchecked, then only users with the Manage Profile permission can modify it. Power Automate may not have the necessary permissions to update this field, causing the BadGateway (502) error.
[Solved] Action ‘Send_an_HTTP_request_to_SharePoint’ failed: BadGateway in Power Automate
To solve this error, follow the below steps:
Go to SharePoint Admin Center. Navigate to User Profiles > Manage User Properties. Find the property you’re trying to update. Edit the property and check “Allow users to edit values for this property.” Save the changes and try running the flow again.

I hope your flow is running successfully. If you’re still facing the error, just check the name of that property in the Property Settings. To check this:
Go to SharePoint Admin Center. Navigate to User Profiles > Manage User Properties. Find the property you’re trying to update. At the top, you can find the name.

Conclusion
In this tutorial, I showed you how to update user profile data in Office 365 using Power Automate. We explored two methods: the Update My Profile action, which allows you to update specific fields like birthdays, skills, and interests for your own profile, and the Send an HTTP request to SharePoint action, which enables updating job titles and other profile properties for any user.
I also covered the BadGateway (502) error, which occurs when user profile properties are not editable, and provided steps to resolve it by modifying settings in the SharePoint Admin Center.
Also, you may like some more Power Automate tutorials:
- Get Manager Details in Power Automate
- Check If SharePoint List Column Equals in Power Automate
- Send Birthday Wishes Using Power Automate
- Power Automate Get Display Name From Email
- Send an Email with @mention in Power Automate

Hey! I’m Bijay Kumar, founder of SPGuides.com and a Microsoft Business Applications MVP (Power Automate, Power Apps). I launched this site in 2020 because I truly enjoy working with SharePoint, Power Platform, and SharePoint Framework (SPFx), and wanted to share that passion through step-by-step tutorials, guides, and training videos. My mission is to help you learn these technologies so you can utilize SharePoint, enhance productivity, and potentially build business solutions along the way.