How to retrieve current logged in user email address in a mendix app

0
I have tried $currentUser/Name , it shows the username of logged in  User. I could not find the attribute name email for User Entity in System Domain mode. Any help is appreciated. thanks
asked
5 answers
1

Hi, 

I assume you have Administration module which has Account entity and capture the email with that entity.

As you already figured out, you must use $currentUser to get the current logged in user, you can pass that to a microflow, use inheritance and cast it to Account. Something like below and use the account object to get the Email

answered
0

Thanks for the reply, I do not have administrator module. I have the following modules :

Do you know how to add administrator module?

answered
0

In version 8.17 you can find the account entity in the domain model as found in appstore modules / administration 

answered
0

If Administration module is present, it can be found here: Project ‘MailService’- App Store modules.

answered
0

Thanks a lot. Got it.

answered