spo userprofile set¶
Sets user profile property for a SharePoint user
Usage¶
m365 spo userprofile set [options]
Options¶
-u, --userName <userName>
- Account name of the user
-n, --propertyName <propertyName>
- The name of the property to be set
-v, --propertyValue <propertyValue>
- The value of the property to be set
-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 isfull
. --query [query]
- JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
- Output type.
json,text,csv,md
. Defaultjson
--verbose
- Runs command with verbose logging
--debug
- Runs command with debug logging
Remarks¶
You have to have tenant admin permissions in order to use this command to update profile properties of other users.
Examples¶
Updates the single-value AboutMe property
m365 spo userprofile set --userName 'john.doe@mytenant.onmicrosoft.com' --propertyName 'AboutMe' --propertyValue 'Working as a Microsoft 365 developer'
Updates the multi-value SPS-Skills property
m365 spo userprofile set --userName 'john.doe@mytenant.onmicrosoft.com' --propertyName 'SPS-Skills' --propertyValue 'CSS, HTML'
Response¶
The command won't return a response on success.