Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set-User wipes out email address! #1216

Closed
michaellwest opened this issue Oct 9, 2020 · 1 comment
Closed

Set-User wipes out email address! #1216

michaellwest opened this issue Oct 9, 2020 · 1 comment
Assignees
Labels
area-commands Involves functions and cmdlets. area-security 🐞 bug Oops! Sorry for the inconvenience.
Milestone

Comments

@michaellwest
Copy link
Member

Issue appears to be introduced with #1025.

Example that creates the problem:

$user = Get-User -Id "sitecore\test"
$profile = $user.Profile
$identity = $profile.Username
Set-User -Identity $identity -CustomProperties @{ }
@michaellwest michaellwest self-assigned this Oct 9, 2020
@michaellwest michaellwest added area-commands Involves functions and cmdlets. area-security 🐞 bug Oops! Sorry for the inconvenience. labels Oct 9, 2020
@michaellwest michaellwest added this to the 6.2 milestone Oct 9, 2020
@michaellwest
Copy link
Member Author

Workaround

$user = Get-User -Id "sitecore\test"
$profile = $user.Profile
$identity = $profile.Username
$email = $user.Profile.Email

Set-User -Identity $identity -Email $email -CustomProperties @{ }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-commands Involves functions and cmdlets. area-security 🐞 bug Oops! Sorry for the inconvenience.
Projects
None yet
Development

No branches or pull requests

1 participant