Table of Contents

TAureliusTenantCatalog.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

Identifiers allow resolving the tenant from data that is not the tenant id itself, through FindTenantByIdentifier or the tenant lookups of the TMS XData tenant connection pool. Raises ETenantNotFound if the tenant is unknown. The cached mapping is invalidated, so the change is effective immediately.

Syntax

Unit: Aurelius.Comp.TenantCatalog

procedure TAureliusTenantCatalog.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