question

KMKTNN-8031 avatar image
0 Votes"
KMKTNN-8031 asked KMKTNN-8031 answered

Graph - How to add properties on profile card?

We tried to add the 'PostalCode' property in the profile card in our tenant using the profile card API in MS Graph. It seems to work properly in the Graph Explorer but 24 hours later we don't see the 'PostalCode' on the profile card. https://docs.microsoft.com/en-us/graph/add-properties-profilecard

190886-graph-profilecard.png

This person had the same problem:
https://docs.microsoft.com/en-us/answers/questions/364670/graph-api-create-profilecardproperty-not-showing-o.html

Would you be able to help us?


microsoft-graph-profile
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Sheena-MSFT avatar image
0 Votes"
Sheena-MSFT answered

Hi @KMKTNN-8031,

I would like to share possible scenario to check why attributes that are added via Graph are not displaying in the profile card.


  • If you are trying to make additional attributes to add in profile card, please check whether anyone of the user in your tenant have value in there user profile through Azure AD. Please find the below screen shot.

190950-profile-2.png



  • Could you please try this endpoint https://graph.microsoft.com/beta/users/{UPN/user id} in Graph Explorer and search for the
    onPremisesExtensionAttributes attribute in the response for anyone of your user to check whether you have value for your customAttribute2. Please find the screenshot below
    190989-profile1.png


  • If values are there in the back end user profile then we want to check from which o365 app your are trying check the updated profile card.

Note: Profile card on which customization is allowed is currently only available for web apps such as Outlook Web App, OneDrive SharePoint, Office.com. Added Custom attributes wont be visible in Outlook Clients as this change is limited to only web client experiences for now.

  • According to this documentation for cloud only user we have to set these attributes on the creation and update operation of users entity. If a cloud-only user was previously synced from on-premises Active Directory, these properties cannot be managed via the Microsoft Graph API. Instead, they can be managed through the Exchange Admin Center or the Exchange Online V2 module in PowerShell ----custom attributes

Note: APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported

If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.



profile-2.png (73.9 KiB)
profile1.png (82.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

KMKTNN-8031 avatar image
0 Votes"
KMKTNN-8031 answered KMKTNN-8031 edited

Thank you for your reply.

I can see the PostalCode in Graph:

191317-image.png

But I don't see it the Profile Card of People Search in M365.


image.png (5.4 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

May I know from which o365 app you are checking the updated profile card.

0 Votes 0 ·

I'm using the People search in Microsoft 365. https://www.office.com/search/people?auth=2

I made some new discoveries.

The PostalCode has shown to one of the users because the city was not empty.

Then when I added the city to another user, the city+the postal code appeared on the Profile card. Those two field cannot be empty.


192320-image.png

What is scary in the process is that it takes hours to view the changes after an update in the properties of a user (AAD).


0 Votes 0 ·
image.png (1.8 KiB)
KMKTNN-8031 avatar image
0 Votes"
KMKTNN-8031 answered
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.