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, Tharindu Edirisinghe <tharin...@wso2.com>
wrote:

> 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 retrieve the email address of the admin user of the tenant, I believe we
> receive the tenant's email address.
>
> For super tenant, since we don't create it (automatically created), we
> don't specify the email address for the tenant (like for other tenants).
> Then I believe what you need to retrieve is the email address defined in
> super tenant admin's profile.
>
> Is that the case ?
>
> Regards,
> TharinduE
>
>
>
> On Tue, Jul 11, 2017 at 7:09 PM, Godwin Shrimal <god...@wso2.com> wrote:
>
>> Hi Ayesh,
>>
>> What I want is super tenant admin email.
>>
>>
>> Thanks
>> Godwin
>>
>> On Jul 11, 2017 12:17 AM, "Ayesha Dissanayaka" <aye...@wso2.com> wrote:
>>
>>> Hi Godwin,
>>>
>>> You can admin username from carbon context when in super-tenant flow.
>>>
>>> PrivilegedCarbonContext.getThreadLocalCarbonContext().getUse
>>> rRealm().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
>>
>>
>
>
> --
>
> Tharindu Edirisinghe
> Senior Software Engineer | WSO2 Inc
> Platform Security Team
> Blog : http://tharindue.blogspot.com
> mobile : +94 775181586 <+94%2077%20518%201586>
>



-- 
*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

Reply via email to