Making the Office 365 Profile Card Your Own
In Office 365 notification MC217813 (published 1 July and updated on 15 July), Microsoft announced that: “You will be able to customize profile cards according to your organization business needs. The profile card is sometimes referred to as a contact card or people card.” (Microsoft 365 roadmap item 61502).
The new functionality sounds promising. The profile or people card displays information about someone in different places in Office 365 applications. For instance, you can select an email sender or recipient in Outlook or Outlook mobile to view the details of that person. If they’re someone in your organization, the profile card shows you information from their Azure Active Directory account. The information is more limited for external people.
Customizing the Profile Card
The announcement points to a page with details about how to customize the profile card (the feature is marked as a preview). Essentially, you customize the ProfileCardProperty Graph resource to add new information to the profile card. Six standard Azure Active Directory properties can be added along with the fifteen custom attributes available for organizations to use as they wish (like CustomAttribute11, which Microsoft recently considered using to identify the room mailboxes needed for its Workspaces feature). Custom attributes are used for many purposes, including to hold organizational information (like cost centers and division names), mark mailboxes for special processing, and so on.
Nice as it is to be able to customize the profile card, the immediate barrier facing many tenant administrators is not knowing how to interact with the Graph to update the ProfileCardProperty resource. Not everyone has mastered Graph programming, and administrators who know PowerShell might not yet have ventured into interacting with the Graph (some examples of using PowerShell with the Graph are listed below).
Graph Explorer Delivers an Answer
As it turns out, the Graph Explorer makes it easy to apply the necessary changes. This is a browser interface to allow people to interact with the Graph and get to know how Graph transactions work against different endpoints, such as Groups, Outlook, Planner, and SharePoint. You can run commands against test data or, after signing into a tenant account, against live data. Programmers can grab code snippets generated for transactions by the Explorer in C#, Java, JavaScript, and Objective-C and include the code in their programs. All in all, the Graph Explorer is a very useful tool.
Using Graph Explorer to Update the Profile Card
The key points about using the Graph Explorer to update the ProfileCardProperty resource are:
- Sign in with an administrative account for the tenant.
- Select beta from the drop-down list for endpoint types.
- Use a POST command to update the https://graph.microsoft.com/beta/organization/{tenantid}/settings/profileCardProperties endpoint.
- Put the update you want to execute in the request body. For example, to add the PostalCode property to the profile card, I put {“directoryPropertyName”:”Postalcode”} in the request body.
- Click Run query when you’re ready. If everything’s been done right, you should see a 200 response. This means that the Graph has accepted the update.
Figure 1 shows the Graph Explorer after running a successful update. You can see the 200 response.

Microsoft warns that it takes up to 24 hours for the changes to show on profile cards. It also seems that you need to add updates one by one and wait until an update is active before applying another. To check the current state of the ProfileCardProperty resource, you can run a GET command to see what’s returned by https://graph.microsoft.com/beta/organization/{tenantid}/settings/profileCardProperties.
Figure 2 shows that I have added two of the standard properties (UserPrincipalName and StreetAddress) and CustomAttribute12. Note that the custom attribute is assigned a display name of “Cost Center” to make its use more obvious to end users.

Viewing Custom Profile Cards in Applications
After Graph processes everything and applications refresh their cache, you’ll see the customizations show up in the profile cards displayed by applications. Figure 3 shows how OWA displays customized contact information while Figure 4 shows how the profile card appears in Outlook Mobile.


The customized attributes don’t appear for guest accounts.
If you make a mistake and add the wrong attribute or want to start over, you can remove an attribute from the organization settings by running a DELETE command in the form:
https://graph.microsoft.com/beta/organization/[tenantID]/settings/profileCardProperties/[propertyName]
Graph Explorer Gets Real Work Done
The notion of having to write code to interact with the Graph might well have turned people away from even considering customizing the profile card. The Graph Explorer allows you to do the job without writing a single line of code. It’s a great example of using an available tool to achieve a goal in a way that the authors of the feature probably never considered.
Some PowerShell with Graph Articles
How to report SharePoint Online site usage.
Fetching Azure AD Account Sign-in Information.
Fetching Planner Data for a Single User.
What delegated permissions are needed to POST an update to the profileCardProperties?
I didn’t investigate this because Graph Explorer grabs the necessary permissions once you sign in with an administrative account.
Here are the required delegated permissions:
User.Read.All
User.ReadWrite.All
When I try to change the display name, I get a 409 Conflict error. Any idea what’s causing that?
{
“directoryPropertyName”: “CustomAttribute1”,
“annotations”: [
{
“displayName”: “Comms”
}
]
}
Maybe try a different word than Comms? That might be a reserved word. I don’t know, so this is a guess…
Yeah I just tried that, including some really basic names like ABC, etc. It still generates the conflict 409 error. Any other ideas?
Is it possible to delete a profile property? I have tried with the below and keep getting “Bad Request 400”?
DELETE: https://graph.microsoft.com/beta/organization/xxxxxxxxxx/settings/profileCardProperties
REQUEST BODY: {“directoryPropertyName”:”department”}
I wonder the same. I also get a bad request when i try to remove an attribute. If i try to GET the information, I can see the attribute listed there.
DELETE https://graph.microsoft.com/beta/organization/TENNANT/settings/profileCardProperties/directoryPropertyName/postalCode
I´ve added postal code, but it doesnt show up in the profile card. When i tried to delete the attribute from the code, I got a “Bad request” and that it didnt find any object. However if i try to GET the profile card, than I can see the code.
For delete i used: https://graph.microsoft.com/beta/organization/tennant/settings/profileCardProperties/directoryPropertyName/postalCode
Tried this to delete:
https://graph.microsoft.com/beta/organization/xxxxxxxxxxxxxxxxxx/settings/profileCardProperties/Alias
{Alias being the property and an empty Request Body} – about an hour later, I saw that the property was removed from the display.
I am now trying to remove “Business Address” … not having any joy …
Using the Graph Explorer, the query to run to remove an attribute from the organization settings is:
DELETE: https://graph.microsoft.com/beta/organization/%5BtenantID%5D/settings/profileCardProperties/%5BpropertyName%5D
I just did this to remove a custom attribute with:
DELETE: https://graph.microsoft.com/beta/organization/b662313f-14fc-43a2-9a7a-d2e27f4f347a/settings/profileCardProperties/CustomAttribute1
Is that possible to remove Organization tab in the profile card?
I don’t believe so.
Has anyone managed to get postal code to show on their profile card?
Is it possible to stop the profile card from appearing – ie if we created a competition tenant but didnt want participants to see personal details about other users in the tenant when they hover over them in Teams.
Teams doesn’t use the People card. It has its own version which limits the amount of information shown to guests.