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

Reply via email to