Table of Contents

TTenantProvisioner.SaveIdentifier Method

Associates an external identifier (an API client id, a custom domain, a user id) with a tenant, replacing any previous association of the same identifier.

Remarks

Raises ETenantNotFound if the tenant is unknown. The cached mapping of the identifier is invalidated, so lookups through TTenantRoutingCache.FindTenantByIdentifier see the change immediately.

Syntax

Unit: Aurelius.Tenancy.Provisioning

procedure TTenantProvisioner.SaveIdentifier(const Name: string; const Value: string; const TenantId: string);

Parameters

<-> Parameter Type Description
const Name string The identifier name (for example, 'user_id').
const Value string The identifier value.
const TenantId string The id of the tenant the identifier maps to.

See also