Change your own profile picture as a Guest in Microsoft Teams

Published 04-06-2021 01:37 PM 2,987 Views
I love Microsoft Teams and I also love controlling my online appearance, but sadly both aren't big friends when you are a Guest in another tenant. There still isn't a good/easy way of controlling your own profile picture, which is sad because you are reduced to a not-very-personal colored circle with initials:

Fellow MVP Kazushi Kamegawa shared a method of changing your profile picture in a private forum, but it stopped working due to some UI changes in the Azure Portal. Luckily, with some more "hackery", we can still make it work!

The tl;dr version:

  1. Tenant switch to the tenant where you want to change your profile picture
  2. Figure out the ID of your user account in that tenant
  3. Open your user profile page in the Azure Portal using a direct link
  4. Edit the profile, upload a profile picture
  5. Wait for about a week to have the profile picture synced into Teams

Switch tenants

If you found this blogpost, it's probably safe to assume that you know how to switch tenants. For the purpose of this guide, it is VERY important you do this in your browser because otherwise authentication will get confused ;).

  1. Open your browser, go to and sign in with your credentials
  2. Top right of the Teams UI, switch to the tenant where you want to change the profile picture of your Guest account

Get ID of user account

I don't know of any place in the UI that shows the id of your Guest account in a tenant, so I had to find a way using the Developer Tools of Chrome/Edge.

  1. After switching to the Guest tenant, hit the F12 key to open the Developer Tools
  2. Select the Applications tab
  3. In the left part underneath Storage and  Local storage, select
  4. In the right part, do a search for ts.tenantList. It should only show one result, select it.
  5. It shows all tenants you are part of as a Guest, open up the one you are currently in. You'll need the value next to the userId property. In my screenshot, it is the GUID that starts with f35707ec-...

User profile page in Azure Portal

Now that you have your user account ID, you can open up your profile page in the Azure AD of the Guest tenant!

  1. In the same browser window, open
  2. Top right of the portal, make sure you are in the tenant where you are a Guest. Most probably that is not the case, so do a tenant switch in the Azure Portal too.
  3. In the same browser window, open up this link:<userId>. Make sure to replace <userId> with the id you copied in the previous step.
  4. You should now see your profile page in the Azure AD where you are a Guest.

Edit profile and upload picture

Finally time to upload your profile picture!

  1. Top of the profile, click the Edit button
  2. With your profile in edit mode, you can browse for a photo on your computer and upload it to your profile!

Wait and enjoy success

It takes a while for your profile picture to show in Teams, and it might even show for a short while and go away again. But if you have enough patience, after about a week or so, your profile picture should show consistently across the Teams UI both for you and for others!


Until Microsoft Teams or Microsoft 365 gives us an easier way to change our profile picture, this is the best way to do it self service. The days of the anonymous circle with initials are over, time to show your personality also in your Guest tenants!

Occasional Contributor

Yannick your a genius! 

Very cool trick - thank you for that! Just went through a gazillion of tenants to upload my profile pic - now comes the hardest part - waiting. #AintGoodAtThat

Regular Contributor

Cool that it can be done... could this be used to do devious things though?

Regular Contributor

Part 2 of my comment - is there a way to turn this off for guests in the targeted tenant? LOL

Senior Member

Nice!! Probably we can also get the user id by decoding the access token from payload oid.

You can get the User ID from a Chat message in the URL. @Chintan Upadhyay 


I highlighted the ID in this screenshot:




@Luise Freese Well, that's certainly easier than my Developer Tools method (I guess it shows that I'm a developer :grinning_face_with_sweat:)

@Timothy Balk I don't see how this can be used to do devious things, or at least nothing more dangerous than your "internal" users could do too: upload a profile picture that's not "compliant". And no, there is no way to turn it off completely. There is a setting in "Azure AD -> User Settings -> Restrict access to Azure AD administration portal": if you turn it to "yes" most Guest users won't have access, except if they have access to some Azure resources too. Another option is to use AAD P1 Conditional Access policies to turn off guest access to Azure Portal, but that would also impact guests that do need access to Azure resources.

So in short: do you really want to take the fun out of this? Do you really want to take away the one option a guest has to "express" theirself? ;)


Regular Contributor

@Yannick Reekmans Thanks! Take the fun out of this - certainly. Preventative response until this can be monitored or something can be implemented to monitor.



Regular Contributor

** I do not work for a government agency **

I get it, don't get me wrong, but it isn't worse as with your internal users and are you monitoring their "profile picture uploads"? Or you just trust them more?

I might be too liberal in allowing Guest users privileges :D

Regular Contributor

Yep, definitely a very controlled approach when it comes to our internal users expressing themselves.


I think when it comes down to it though, the employees go through the process of accepting terms of an Acceptable Use Policy upon receiving their credentials. Maybe this could be something to be implemented prior to a guest user being allowed in the target tenant - they have to accept the tenant's AUP and then the guest account is enabled.

@Timothy Balk Since it is the same field on just another object, you can apply the same process on Guests too. Additionally, the automated approach @Luise Freese suggests can help too.

Last thing regarding your Acceptable Use Policy, did you know about "Terms of Use" ( already? It can be used for exactly this purpose.

Regular Contributor

@Yannick Reekmans @Luise Freese 


Nice! No - didn't realize that was a feature of AAD and the PnP photo analyzer is something I'll have a look at.


Community FTW!

Occasional Contributor

Nice, it will help with tenants wthat we work all the time :)

Version history
Last update:
‎Apr 07 2021 01:35 AM
Updated by: