Created
December 7, 2021 18:58
-
-
Save nehemiahj/9a179a2522a30444e436b094415fd08b to your computer and use it in GitHub Desktop.
Sitecore PowerShell - Get All Sitecore Users with Properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[System.Web.Security.Membership]::GetAllUsers() | | |
Select-Object -Property @{Name = 'FullName'; Expression = {(Get-User -Identity $_.UserName).Profile.FullName}}, | |
@{Name="User Name"; Expression={ $_.UserName} }, | |
@{Name="Email"; Expression={ $_.Email} }, | |
@{Name="Is Admin"; Expression={ (Get-User -Identity $_.UserName).IsAdministrator} }, | |
@{Name="Is Online"; Expression={ $_.IsOnline} }, | |
@{Name="Is Enabled"; Expression={ $_.IsApproved} }, | |
@{Name="Is Locked"; Expression={ $_.IsLockedOut } }, | |
@{Name="Domain"; Expression={ $_.ProviderName} }, | |
@{Name="Created Date"; Expression={ $_.CreationDate} }, | |
@{Name="Last Login Date"; Expression={ $_.LastLoginDate} }, | |
@{Name="Last Activity Date"; Expression={ $_.LastActivityDate }} | | |
Show-ListView |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment