-
Notifications
You must be signed in to change notification settings - Fork 153
Get JCUser
external help file: JumpCloud-help.xml Module Name: JumpCloud online version: https://github.com/TheJumpCloud/support/wiki/Get-JCUser schema: 2.0.0
Returns all JumpCloud Users within a JumpCloud tenant or searches for a JumpCloud User by 'username', 'firstname', 'lastname', or 'email'.
Get-JCUser [[-username] <String>] [-firstname <String>] [-lastname <String>] [-email <String>]
[-unix_guid <String>] [-unix_uid <String>] [-sudo <Boolean>] [-enable_managed_uid <Boolean>]
[-activated <Boolean>] [-password_expired <Boolean>] [-account_locked <Boolean>]
[-passwordless_sudo <Boolean>] [-externally_managed <Boolean>] [-ldap_binding_user <Boolean>]
[-enable_user_portal_multifactor <Boolean>] [-totp_enabled <Boolean>] [-allow_public_key <Boolean>]
[-samba_service_user <Boolean>] [-password_never_expires <Boolean>] [-filterDateProperty <String>]
[-returnProperties <String[]>] [-middlename <String>] [-displayname <String>] [-jobTitle <String>]
[-employeeIdentifier <String>] [-department <String>] [-costCenter <String>] [-company <String>]
[-employeeType <String>] [-description <String>] [-location <String>] [-external_dn <String>]
[-external_source_type <String>] [-managedAppleId <String>] [-manager <String>] [-state <String>]
[-recoveryEmail <String>] -dateFilter <String> -date <DateTime>
[<CommonParameters>]
Get-JCUser -userid <String> -dateFilter <String> -date <DateTime>
[<CommonParameters>]
The Get-JCUser function returns all information describing a JumpCloud user. By default it will return all Users. Note: String parameters are case-insensitive
PS C:\> Get-JCUser
Returns all JumpCloud Users and the information describing these users.
Get-JCUser -Username cclemons
Get-JCUser -Username cClemons
Returns the information describing the JumpCloud User with Username cclemons or cCLemons (case-insensitive).
NOTE: String parameters are case-insensitive. Username cclemons and cClemons returns the same user information
Get-JCUser -Username *clemons
Returns all JumpCloud users that usernames end with clemons using the wildcard character '*'
Get-JCUser -filterDateProperty created -dateFilter after -date 01/01/2018
Returns all JumpCloud users that were created after '01/01/2018'. The parameter '-filterDateProperty' takes both 'created' and 'password_expiration_date' as input and creates two dynamic parameters '-dateFilter' which takes "before" or "after" as input and "-date" which takes a date value as input.
Get-JCUser -returnProperties username, sudo
Returns all JumpCloud users and only the username and sudo Properties of their JumpCloud user object.
A search filter to return users that are in a locked ($true) or unlocked ($false) state.
Type: System.Boolean
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
A search filter to return users that are activated ($true) or those that have not set a password ($false).
Type: System.Boolean
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
A search filter to show accounts that are enabled ($true) or disabled ($true) to allow_public_key
Type: System.Boolean
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The company of the JumpCloud user you wish to search for.
Type: System.String
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The costCenter of the JumpCloud user you wish to search for.
Type: System.String
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Date to filter on.
Type: System.DateTime
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Condition to filter date on.
Type: System.String
Parameter Sets: (All)
Aliases:
Accepted values: before, after
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The department of the JumpCloud user you wish to search for.
Type: System.String
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The description of the JumpCloud user you wish to search for.
Type: System.String
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The preferred name of the JumpCloud user you wish to search for.
Type: System.String
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The Email of the JumpCloud user you wish to search for.
Type: System.String
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The employeeIdentifier of the JumpCloud user you wish to search for.
Type: System.String
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The employeeType of the JumpCloud user you wish to search for.
Type: System.String
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
A search filter to show accounts that are enabled ($true) or disabled ($false) for enable_managed_uid
Type: System.Boolean
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
A search filter to show accounts that are enabled ($true) or disabled ($false) for enable_user_portal_multifactor
Type: System.Boolean
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The distinguished name of the AD domain (ADB Externally managed users only)
Type: System.String
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The externally managed user source type (ADB Externally managed users only)
Type: System.String
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
A search filter to show accounts that are enabled ($true) or disabled ($false) for externally_managed
Type: System.Boolean
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
A parameter that can filter the properties 'created' or 'password_expiration_date'. This parameter if used creates two more dynamic parameters 'dateFilter' and 'date'. See EXAMPLE 4 above for full syntax.
Type: System.String
Parameter Sets: SearchFilter
Aliases:
Accepted values: created, password_expiration_date
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The First Name of the JumpCloud user you wish to search for.
Type: System.String
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The jobTitle of the JumpCloud user you wish to search for.
Type: System.String
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The Last Name of the JumpCloud user you wish to search for.
Type: System.String
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
A search filter to show accounts that are enabled ($true) or disabled ($false) for ldap_binding_user
Type: System.Boolean
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The location of the JumpCloud user you wish to search for.
Type: System.String
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The managedAppleId of the JumpCloud user you wish to search for.
Type: System.String
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The manager of the JumpCloud user you wish to search for.
Type: System.String
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The middlename of the JumpCloud user you wish to search for.
Type: System.String
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
A search filter to show accounts that have expired passwords ($true) or valid passwords ($false)
Type: System.Boolean
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
A search filter to show accounts that are enabled ($true) or disabled ($false) for password_never_expires
Type: System.Boolean
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
A search filter to show accounts that are enabled ($true) or disabled ($false) for passwordless_sudo
Type: System.Boolean
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The recovery email of the JumpCloud user you wish to search for.
Type: System.String
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
Allows you to return select properties on JumpCloud user objects. Specifying what properties are returned can drastically increase the speed of the API call with a large data set. Valid properties that can be returned are: 'created', 'password_expiration_date', 'account_locked', 'activated', 'addresses', 'allow_public_key', 'attributes', 'email', 'enable_managed_uid', 'enable_user_portal_multifactor', 'externally_managed', 'firstname', 'lastname', 'ldap_binding_user', 'passwordless_sudo', 'password_expired', 'password_never_expires', 'phoneNumbers', 'samba_service_user', 'ssh_keys', 'sudo', 'totp_enabled', 'unix_guid', 'unix_uid', 'username','suspended'
Type: System.String[]
Parameter Sets: SearchFilter
Aliases:
Accepted values: created, password_expiration_date, account_locked, activated, addresses, allow_public_key, attributes, alternateEmail, recoveryEmail, managedAppleId, manager, email, enable_managed_uid, enable_user_portal_multifactor, externally_managed, firstname, lastname, ldap_binding_user, passwordless_sudo, password_expired, password_never_expires, phoneNumbers, samba_service_user, ssh_keys, sudo, totp_enabled, unix_guid, unix_uid, username, middlename, displayname, jobTitle, employeeIdentifier, department, costCenter, company, employeeType, description, location, external_source_type, external_dn, suspended, mfa, recoveryEmail, systemUsername, relationships, public_key, external_password_expiration_date, disableDeviceMaxLoginAttempts, password, state, restrictedFields
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
A search filter to show accounts that are enabled ($true) or disabled ($false) for samba_service_user
Type: System.Boolean
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
A search filter to return users that are in an ACTIVATED or SUSPENDED state
Type: System.String
Parameter Sets: SearchFilter
Aliases:
Accepted values: ACTIVATED, SUSPENDED, STAGED
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
A search filter to show accounts that are enabled ($true) or disabled ($false) for sudo
Type: System.Boolean
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
A search filter to show accounts that are enabled ($true) or disabled ($false) for totp_enabled
Type: System.Boolean
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
A search filter to search for users with a specific unix_gid. DOES NOT accept wild card input.
Type: System.String
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
A search filter to search for users with a specific unix_uid. DOES NOT accept wild card input.
Type: System.String
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The _id of the User which you want to modify. UserID has an Alias of _id. This means you can leverage the PowerShell pipeline to populate this field automatically.
Type: System.String
Parameter Sets: ByID
Aliases: _id, id
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The Username of the JumpCloud user you wish to search for.
Type: System.String
Parameter Sets: SearchFilter
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
- Wiki Home
- Installing the JumpCloud PowerShell module
- Using the JumpCloud PowerShell Module
- Using the JumpCloud PowerShell Module with AWS Lambda
- PowerShell Commands Example Library
- JumpCloud Commands Gallery
- JumpCloud PowerShell YouTube Channel
- The JumpCloud Dashboard PowerShell Module
Authentication
Import and Backup
- Get JCAssociation
- New JCImportTemplate
- Import JCUsersFromCSV
- Update JCUsersFromCSV
- Get JCBackup
- Send JCPasswordReset
- Backup JCOrganization
RADIUS Reply Attributes
- Add JCRadiusReplyAttribute
- Get JCRadiusReplyAttribute
- Update JCUsersFromCSV
- Set JCRadiusReplyAttribute
- Remove JCRadiusReplyAttribute
User Functions
Administrator Functions
System Functions
- Get JCSystem
- Get JCSystemApp
- Get JCSystemKB
- Set JCSystem
- Remove JCSystem
- Get JCSystemUser
- Set JCSystemUser
- Add JCSystemUser
- Remove JCSystemUser
Command Functions
- New JCCommand
- Get JCCommand
- Import JCCommand
- Remove JCCommand
- Set JCCommand
- Invoke JCCommand
- New JCDeploymentTemplate
- Invoke JCDeployment
- Get JCCommandResult
- Remove JCCommandResult
- Get JCCommandTarget
- Add JCCommandTarget
- Remove JCCommandTarget
Group Functions
- Get JCGroup
- New JCUserGroup
- Remove JCUserGroup
- Get JCUserGroupMember
- Add JCUserGroupMember
- Remove JCUserGroupMember
- New JCSystemGroup
- Remove JCSystemGroup
- Get JCSystemGroupMember
- Add JCSystemGroupMember
- Remove JCSystemGroupMember
- Set-JCUserGroupLDAP
Policy Functions
- Get JCPolicy
- Get JCPolicyResult
- Get JCPolicyTargetSystem
- Get JCPolicyTargetGroup
- New JCPolicy
- Set JCPolicy
Event Functions