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 without -Email property is removing email address from profile #28

Open
sandyfoley opened this issue Oct 9, 2020 · 0 comments

Comments

@sandyfoley
Copy link

Hello -

The email address field value is getting deleted from the user profile when using Set-User.

Note that in the code below, the -Email property is not set in Set-User, which is not a required property .
'foo' does exist as a custom property on the profile.

`$users = Get-User -Filter $userFilter
foreach ( $user in $users )
{
$profile = $user.Profile
$identity = $profile.Username

Set-User -Identity $identity -CustomProperties @{ "foo" = "bar" }
}`

This occurs in SPE 5.1.
Thanks (again) for this awesome module for Sitecore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant