Sets the Sitecore user properties.
Set-User [-Identity] <AccountIdentity> [-IsAdministrator <Boolean>] [-Portrait <String>] [-Email <String>] [-FullName <String>] [-Comment <String>] [-ProfileItemId <ID>] [-StartUrl <String>] [-Enabled] [-CustomProperties <Hashtable>]
Set-User -Instance <User> [-IsAdministrator <Boolean>] [-Portrait <String>] [-Email <String>] [-FullName <String>] [-Comment <String>] [-ProfileItemId <ID>] [-StartUrl <String>] [-Enabled] [-CustomProperties <Hashtable>]
Detailed Description
The Set-User command sets a user profile properties in Sitecore.
The Identity parameter specifies the Sitecore user to set. You can specify a user by its local name or fully qualified name.
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
-IsAdministrator <Boolean>
Specifies whether the Sitecore user should be classified as an Administrator.
Accept Wildcard Characters?
-Portrait <String>
Specifies the Sitecore user portrait image.
Accept Wildcard Characters?
-Identity <AccountIdentity>
Specifies the Sitecore user by providing one of the following values.
Accept Wildcard Characters?
-Instance <User>
Accept Wildcard Characters?
-Email <String>
Specifies the Sitecore user email address. The value is validated for a properly formatted address.
Accept Wildcard Characters?
-FullName <String>
Accept Wildcard Characters?
Accept Wildcard Characters?
-ProfileItemId <ID>
Specifies the profile id to use for the user.
Accept Wildcard Characters?
-StartUrl <String>
Specifies the url to navigate to once the user is logged in. The values are validated with a pretermined set.
Accept Wildcard Characters?
-Enabled <SwitchParameter>
Specifies whether the Sitecore user should be enabled.
Accept Wildcard Characters?
-CustomProperties <Hashtable>
Specifies a hashtable of custom properties to assign to the Sitecore user profile.
Accept Wildcard Characters?
The input type is the type of the objects that you can pipe to the cmdlet.
System.String
Represents the identity of a user.
Sitecore.Security.Accounts.User Represents the instance of a user.
The output type is the type of the objects that the cmdlet emits.
Help Author: Adam Najmanowicz, Michael West