Skip to main content

users

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

Overview​

Nameusers
TypeResource
Idconfluent.iam.users

Fields​

The following fields are returned by SELECT queries:

User.

NameDatatypeDescription
idstringID is the "natural identifier" for an object within its scope/namespace; it is normally unique across time but not space. That is, you can assume that the ID will not be reclaimed and reused after an object is deleted ("time"); however, it may collide with IDs for other object kinds or objects of the same kind within a different scope/namespace ("space"). (example: dlz-f3a90de)
full_namestringThe user's full name (example: Marty McFly)
api_versionstringAPIVersion defines the schema version of this representation of a resource. (iam/v2)
auth_typestringThe user's authentication method (example: AUTH_TYPE_SSO)
emailstring (email)The user's email address (example: marty.mcfly@example.com)
kindstringKind defines the object this REST resource represents. (User)
metadataobjectObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_iam_v2_userselectidMake a request to read a user.
list_iam_v2_usersselectpage_size, page_tokenRetrieve a sorted, filtered, paginated list of all users.
update_iam_v2_userupdateidMake a request to update a user.

delete_iam_v2_userdeleteidMake a request to delete a user.

If successful, this request will also recursively delete all of the user's associated resources,
including its cloud and cluster API keys.
update_auth_type_iam_v2_userexecidUpdate the auth type of a 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
idstringThe unique identifier for the user.
page_sizeintegerA pagination size for collection requests.
page_tokenstringAn opaque pagination token for collection requests.

SELECT examples​

Make a request to read a user.

SELECT
id,
full_name,
api_version,
auth_type,
email,
kind,
metadata
FROM confluent.iam.users
WHERE id = '{{ id }}' -- required
;

UPDATE examples​

Make a request to update a user.

UPDATE confluent.iam.users
SET
email = '{{ email }}',
full_name = '{{ full_name }}'
WHERE
id = '{{ id }}' --required
RETURNING
id,
full_name,
api_version,
auth_type,
email,
kind,
metadata;

DELETE examples​

Make a request to delete a user.

If successful, this request will also recursively delete all of the user's associated resources,
including its cloud and cluster API keys.

DELETE FROM confluent.iam.users
WHERE id = '{{ id }}' --required
;

Lifecycle Methods​

Update the auth type of a user

EXEC confluent.iam.users.update_auth_type_iam_v2_user
@id='{{ id }}' --required
@@json=
'{
"auth_type": "{{ auth_type }}"
}'
;