Skip to Content
Clerk logo

Clerk Docs

Ctrl + K
Go to clerk.com

revokeOrganizationInvitation()

Revokes an organization invitation from a user for the specified organization.

const organizationId = 'my-organization-id'; const invitationId = 'my-invitation-id'; const requestingUserId = 'my-user-id'; const organization = await clerkClient.organizations.revokeOrganizationInvitation({organizationId, invitationId, requestingUserId});

RevokeOrganizationInvitationParams

NameTypeDescription
organizationIdstringThe ID of the organization the user was invited to.
invitationIdstringThe ID of the invitation to be revoked.
requestingUserIdstringThe ID of the user revoking the organization invitation.

Last updated on August 16, 2023

What did you think of this content?

Clerk © 2023