SharePoint Profilecard with Custom Attributes

Praveen Mandalapu 1 Reputation point
2022-05-24T15:16:17.25+00:00

We have added 4 new custom attributes to the user profile and wanted them to show on the Profile Card of SharePoint but not working.
Using Graph Explorer following the article (https://learn.microsoft.com/en-us/graph/add-properties-profilecard) shows success but not seeing results.
Any thoughts would be highly appreciated.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,768 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,645 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,682 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Sheena-MSFT 1,731 Reputation points
    2022-05-24T16:00:15.8+00:00

    Hi @Praveen Mandalapu ,

    Please find the below information's

    • When adding an attribute to profile card, it takes up to 24 hours for the addition to be displayed.
    • 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. 205147-190950-profile-2.png
    • If you are trying to add custom attribute, 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 205137-190989-profile1.png
    • 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
    • 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.

    0 comments No comments

  2. Praveen Mandalapu 1 Reputation point
    2022-05-25T21:08:19.837+00:00

    Thanks @Sheena-MSFT .

    Any thoughts on why its not working for the below steps i have followed to see the custom attributes especially on SharePoint Online Profile Card which is web based -

    Ref articles i have followed :
    https://www.sharepointpals.com/post/customizing-the-profile-cards-using-microsoft-graph/
    https://learn.microsoft.com/en-us/graph/add-properties-profilecard

    Steps:

    1. We have added 4 custom attributes in AD which is in Sync with User profile of every user in SPO as below -
      i) Personal Mobile
      ii) Team Name
      iii) Mail Code
      iv) Secondary SDN
    2. The above 4 custom attributes does have values and am able to run a GET end point to confirm the same via Graph Explorer,
    3. And then i ran POST with 1st attribute which shows 200 - Ok Success response and gave more than 24 hours to propagate but still not seeing any results.
      END Point URL: https://graph.microsoft.com/beta/organization/orgid/settings/profileCardProperties
      Request Body:{"directoryPropertyName": "personalMobile"}

    Anything missing here or i know its in Preview and MS doesn't have full support yet but at-least this should work. Any help would be highly appreciated.