Skip to main content

users

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

Overview

Nameusers
TypeResource
Idaws.finspace_data.users

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
api_accessstringIndicates whether the user can use the GetProgrammaticAccessCredentials API to obtain credentials that can then be used to access other FinSpace Data API operations. ENABLED – The user has permissions to use the APIs. DISABLED – The user does not have permissions to use any APIs. (ENABLED, DISABLED)
api_access_principal_arnstringThe ARN identifier of an AWS user or role that is allowed to call the GetProgrammaticAccessCredentials API to obtain a credentials token for a specific FinSpace user. This must be an IAM role within your FinSpace account. (pattern: <code>^arn:aws[a-z-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@-_/]+$</code>)
create_timeinteger (int64)Milliseconds since UTC epoch
email_addressstringThe email address of the user. The email address serves as a uniquer identifier for each user and cannot be changed after it's created. (pattern: <code>[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+.[A-Za-z]{2,4}</code>)
first_namestringThe first name of the user. (pattern: <code>.\S.</code>)
last_disabled_timeinteger (int64)Milliseconds since UTC epoch
last_enabled_timeinteger (int64)Milliseconds since UTC epoch
last_login_timeinteger (int64)Milliseconds since UTC epoch
last_modified_timeinteger (int64)Milliseconds since UTC epoch
last_namestringThe last name of the user. (pattern: <code>.\S.</code>)
statusstringThe current status of the user. CREATING – The user creation is in progress. ENABLED – The user is created and is currently active. DISABLED – The user is currently inactive. (CREATING, ENABLED, DISABLED)
type_stringIndicates the type of user. SUPER_USER – A user with permission to all the functionality and data in FinSpace. APP_USER – A user with specific permissions in FinSpace. The users are assigned permissions by adding them to a permission group. (SUPER_USER, APP_USER)
user_idstringThe unique identifier for the user. (pattern: <code>.\S.</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_usersselectmaxResults, regionnextTokenLists all available users in FinSpace.
get_userselectuser_id, regionRetrieves details for a specific user.
create_userinsertregion, emailAddress, typeCreates a new user in FinSpace.
update_userupdateuser_id, regionModifies the details of the specified user. You cannot update the userId for a user.
disable_userexecuser_id, regionDenies access to the FinSpace web application and API for the specified user.
enable_userexecuser_id, regionAllows the specified user to access the FinSpace web application and API.
reset_user_passwordexecuser_id, regionResets the password for a specified user ID and generates a temporary one. Only a superuser can reset password for other users. Resetting the password immediately invalidates the previous password associated with the user.

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
maxResultsintegerThe maximum number of results per page.
regionstringAWS region (default: us-east-1)
user_idstringThe unique identifier of the user that a temporary password is requested for.
nextTokenstringA token that indicates where a results page should begin.

SELECT examples

Lists all available users in FinSpace.

SELECT
api_access,
api_access_principal_arn,
create_time,
email_address,
first_name,
last_disabled_time,
last_enabled_time,
last_login_time,
last_modified_time,
last_name,
status,
type_,
user_id
FROM aws.finspace_data.users
WHERE maxResults = '{{ maxResults }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
;

INSERT examples

Creates a new user in FinSpace.

INSERT INTO aws.finspace_data.users (
emailAddress,
type,
firstName,
lastName,
apiAccess,
apiAccessPrincipalArn,
clientToken,
region
)
SELECT
'{{ emailAddress }}' /* required */,
'{{ type }}' /* required */,
'{{ firstName }}',
'{{ lastName }}',
'{{ apiAccess }}',
'{{ apiAccessPrincipalArn }}',
'{{ clientToken }}',
'{{ region }}'
RETURNING
user_id
;

UPDATE examples

Modifies the details of the specified user. You cannot update the userId for a user.

UPDATE aws.finspace_data.users
SET
type = '{{ type }}',
firstName = '{{ firstName }}',
lastName = '{{ lastName }}',
apiAccess = '{{ apiAccess }}',
apiAccessPrincipalArn = '{{ apiAccessPrincipalArn }}',
clientToken = '{{ clientToken }}'
WHERE
user_id = '{{ user_id }}' --required
AND region = '{{ region }}' --required
RETURNING
user_id;

Lifecycle Methods

Denies access to the FinSpace web application and API for the specified user.

EXEC aws.finspace_data.users.disable_user
@user_id='{{ user_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"clientToken": "{{ clientToken }}"
}'
;