Skip to content

Instantly share code, notes, and snippets.

@nehemiahj
Created December 7, 2021 18:58
Show Gist options
  • Save nehemiahj/9a179a2522a30444e436b094415fd08b to your computer and use it in GitHub Desktop.
Save nehemiahj/9a179a2522a30444e436b094415fd08b to your computer and use it in GitHub Desktop.
Sitecore PowerShell - Get All Sitecore Users with Properties
[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