REVOKE INVITATION

Syntax

REVOKE INVITATION invitaton_id;

Description

This command revokes an existing invitation to join an organization.

Only a role with MANAGE_MEMBERS privileges can revoke pending invitations.

Arguments

invitation_id

Specifies the id of the invitation to revoke. Retrieved pending invitation IDs from LIST INVITATIONS.

Example

demodb.public/demostore# LIST PENDING INVITATIONS;
+--------------------------------------+------------+-------------------------+-----------------------------+---------------------+---------------+-------------------------------+-------------------------------+
|  ID                                  |  Org Name  |  Email Address          |  Invited By                 |  User Roles         |  Default Role |  Created At                   |  Updated At                   |
+======================================+============+=========================+=============================+=====================+===============+===============================+===============================+
| 9439f004-a7e6-40f1-a6c9-d781777d17fc | test       | member_2@deltastream.io | team_manager@deltastream.io | useradmin, sysadmin | useradmin     | 2024-05-13 20:44:58 +0000 UTC | 2024-05-13 20:44:58 +0000 UTC |
+--------------------------------------+------------+-------------------------+-----------------------------+---------------------+---------------+-------------------------------+-------------------------------+
demodb.public/demostore# REVOKE INVITATION 9439f004-a7e6-40f1-a6c9-d781777d17fc;
+------------+--------------------------------------+------------+------------------------------------------+
|  Type      |  Name                                |  Command   |  Summary                                 |
+============+======================================+============+==========================================+
| invitation | 9439f004-a7e6-40f1-a6c9-d781777d17fc | DROP       | invitation to organization               |
|            |                                      |            | "33c5caaf-d1bc-45d5-abc9-af987aa4d215"   |
|            |                                      |            | for                                      |
|            |                                      |            | "member_2@deltastream.io" was revoked    |
+------------+--------------------------------------+------------+------------------------------------------+

Last updated