Open this page in the API Guide

Account.getActiveAssignedTenantId Method

Gets the active tenant ID for the account, restricted to tenants assigned to the account.