spo userprofile get [options]
Retrieve user profile properties for a SharePoint user
| Option | Description |
| -- | -- |
| -u, --userName <userName> | Account name of the user |
GET https://contoso.sharepoint.com/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v=%27i:0%23.f|membership|[email protected]%27
Just to clarify: for the user name, let's use [email protected] rather than the whole claim name.
Yes, the full claim is only used in the REST call, only the UPN is required to be passed into the command.
Just realised that this is already being worked on and is a duplicate of #1670.
Closing issue as it is a duplicate.