Skip to main content

current_users

Creates, updates, deletes, gets or lists a current_users resource.

Overview

Namecurrent_users
TypeResource
Idaws.workdocs.current_users

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_timestampstring (date-time)The time when the user was created.
email_addressstringThe email address of the user. (pattern: <code>[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}</code>)
given_namestringThe given name of the user.
idstringThe ID of the user. (pattern: <code>[&\w+-.@]+</code>)
localestringThe locale of the user. (en, fr, ko, de, es, ja, ru, zh_CN, zh_TW, pt_BR, default)
modified_timestampstring (date-time)The time when the user was modified.
organization_idstringThe ID of the organization. (pattern: <code>[&\w+-.@]+</code>)
recycle_bin_folder_idstringThe ID of the recycle bin folder. (pattern: <code>[\w+-.@]+</code>)
root_folder_idstringThe ID of the root folder. (pattern: <code>[\w+-.@]+</code>)
statusstringThe status of the user. (ACTIVE, INACTIVE, PENDING)
storageobjectThe storage for the user.
surnamestringThe surname of the user.
time_zone_idstringThe time zone ID of the user.
typestringThe type of user. (USER, ADMIN, POWERUSER, MINIMALUSER, WORKSPACESUSER)
usernamestringThe login name of the user. (pattern: <code>[\w-+.]+(@[a-zA-Z0-9.-]+.[a-zA-Z]+)?</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_current_userselectAuthentication, regionRetrieves details of the current user for whom the authentication token was generated. This is not a valid action for SigV4 (administrative API) clients. This action requires an authentication token. To get an authentication token, register an application with Amazon WorkDocs. For more information, see Authentication and Access Control for User Applications in the Amazon WorkDocs Developer Guide.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
AuthenticationstringAmazon WorkDocs authentication token.
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves details of the current user for whom the authentication token was generated. This is not a valid action for SigV4 (administrative API) clients. This action requires an authentication token. To get an authentication token, register an application with Amazon WorkDocs. For more information, see Authentication and Access Control for User Applications in the Amazon WorkDocs Developer Guide.

SELECT
created_timestamp,
email_address,
given_name,
id,
locale,
modified_timestamp,
organization_id,
recycle_bin_folder_id,
root_folder_id,
status,
storage,
surname,
time_zone_id,
type,
username
FROM aws.workdocs.current_users
WHERE Authentication = '{{ Authentication }}' -- required
AND region = '{{ region }}' -- required
;