[Dev] Get Super tenant admin email

2017-07-10 Thread Godwin Shrimal
Hi All, We cannot get super tenant information via TenantManager. Below code returns null, So how can we get the super tenant admin's email address ? *tenantManager.getTenant(-1234)* Thanks Godwin -- *Godwin Amila Shrimal* WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: *+94772

Re: [Dev] Get Super tenant admin email

2017-07-10 Thread Ayesha Dissanayaka
Hi Godwin, You can admin username from carbon context when in super-tenant flow. PrivilegedCarbonContext.getThreadLocalCarbonContext().getUserRealm().getRealmConfiguration() .getAdminUserName() Thanks! -Ayesha On Tue, Jul 11, 2017 at 7:35 AM, Godwin Shrimal wrote: > Hi Al

Re: [Dev] Get Super tenant admin email

2017-07-10 Thread Sudharma Subasinghe
We cannot obtain super tenant's email address via TenantManager as it is not set. On Tue, Jul 11, 2017 at 10:47 AM, Ayesha Dissanayaka wrote: > Hi Godwin, > > You can admin username from carbon context when in super-tenant flow. > > PrivilegedCarbonContext.getThreadLocalCarbonContext().getUserRe

Re: [Dev] Get Super tenant admin email

2017-07-11 Thread Godwin Shrimal
Hi Ayesh, What I want is super tenant admin email. Thanks Godwin On Jul 11, 2017 12:17 AM, "Ayesha Dissanayaka" wrote: > Hi Godwin, > > You can admin username from carbon context when in super-tenant flow. > > PrivilegedCarbonContext.getThreadLocalCarbonContext().getUserRealm(). > getRealmCon

Re: [Dev] Get Super tenant admin email

2017-07-14 Thread Tharindu Edirisinghe
Hi Godwin, Can't you get the email address of the admin as a user claim ? I created a new tenant and at the time of tenant creation, we need to specify the email address of the tenant admin. Then the same email address is added as the admin's email address in the profile of the admin. So, if we r

Re: [Dev] Get Super tenant admin email

2017-07-14 Thread Godwin Shrimal
What you told is correct Tharindu, We need to get it via claims of the users, not from Tenant. That's how I implemented. And we cannot change the tenant email address which we enter while creating and so righ thing is to get it from user store. Thanks Godwin On Fri, Jul 14, 2017 at 5:08 AM, Thar