OrganizationDomain

@Serializable
data class OrganizationDomain(val id: String, val name: String, val organizationId: String, val enrollmentMode: String, val verification: OrganizationDomain.Verification? = null, val affiliationEmailAddress: String? = null, val totalPendingInvitations: Int, val createdAt: Long, val updatedAt: Long, val publicOrganizationData: PublicOrganizationData? = null, val totalPendingSuggestions: Int)

Represents an organization domain in the Clerk system.

Organization domains allow organizations to automatically enroll users based on their email domain and manage domain verification.

Constructors

Link copied to clipboard
constructor(id: String, name: String, organizationId: String, enrollmentMode: String, verification: OrganizationDomain.Verification? = null, affiliationEmailAddress: String? = null, totalPendingInvitations: Int, createdAt: Long, updatedAt: Long, publicOrganizationData: PublicOrganizationData? = null, totalPendingSuggestions: Int)

Types

Link copied to clipboard
@Serializable
data class Verification(val status: String, val strategy: String, val attempts: Int, val expireAt: Long? = null)

Represents the verification details for an organization domain.

Properties

Link copied to clipboard

The email address that was used to verify this organization domain, null if not verified

Link copied to clipboard

The date when the organization domain was created (Unix timestamp in milliseconds)

Link copied to clipboard

The enrollment mode for new users joining the organization

Link copied to clipboard
val id: String

Unique identifier for this organization domain

Link copied to clipboard

Name for this organization domain

Link copied to clipboard

The organization id of the organization this domain is for

Link copied to clipboard

The data's public organization.

Link copied to clipboard

The number of total pending invitations sent to emails that match the domain name

Link copied to clipboard

The number of pending suggestions for the organization domain.

Link copied to clipboard

The date when the organization domain was last updated (Unix timestamp in milliseconds)

Link copied to clipboard

The verification status and details of the domain

Functions

Link copied to clipboard

Attempts to verify the affiliation of this organization domain using a verification code.

Link copied to clipboard

Deletes this organization domain.

Link copied to clipboard

Prepares affiliation verification for this organization domain by sending a verification email.

Link copied to clipboard