public class User extends Object implements ModelInterface
| Modifier and Type | Field and Description |
|---|---|
Boolean |
active2fa
Is 2fa active for the user?
|
Long[] |
adminGroupIds
List of group IDs of which this user is an administrator
|
String |
allowedIps
A list of allowed IPs if applicable.
|
Boolean |
announcementsRead
Signifies that the user has read all the announcements in the UI.
|
Long |
apiKeysCount
Number of API keys associated with this user
|
Boolean |
attachmentsPermission
If `true`, the user can user create Bundles (aka Share Links).
|
Date |
authenticateUntil
Scheduled Date/Time at which user will be deactivated
|
String |
authenticationMethod
How is this user authenticated?
|
Boolean |
avatarDelete
If true, the avatar will be deleted.
|
byte[] |
avatarFile
An image file for your user avatar.
|
String |
avatarUrl
URL holding the user's avatar
|
Boolean |
billingPermission
Allow this user to perform operations on the account, payments, and invoices?
|
Boolean |
bypassInactiveDisable
Exempt this user from being disabled based on inactivity?
|
Boolean |
bypassSiteAllowedIps
Allow this user to skip site-wide IP blacklists?
|
String |
changePassword
Used for changing a password on an existing user.
|
String |
changePasswordConfirmation
Optional, but if provided, we will ensure that it matches the value sent in `change_password`.
|
String |
company
User's company
|
Date |
createdAt
When this user was created
|
Boolean |
davPermission
Can the user connect with WebDAV?
|
Long |
daysRemainingUntilPasswordExpire
Number of days remaining until password expires
|
Boolean |
disabled
Is user disabled?
|
Boolean |
disabledExpiredOrInactive
Computed property that returns true if user disabled or expired or inactive.
|
String |
email
User email address
|
Boolean |
externallyManaged
Is this user managed by a SsoStrategy?
|
Date |
firstLoginAt
User's first login time
|
Boolean |
ftpPermission
Can the user access with FTP/FTPS?
|
String |
grantPermission
Permission to grant on the user root.
|
Long |
groupId
Group ID to associate this user with.
|
String |
groupIds
Comma-separated list of group IDs of which this user is a member
|
String |
headerText
Text to display to the user in the header of the UI
|
Long |
id
User ID
|
String |
importedPasswordHash
Pre-calculated hash of the user's password.
|
String |
language
Preferred language
|
Date |
lastActiveAt
User's most recent activity time, which is the latest of most recent login, most recent API use, enablement, or creation
|
Date |
lastApiUseAt
User's most recent API use time
|
Date |
lastDavLoginAt
User's most recent login time via WebDAV
|
Date |
lastDesktopLoginAt
User's most recent login time via Desktop app
|
Date |
lastFtpLoginAt
User's most recent login time via FTP
|
Date |
lastLoginAt
User's most recent login time via any protocol
|
String |
lastProtocolCipher
The most recent protocol and cipher used
|
Date |
lastRestapiLoginAt
User's most recent login time via Rest API
|
Date |
lastSftpLoginAt
User's most recent login time via SFTP
|
Date |
lastWebLoginAt
User's most recent login time via web
|
Date |
lockoutExpires
Time in the future that the user will no longer be locked out if applicable
|
String |
name
User's full name
|
String |
notes
Any internal notes on the user
|
Long |
notificationDailySendTime
Hour of the day at which daily notifications should be sent.
|
Boolean |
officeIntegrationEnabled
Enable integration with Office for the web?
|
String |
password
User password.
|
String |
passwordConfirmation
Optional, but if provided, we will ensure that it matches the value sent in `password`.
|
Date |
passwordExpireAt
Password expiration datetime
|
Boolean |
passwordExpired
Is user's password expired?
|
Date |
passwordSetAt
Last time the user's password was set
|
Long |
passwordValidityDays
Number of days to allow user to use the same password
|
Long |
publicKeysCount
Number of public keys associated with this user
|
Boolean |
readonlySiteAdmin
Is the user an allowed to view all (non-billing) site configuration for this site?
|
Boolean |
receiveAdminAlerts
Should the user receive admin alerts such a certificate expiration notifications and overages?
|
String |
require2fa
2FA required setting
|
Date |
requireLoginBy
Require user to login by specified date otherwise it will be disabled.
|
Boolean |
requirePasswordChange
Is a password change required upon next user login?
|
Boolean |
restapiPermission
Can this user access the Web app, Desktop app, SDKs, or REST API?
|
Boolean |
selfManaged
Does this user manage it's own credentials or is it a shared/bot user?
|
Boolean |
sftpPermission
Can the user access with SFTP?
|
Boolean |
siteAdmin
Is the user an administrator for this site?
|
Boolean |
skipWelcomeScreen
Skip Welcome page in the UI?
|
String |
sslRequired
SSL required setting
|
Long |
ssoStrategyId
SSO (Single Sign On) strategy ID for the user, if applicable.
|
Boolean |
subscribeToNewsletter
Is the user subscribed to the newsletter?
|
String |
timeZone
User time zone
|
String |
typeOf2fa
Type(s) of 2FA methods in use, for programmatic use.
|
String |
typeOf2faForDisplay
Type(s) of 2FA methods in use, formatted for displaying in the UI.
|
String |
userHome
Home folder for FTP/SFTP.
|
String |
username
User's username
|
String |
userRoot
Root folder for FTP (and optionally SFTP if the appropriate site-wide setting is set).
|
| Constructor and Description |
|---|
User() |
User(HashMap<String,Object> parameters) |
User(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
| Modifier and Type | Method and Description |
|---|---|
static ListIterator<User> |
all() |
static ListIterator<User> |
all(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static User |
create(HashMap<String,Object> parameters)
Parameters:
avatar_file - file - An image file for your user avatar.
|
static User |
create(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
void |
delete() |
static void |
delete(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static void |
delete(Long id,
HashMap<String,Object> parameters) |
static void |
delete(Long id,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static void |
destroy() |
void |
destroy(HashMap<String,Object> parameters) |
static void |
destroy(Long id,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static User |
find(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static User |
find(Long id,
HashMap<String,Object> parameters)
Parameters:
id (required) - int64 - User ID.
|
static User |
find(Long id,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static User |
get() |
static User |
get(Long id,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static ListIterator<User> |
list()
Parameters:
cursor - string - Used for pagination.
|
static ListIterator<User> |
list(HashMap<String,Object> parameters) |
static ListIterator<User> |
list(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
void |
resendWelcomeEmail()
Resend user welcome email
|
static void |
resendWelcomeEmail(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static void |
resendWelcomeEmail(Long id,
HashMap<String,Object> parameters)
Resend user welcome email
|
static void |
resendWelcomeEmail(Long id,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
void |
save() |
void |
unlock()
Unlock user who has been locked out due to failed logins
|
static void |
unlock(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static void |
unlock(Long id,
HashMap<String,Object> parameters)
Unlock user who has been locked out due to failed logins
|
static void |
unlock(Long id,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
User |
update()
Parameters:
avatar_file - file - An image file for your user avatar.
|
static User |
update(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static User |
update(Long id,
HashMap<String,Object> parameters)
Parameters:
avatar_file - file - An image file for your user avatar.
|
static User |
update(Long id,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
void |
user2faReset()
Trigger 2FA Reset process for user who has lost access to their existing 2FA methods
|
static void |
user2faReset(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static void |
user2faReset(Long id,
HashMap<String,Object> parameters)
Trigger 2FA Reset process for user who has lost access to their existing 2FA methods
|
static void |
user2faReset(Long id,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetOptionspublic Long id
public String username
public Long[] adminGroupIds
public String allowedIps
public Boolean attachmentsPermission
public Long apiKeysCount
public Date authenticateUntil
public String authenticationMethod
public String avatarUrl
public Boolean billingPermission
public Boolean bypassSiteAllowedIps
public Boolean bypassInactiveDisable
public Date createdAt
public Boolean davPermission
public Boolean disabled
public Boolean disabledExpiredOrInactive
public String email
public Date firstLoginAt
public Boolean ftpPermission
public String groupIds
public String headerText
public String language
public Date lastLoginAt
public Date lastWebLoginAt
public Date lastFtpLoginAt
public Date lastSftpLoginAt
public Date lastDavLoginAt
public Date lastDesktopLoginAt
public Date lastRestapiLoginAt
public Date lastApiUseAt
public Date lastActiveAt
public String lastProtocolCipher
public Date lockoutExpires
public String name
public String company
public String notes
public Long notificationDailySendTime
public Boolean officeIntegrationEnabled
public Date passwordSetAt
public Long passwordValidityDays
public Long publicKeysCount
public Boolean receiveAdminAlerts
public String require2fa
public Date requireLoginBy
public Boolean active2fa
public Boolean requirePasswordChange
public Boolean passwordExpired
public Boolean readonlySiteAdmin
public Boolean restapiPermission
public Boolean selfManaged
public Boolean sftpPermission
public Boolean siteAdmin
public Boolean skipWelcomeScreen
public String sslRequired
public Long ssoStrategyId
public Boolean subscribeToNewsletter
public Boolean externallyManaged
public String timeZone
public String typeOf2fa
public String typeOf2faForDisplay
public String userRoot
public String userHome
public Long daysRemainingUntilPasswordExpire
public Date passwordExpireAt
public byte[] avatarFile
public Boolean avatarDelete
public String changePassword
public String changePasswordConfirmation
public String grantPermission
public Long groupId
public String importedPasswordHash
public String password
public String passwordConfirmation
public Boolean announcementsRead
public void unlock()
throws IOException
IOExceptionpublic void resendWelcomeEmail()
throws IOException
IOExceptionpublic void user2faReset()
throws IOException
IOExceptionpublic User update() throws IOException
IOExceptionpublic void delete()
throws IOException
IOExceptionpublic void destroy(HashMap<String,Object> parameters) throws IOException
IOExceptionpublic void save()
throws IOException
IOExceptionpublic static ListIterator<User> list() throws RuntimeException
RuntimeExceptionpublic static ListIterator<User> list(HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static ListIterator<User> list(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static ListIterator<User> all() throws RuntimeException
RuntimeExceptionpublic static ListIterator<User> all(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static User find(Long id, HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static User find(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static User find(Long id, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static User get() throws RuntimeException
RuntimeExceptionpublic static User get(Long id, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static User create(HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static User create(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static void unlock(Long id, HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static void unlock(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static void unlock(Long id, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static void resendWelcomeEmail(Long id, HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static void resendWelcomeEmail(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static void resendWelcomeEmail(Long id, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static void user2faReset(Long id, HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static void user2faReset(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static void user2faReset(Long id, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static User update(Long id, HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static User update(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static User update(Long id, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static void delete(Long id, HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static void delete(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static void delete(Long id, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static void destroy()
throws RuntimeException
RuntimeExceptionpublic static void destroy(Long id, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionCopyright © 2024 com.github.files-com. All rights reserved.