CmdID / PowerShell / Cmdlets / Get
Get-SecurityPrincipal
Use the Get-SecurityPrincipal cmdlet to return a list of security principals. Exchange PowerShell reference
From the Exchange PowerShell reference 8 parameters Its page in the reference
Parameters
-IdentityThe Identity parameter specifies the security principal.-DomainControllerThe DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory.-FilterThe Filter parameter uses OPATH syntax to filter the results by the specified properties and values.-IncludeDomainLocalFromThe IncludeDomainLocalFrom parameter specifies whether to return domain local groups from the FQDN of the specified Active Directory domain (for example, contoso.com) in the results.-OrganizationalUnitThe OrganizationalUnit parameter filters the results based on the object's location in Active Directory.-ResultSizeThe ResultSize parameter specifies the maximum number of results to return.-RoleGroupAssignableThe RoleGroupAssignable switch filters security principals by returning only objects that can be assigned to an RBAC role group.-TypesThe Types parameter filters the results by object type.