Raw user data received from the server. For more information, see Open Cloud Users API.
HTTP client instance used to send requests to the REST API server.
Endpoint-specific HTTP headers for the GET
, POST
, PUT
and DELETE
requests. You can add
custom headers at any time.
Endpoint API path relative to the REST API server URL.
User avatar image URL or empty string if the user does not have an avatar. Use setAvatar() to change avatar image.
true
if user is allowed to create a projects.
Only administrators can change create project permission.
Account registration time (UTC) in the format specified in ISO 8601.
User custom fields object, to store custom data.
Raw user data received from the server. For more information, see Open Cloud Users API.
User email.
The user's email confirmation code, or an empty string if the email has already been confirmed.
To send the confirmation code to the server, use Client.confirmUserEmail().
First name.
Full name. Returns the user's first and last name. If first name and last names are empty, returns the user name.
Unique user ID.
User initials. Returns a first letters of the user's first and last names. If first name and last names are empty, returns the first letter of the user name.
true
if user is an administrator.
Only administrators can change user type.
false
if the user has not yet confirmed his email address.
User last update time (UTC) in the format specified in ISO 8601.
Last name.
User last sign in time (UTC) in the format specified in ISO 8601.
The maximum number of projects that a user can create.
Only administrators can change projects limit.
The identity provider used to create the account. Can be ldap
, oauth
, saml
or empty for local
accounts.
User storage size on the server for uploading files.
Only administrators can change storage size.
The total size of the user's files in the storage.
The user's access token (API key). Use Client.signInWithToken() to sign in to the server using this token.
User name.
Changes the user password.
Only administrators can change the passwords of other users. If the current logged in user is not an administrator, they can only change their password, otherwise an exception will be thrown.
To change their password, non-administrator users must specify their old password.
New user password.
Optional
oldPassword: stringOld user password. Only required for non-administrator users to change their password.
Deletes a user from the server.
Only administrators can delete users. If the current logged in user is not an administrator, an exception will be thrown.
Administrators can delete themselves or other administrators. An administrator can only delete themself if they is not the last administrator.
You need to re-login after deleting the current logged in user.
Returns the raw data of a deleted user. For more information, see Open Cloud Users API.
Sets or removes the user avatar.
Only administrators can set the avatar of other users. If the current logged in user is not an administrator, they can only set their avatar, otherwise an exception will be thrown.
Optional
image: BodyInitAvatar image. Can be a
Data URL string,
ArrayBuffer,
Blob or
Web API File object. Setting the image
to null
will remove the avatar.
Updates user data on the server.
Only administrators can update other users. If the current logged in user is not an administrator, they can only update themself, otherwise an exception will be thrown.
Raw user data. For more information, see Open Cloud Users API.
Provides properties and methods for obtaining information about a Open Cloud Server user and manage its data.