Niv Machlis
12/25/2025, 10:29 AMMickey Hovel
12/25/2025, 11:54 AMKarin Zano
12/25/2025, 11:56 AMMickey Hovel
12/25/2025, 11:57 AMKarin Zano
12/25/2025, 11:57 AMReuven Zabirov
12/25/2025, 12:12 PMMickey Hovel
12/25/2025, 12:12 PMReuven Zabirov
12/25/2025, 12:16 PMReuven Zabirov
12/25/2025, 12:19 PMNiv Machlis
12/25/2025, 12:25 PMMickey Hovel
12/25/2025, 12:33 PMReuven Zabirov
12/25/2025, 12:43 PM@descope/node-sdk@next
a version will follow in the next few days or weeks.Reuven Zabirov
12/25/2025, 12:47 PMMickey Hovel
12/25/2025, 12:48 PMReuven Zabirov
12/25/2025, 12:59 PMconst parentTenantId = "id";
// Test 2: Create a child tenant with parent reference
console.log('\n2️⃣ Creating a child tenant with parent reference...');
const childTenant = await descopeClient.management.tenant.create(
'Child Department',
['<http://child.example.com|child.example.com>'],
{ department: 'Engineering' },
false, // enforceSSO
false, // disabled
parentTenantId // parent tenant ID
);
search
const searchResults = await descopeClient.management.tenant.searchAll(
undefined, // ids
undefined, // names
undefined, // selfProvisioningDomains
undefined, // customAttributes
parentTenantId // parentTenantId
);Mickey Hovel
12/25/2025, 1:00 PM