Hi,

In AppManager it uses the below method to get the tenant Id:

*var tenant=server.tenant(request,session);*
*var tenantId =tenant.tenantId;*

On Tue, Nov 18, 2014 at 1:52 PM, Supun Sethunga <[email protected]> wrote:

> Hi,
>
> How can do $subject?
>
> I was able to get the Tenant Domain as follows though.
>
> var user=jagg.getUser();
> var MultitenantUtils =
> Packages.org.wso2.carbon.utils.multitenancy.MultitenantUtils;
> var tenantDomain = MultitenantUtils.getTenantDomain(user);
>
> Thanks,
> Supun
>
> --
> *Supun Sethunga*
> Software Engineer
> WSO2, Inc.
> lean | enterprise | middleware
> Mobile : +94 716546324
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Lahiru Cooray*
Software Engineer
WSO2, Inc.;http://wso2.com/
lean.enterprise.middleware

Mobile: +94 715 654154
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to