Skip to content

Instantly share code, notes, and snippets.

@splinter
Last active April 11, 2016 10:11
Show Gist options
  • Save splinter/e90eebc36b04804faea36114193be33b to your computer and use it in GitHub Desktop.
Save splinter/e90eebc36b04804faea36114193be33b to your computer and use it in GitHub Desktop.
Accessing tenant details for the current user in the ES/G-Reg Store
var tenantApi = require('/modules/tenant-api.js').api;
var tenantDetails = tenantApi.createTenantDetails(request,session);
print('Tenant Id: '+tenantDetails.tenantId);
print('Tenant domain: '+tenantDetails.domain);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment