On the profile card in Microsoft 365, you can find information about users that is stored and maintained by your organization, for example Job title or Office location.
Microsoft Graph has new API’s that allows us to add Azure AD Attributes to the profile card, they use the profileCardProperty resource to show additional properties for an organization, by:
Additional properties will display in the Contact section of the profile card in Microsoft 365.
The following attributes from Azure Active Directory are available and can be visible on users’ profile cards.
The following table shows how the Azure AD attributes correspond with properties of the Microsoft Graph user entity.
Azure AD attribute | User entity property |
---|---|
UserPrincipalName | userPrincipalName |
Fax | faxNumber |
StreetAddress | streetAddress |
PostalCode | postalCode |
StateOrProvince | state |
Alias | mailNickname |
You can add any of the 15 Azure AD custom extension attributes to users’ profile cards by calling the new Microsoft Graph API’s
The onPremisesExtensionAttributes property of the user entity contains fifteen custom extension attribute properties. For an onPremisesSyncEnabled user, the source of authority for this set of properties is the on-premises Active Directory which is synchronized to Azure AD, and is read-only. For a cloud-only user (where onPremisesSyncEnabled is false), these properties may be set during creation or update.
Note: These extension attributes are also known as Exchange custom attributes 1-15.
The following table shows how the Azure AD custom extension attribute names correspond to the supported values for the directoryPropertyName property of the profileCardProperty resource. These Azure AD custom extension attribute names are not case-sensitive:
Azure AD custom extension attribute | Value to specify as directoryPropertyName |
---|---|
extensionAttribute1 | customAttribute1 |
extensionAttribute2 | customAttribute2 |
extensionAttribute3 | customAttribute3 |
extensionAttribute4 | customAttribute4 |
extensionAttribute5 | customAttribute5 |
extensionAttribute6 | customAttribute6 |
extensionAttribute7 | customAttribute7 |
extensionAttribute8 | customAttribute8 |
extensionAttribute9 | customAttribute9 |
extensionAttribute10 | customAttribute10 |
extensionAttribute11 | customAttribute11 |
extensionAttribute12 | customAttribute12 |
extensionAttribute13 | customAttribute13 |
extensionAttribute14 | customAttribute14 |
extensionAttribute15 | customAttribute15 |
There are several advantages to using custom attributes:
To associate Azure Ad custom attributes to User’s Profile we can use Exchange Management Shell to manage the attributes or we can use the Exchange Admin Center to add the values for this properties to recipientes.
Example using PowerShel:
Set-Mailbox -Identity ABCD -CustomAttribute1 "C-123456789"
Example using Exchange Admin Center:
Thank you for reading!