Main Content

Magnolia Community Forums: Development: Get E-Mail of currentUser


  • proland
    proland
    Full name: Philipp Roland
    Posts: 11
    Last post: Mar 21, 2017 4:35:48 PM
    Get E-Mail of currentUser
    #1 by proland on Oct 25, 2016 10:31:32 AM

    Hi

    I'm looking for an easy way to get the E-Mail-Adress of the current User. Is there nothing like "MgnlContext.getUser().getEmail()"?

    What's the easiest way to solve this?

    Thanks in advance.
    Roland

  • had
    had
    Full name: Jan Haderka
    Posts: 1,405
    Last post: Feb 6, 2017 1:59:05 PM
    Re: Get E-Mail of currentUser
    #2 by had on Oct 31, 2016 5:01:45 PM

    IIRC MgnlContext.getUser().getProperty(MgnlUserManager.PROPERTY_EMAIL)

    HTH,
    Jan

  • proland
    proland
    Full name: Philipp Roland
    Posts: 11
    Last post: Mar 21, 2017 4:35:48 PM
    Re: Get E-Mail of currentUser
    #3 by proland on Dec 6, 2016 10:17:57 AM

    Hi Jan

    Sorry for my late answer. I saw the answer just now.

    Thanks a lot for your reply. This should do the trick.

    Cheers
    Roland

You don't have the permission to post on this thread

Sign in

To login on this forum, you can use your Magnolia Forge, Support or Partner account, or, below, your Google, Yahoo! or OpenID account. If you have trouble logging in, or any other sort of issue, please let us know in the Meta forum, on the user-list, or simply by email at forum-admin at magnolia-cms dot com.

* Required

... or sign in with:

  • icon http://{your-openid-url}
  • icon
  • icon https://me.yahoo.com/