Setting app security to use $currentUser

0
Hi, I’m new to mendix I’m trying to retrieve the account with xpath [id = $currentUser], but $currentUser is not available for use How can I show it? my app is in Prototype/demo security level and I set it up as in https://docs.mendix.com/howto/security/create-a-secure-app 
asked
1 answers
0

Where do you need to retrieve that account? You should be able to retrieve the current user any time (except in rare situations). 

For example if you are in a page, and need to retrieve the current account. you can create a dataview with a microflow datasource that will retrieve the account using the “id = $currentUser”

answered