Documentation
¶
Index ¶
- Constants
- Variables
- type BaseUser
- type Group
- type GroupType
- type JumpCloudClient
- func (c *JumpCloudClient) ExpandUsersInGroup(ctx context.Context, groupID string, idLookup map[string]*BaseUser) ([]*BaseUser, error)
- func (c *JumpCloudClient) GetBaseUserByID(ctx context.Context, id string) (*BaseUser, error)
- func (c *JumpCloudClient) GetUserByEmail(_ context.Context, _ string) (*User, error)
- func (c *JumpCloudClient) GetUserByID(ctx context.Context, id string) (*User, error)
- func (c *JumpCloudClient) ListDirectories(ctx context.Context) ([]any, error)
- func (c *JumpCloudClient) ListGroups(ctx context.Context, groupType GroupType) ([]*Group, error)
- func (c *JumpCloudClient) ListUsers(ctx context.Context) ([]*User, error)
- type Members
- type User
Constants ¶
View Source
const TypeGroup string = "group"
View Source
const TypeUser string = "user"
Variables ¶
View Source
var ( ErrEmptyResponse = errors.New("empty response") ErrStatusNotOK = errors.New("status not OK") )
Functions ¶
This section is empty.
Types ¶
type JumpCloudClient ¶
type JumpCloudClient struct {
// contains filtered or unexported fields
}
func NewJumpCloudClient ¶
func NewJumpCloudClient(ctx context.Context, apiKey string) (*JumpCloudClient, error)
func (*JumpCloudClient) ExpandUsersInGroup ¶
func (*JumpCloudClient) GetBaseUserByID ¶
func (*JumpCloudClient) GetUserByEmail ¶
func (*JumpCloudClient) GetUserByID ¶
func (*JumpCloudClient) ListDirectories ¶
func (c *JumpCloudClient) ListDirectories(ctx context.Context) ([]any, error)
func (*JumpCloudClient) ListGroups ¶
type User ¶
type User struct {
BaseUser
SystemUsername string `json:"systemUsername"`
Activated bool `json:"activated"`
FirstName string `json:"firstname"`
MiddleName string `json:"middlename"`
LastName string `json:"lastname"`
Organization string `json:"organization"`
JobTitle string `json:"jobTitle"`
Description string `json:"description"`
AccountLocked bool `json:"account_locked"`
AccountLockedDate interface{} `json:"account_locked_date"`
Addresses []interface{} `json:"addresses"`
AllowPublicKey bool `json:"allow_public_key"`
AlternateEmail interface{} `json:"alternateEmail"`
Attributes []interface{} `json:"attributes"`
Company string `json:"company"`
CostCenter string `json:"costCenter"`
Created time.Time `json:"created"`
Department string `json:"department"`
DisableDeviceMaxLoginAttempts bool `json:"disableDeviceMaxLoginAttempts"`
EmployeeIdentifier interface{} `json:"employeeIdentifier"`
EmployeeType string `json:"employeeType"`
EnableManagedUID bool `json:"enable_managed_uid"`
EnableUserPortalMultiFactor bool `json:"enable_user_portal_multifactor"`
ExternalDn string `json:"external_dn"`
ExternalSourceType string `json:"external_source_type"`
ExternallyManaged bool `json:"externally_managed"`
LdapBindingUser bool `json:"ldap_binding_user"`
Location string `json:"location"`
ManagedAppleID string `json:"managedAppleId"`
Manager interface{} `json:"manager"`
Mfa struct {
Configured bool `json:"configured,omitempty"`
Exclusion bool `json:"exclusion,omitempty"`
} `json:"mfa,omitempty"`
MfaEnrollment struct {
OverallStatus string `json:"overallStatus,omitempty"`
PushStatus string `json:"pushStatus,omitempty"`
TotpStatus string `json:"totpStatus,omitempty"`
WebAuthnStatus string `json:"webAuthnStatus,omitempty"`
} `json:"mfaEnrollment,omitempty"`
PasswordDate time.Time `json:"password_date"`
PasswordExpired bool `json:"password_expired"`
PasswordNeverExpires bool `json:"password_never_expires"`
PasswordlessSudo bool `json:"passwordless_sudo"`
PhoneNumbers []interface{} `json:"phoneNumbers"`
RestrictedFields []interface{} `json:"restrictedFields,omitempty"`
SambaServiceUser bool `json:"samba_service_user"`
SSHKeys []interface{} `json:"ssh_keys"`
State string `json:"state"`
Sudo bool `json:"sudo"`
Suspended bool `json:"suspended"`
TotpEnabled bool `json:"totp_enabled"`
UnixGUID int `json:"unix_guid"`
UnixUID int `json:"unix_uid"`
}
Click to show internal directories.
Click to hide internal directories.