You can use TenantManager.getTenant(tenantID).getAdminName() as well. Thanks & Regards Danushka Fernando Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729
On Thu, Feb 12, 2015 at 10:05 AM, Akalanka Pagoda Arachchi < [email protected]> wrote: > Hi Ajith, > > Yes, was able to retrieve it from CarbonContext. Thanks. > > CarbonContext carbonContext = > CarbonContext.getThreadLocalCarbonContext(); > try { > String adminUserName = > carbonContext.getUserRealm().getRealmConfiguration().getAdminUserName(); > > Akalanka. > > On Thu, Feb 12, 2015 at 8:46 AM, Ajith Vitharana <[email protected]> wrote: > >> [1]https://docs.wso2.com/display/Carbon420/CarbonContext+API >> >> -Ajith >> >> On Wed, Feb 11, 2015 at 10:13 PM, Akalanka Pagoda Arachchi < >> [email protected]> wrote: >> >>> Hi all, >>> >>> Super tenant admin name is 'admin'. Is there a way to programatically >>> retrieve this without hardcoding it? >>> >>> Thanks, >>> Akalanka. >>> >>> -- >>> *Darshana Akalanka Pagoda Arachchi,* >>> *Software Engineer* >>> *078-4721791 <078-4721791>* >>> >>> _______________________________________________ >>> Dev mailing list >>> [email protected] >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Ajith Vitharana. >> WSO2 Inc. - http://wso2.org >> Email : [email protected] >> Mobile : +1-812-360-5335 >> >> > > > -- > *Darshana Akalanka Pagoda Arachchi,* > *Software Engineer* > *078-4721791* > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
