Skip to main content

invitations

Creates, updates, deletes, gets or lists an invitations resource.

Overview

Nameinvitations
TypeResource
Idconfluent.iam.invitations

Fields

The following fields are returned by SELECT queries:

Invitation.

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)
accepted_atstring (date-time)The timestamp that the invitation was accepted (example: 2022-07-06T17:21:33.000Z)
api_versionstringAPIVersion defines the schema version of this representation of a resource. (iam/v2)
auth_typestringThe user/invitee's authentication type. Note that only the OrganizationAdmin role can invite AUTH_TYPE_LOCAL users to SSO organizations. The user's auth_type is set as AUTH_TYPE_SSO by default if the organization has SSO enabled. Otherwise, the user's auth_type is AUTH_TYPE_LOCAL by default. (example: AUTH_TYPE_SSO)
creatorobjectThe invitation creator
emailstring (email)The user/invitee's email address (example: johndoe@confluent.io)
expires_atstring (date-time)The timestamp that the invitation will expire (example: 2022-07-07T17:22:39.000Z)
kindstringKind defines the object this REST resource represents. (Invitation)
metadataobjectObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
statusstringThe status of invitations (example: INVITE_STATUS_SENT)
userobjectThe user/invitee

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_iam_v2_invitationselectidMake a request to read an invitation.
list_iam_v2_invitationsselectemail, status, user, creator, page_size, page_tokenRetrieve a sorted, filtered, paginated list of all invitations.
create_iam_v2_invitationinsertemailMake a request to create an invitation.

The newly invited user will not have any permissions. Give the user permission by assigning them to one or
more roles by creating
role bindings
for the created user.
delete_iam_v2_invitationdeleteidMake a request to delete an invitation.

Delete will deactivate the user if the user didn't accept the invitation yet.

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 invitation.
creatorstringFilter the results by exact match for creator. (example: u-m2r9o7)
emailstringFilter the results by exact match for email. (example: johndoe@confluent.io)
page_sizeintegerA pagination size for collection requests.
page_tokenstringAn opaque pagination token for collection requests.
statusstringFilter the results by exact match for status. (example: INVITE_STATUS_SENT)
userstringFilter the results by exact match for user. (example: u-j93dy8)

SELECT examples

Make a request to read an invitation.

SELECT
id,
accepted_at,
api_version,
auth_type,
creator,
email,
expires_at,
kind,
metadata,
status,
user
FROM confluent.iam.invitations
WHERE id = '{{ id }}' -- required
;

INSERT examples

Make a request to create an invitation.

The newly invited user will not have any permissions. Give the user permission by assigning them to one or
more roles by creating
role bindings
for the created user.

INSERT INTO confluent.iam.invitations (
email,
auth_type
)
SELECT
'{{ email }}' /* required */,
'{{ auth_type }}'
RETURNING
id,
accepted_at,
api_version,
auth_type,
creator,
email,
expires_at,
kind,
metadata,
status,
user
;

DELETE examples

Make a request to delete an invitation.

Delete will deactivate the user if the user didn't accept the invitation yet.

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