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 <aye...@wso2.com> wrote: > 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 <god...@wso2.com> wrote: > >> 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: *+94772264165* >> linkedin: *http://lnkd.in/KUum6D <http://lnkd.in/KUum6D>* >> twitter: https://twitter.com/godwinamila >> <http://wso2.com/signature> >> >> _______________________________________________ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *Ayesha Dissanayaka* > Senior Software Engineer, > WSO2, Inc : http://wso2.com > <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg> > 20, Palm grove Avenue, Colombo 3 > E-Mail: aye...@wso2.com <ayshsa...@gmail.com> > > _______________________________________________ > Dev mailing list > Dev@wso2.org > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Sudharma Subasinghe, Software Engineer, WSO2 Inc. Email: sudhar...@wso2.com <hasi...@wso2.com> Mobile : +94 710 565 157 <%2B94%20718%20210%20200>
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev