Hi Manu, You can use the code below. It gives the admin username of any tenant.
UserRealm realm = (UserRealm) CarbonContext.getThreadLocalCarbonContext().getUserRealm(); String tenantAdmin = realm.getRealmConfiguration().getAdminUserName(); Regards, TharinduE On Tue, Jul 28, 2015 at 6:16 PM, Manuranga Perera <[email protected]> wrote: > (it works for other tenants) > > On Tue, Jul 28, 2015 at 6:16 PM, Manuranga Perera <[email protected]> wrote: > >> getTenant form TenantManager returns null for super tenant. is there any >> other way to get tenant admin ? >> >> -- >> With regards, >> *Manu*ranga Perera. >> >> phone : 071 7 70 20 50 >> mail : [email protected] >> > > > > -- > With regards, > *Manu*ranga Perera. > > phone : 071 7 70 20 50 > mail : [email protected] > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Tharindu Edirisinghe Software Engineer | WSO2 Inc Identity Server Team Blog : tharindue.blogspot.com mobile : +94 775 181586
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
