Usage
m365 tenant people profilecardproperty add [options]
Description
Adds a custom attribute as a profile card property
Options
| Option |
Description |
-n, --name <name> |
The name of the property to add. Allowed values: userPrincipalName, fax, streetAddress, postalCode, stateOrProvince, alias, extensionAttribute1, extensionAttribute2, extensionAttribute3, extensionAttribute4, extensionAttribute5, extensionAttribute6, extensionAttribute7, extensionAttribute8, extensionAttribute9, extensionAttribute10, extensionAttribute11, extensionAttribute12, extensionAttribute13, extensionAttribute14, extensionAttribute15 |
-d, --displayName [displayName] |
The display name of a property, only use together with extension attributes. |
Remarks
You can specify localized values for the displayName as well. These can be entered by suffixing the displayName option with a language code: --displayName-nl-NL "Kostencentrum" --displayName-de "Kostenstelle".
Examples
Add the UPN as a profile property to the profile cards
m365 tenant people profilecardproperty add --name userPrincipalName
Add a custom extension attribute Cost Center as a profile property to the profile cards
m365 tenant people profilecardproperty add --name extensionAttribute1 --displayName "Cost Center"
Add a custom extension attribute Cost Center as a profile property to the profile cards with a dutch localization
m365 tenant people profilecardproperty add --name extensionAttribute1 --displayName "Cost Center" --displayName-nl-NL "Kostencentrum"
Additional Info
--displayName is required when an extensionAttribute is picked.
May need a new scope: PeopleSettings.ReadWrite.All
For localization properties, let's include them in validation, so that for now, all unknown properties must start with displayName-
More Information
Usage
m365 tenant people profilecardproperty add [options]
Description
Adds a custom attribute as a profile card property
Options
-n, --name <name>userPrincipalName,fax,streetAddress,postalCode,stateOrProvince,alias,extensionAttribute1,extensionAttribute2,extensionAttribute3,extensionAttribute4,extensionAttribute5,extensionAttribute6,extensionAttribute7,extensionAttribute8,extensionAttribute9,extensionAttribute10,extensionAttribute11,extensionAttribute12,extensionAttribute13,extensionAttribute14,extensionAttribute15-d, --displayName [displayName]Remarks
You can specify localized values for the
displayNameas well. These can be entered by suffixing the displayName option with a language code:--displayName-nl-NL "Kostencentrum" --displayName-de "Kostenstelle".Examples
Add the UPN as a profile property to the profile cards
Add a custom extension attribute Cost Center as a profile property to the profile cards
m365 tenant people profilecardproperty add --name extensionAttribute1 --displayName "Cost Center"Add a custom extension attribute Cost Center as a profile property to the profile cards with a dutch localization
Additional Info
--displayNameis required when an extensionAttribute is picked.May need a new scope:
PeopleSettings.ReadWrite.AllFor localization properties, let's include them in validation, so that for now, all unknown properties must start with displayName-
More Information