web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Updating office 365 pr...
Power Apps
Unanswered

Updating office 365 profile photo using PowerApps

(0) ShareShare
ReportReport
Posted on by

Hello All,

 

I am creating a PowerApp application for my team where I want to showcase training materials, along with team members information along with their pics. I have built in a feature on one of the screens where the person using the application can change their display pic which will then be updated across all applications in Office 365 domain i.e. Teams, Outlook, etc. To achieve this functionality, I am using the following function to showcase the user image under a image media Office365Users.UserPhoto(Office365Users.MyProfile().Id)

 

I have created a button called "Change Profile Pic". On clicking of this button, user is navigated to different page where they can upload a image stored on their system and click of save. SAVE button has following code mentioned in OnSelect -   Office365Users.UpdateMyPhoto("image/jpeg", UploadedImage1.Image); Back();

where UploadedImage1.Image is a image media which showcases the image uploaded by user from their machine. 

 

On clicking on save, everything works fine and I am navigated back to my start page BUT, the newly uploaded image doesnt showcase until and unless I refresh the app. Also the image doesnt get synced across various applications like I wanted to. Is this feature of changing "Profile Image" possible via PowerApps? If yes, what steps am I missing?

Categories:
I have the same question (0)
  • v-monli-msft Profile Picture
    on at
    Re: Updating office 365 profile photo using PowerApps

    Hi @Anonymous ,

     

    I can reproduce your issue. But I think this is just runtime issue and even if you update your profile photo from Office365 directly, it will take a refresh of the page to make the change updated.

    T1.JPG

     

    Regards,

    Mona

  • Verified answer
    v-monli-msft Profile Picture
    on at
    Re: Updating office 365 profile photo using PowerApps

    Hi @Anonymous ,

     

    Try to workaround this by using a variable in the Image property of the image control:

     

    V1

     

     

    Then set the OnStart property of the app to:

     

    Set(V1,Office365Users.UserPhoto(Office365Users.MyProfile().Id))

     

     

    And set the OnSelect property that update the photo to:

     

    Office365Users.UpdateMyPhoto("image/jpeg", UploadedImage1.Image); Set(V1,Office365Users.UserPhoto(Office365Users.MyProfile().Id));Back()

     

     

    Regards,

    Mona

  • Community Power Platform Member Profile Picture
    on at
    Re: Updating office 365 profile photo using PowerApps

    Nice, simple trick.

     

    This definitely solves the refreshing app case but even now syncing of the profile image across O365 applications is a major problem. I can't see the profile image in Teams application which I uploaded via PowerApps yesterday.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard