tenant people profilecardproperty set
Updates a custom attribute to the profile card property
Usage
m365 tenant people profilecardproperty set [options]
Options
-n, --name <name>
The name of the property to update. Allowed values:
customAttribute1
,customAttribute2
,customAttribute3
,customAttribute4
,customAttribute5
,customAttribute6
,customAttribute7
,customAttribute8
,customAttribute9
,customAttribute10
,customAttribute11
,customAttribute12
,customAttribute13
,customAttribute14
,customAttribute15
.-d, --displayName <displayName>
The display name of the property.
-h, --help [help]
Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options
,examples
,remarks
,response
,full
. Default isoptions
.--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples.
-o, --output [output]
Output type.
json
,text
,csv
,md
,none
. Defaultjson
.--verbose
Runs command with verbose logging.
--debug
Runs command with debug logging.
Remarks
To use this command you must be either Tenant Administrator or Global Administrator.
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"
.
When updating an attribute to a profile card, it takes up to 24 hours for the addition to be displayed.
Examples
Updates a custom extension attribute to Cost Center
m365 tenant people profilecardproperty set --name customAttribute1 --displayName "Cost Center"
Updates a custom extension attribute with translations
m365 tenant people profilecardproperty set --name customAttribute1 --displayName "Cost Center" --displayName-nl-NL "Kostencentrum" --displayName-de "Kostenstelle"
Response
- JSON
- Text
- CSV
- Markdown
{
"directoryPropertyName": "customAttribute1",
"annotations": [
{
"displayName": "Cost center",
"localizations": [
{
"languageTag": "nl-NL",
"displayName": "Kostenplaats"
}
]
}
]
}
directoryPropertyName: customAttribute1
displayName : Cost center
displayName nl-NL : Kostenplaats
directoryPropertyName,displayName,displayName nl-NL
customAttribute1,Cost center,Kostenplaats
# tenant people profilecardproperty set --name 'customAttribute1' --displayName 'Cost center' --displayName-nl-NL 'Kostenplaats'
Date: 11/2/2023
Property | Value
---------|-------
directoryPropertyName | customAttribute1
displayName | Cost center
displayName nl-NL | Kostenplaats