Qlik Community

Ask a Question

App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Announcements
Join us for a live Q&A! September 21, 10 AM ET - Onboarding Fast in Qlik Sense SaaS! REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Federico_Rizzello

Function OSUser() alternative on Qlik Sense Mobile

Hi to all,

I'm trying to identify the current logged user in my app. My goal is to show a welcome message like "Hello Federico". I'm basing this on the function OSUser(), using subfield to get the current UserId.

The problem is that OSUser() on Qlik Sense Mobile doesn't work as in QSE:

OSUser

This function returns a string containing the name of the user that is currently connected. It can be used in both the data load script and in a chart expression.

OSUser( )

Note:In Qlik Sense Desktop and Qlik Sense Mobile, this function always returns 'Personal\Me'.

 

Is there a workaround to get the current userId in Qlik Sense Mobile? Is there any other alternative to identify my user by login?

 

Thanks for any advice. Have a nice day

- FR

Labels (1)
1 Solution

Accepted Solutions
Vegar
MVP
MVP

I'm not aware of any function that will present the username for you, but you could solve this by section access. Creating a data island table containing the user name and then setup a section access reduction on that table. Leaving every user with only one Field value, the user name. Then you could just use the expression =only([user name]) to fetch the user name in the gui. 

Plees ekskuse my Swenglish and or Norweglish spelling misstakes

View solution in original post

2 Replies
Vegar
MVP
MVP

I'm not aware of any function that will present the username for you, but you could solve this by section access. Creating a data island table containing the user name and then setup a section access reduction on that table. Leaving every user with only one Field value, the user name. Then you could just use the expression =only([user name]) to fetch the user name in the gui. 

Plees ekskuse my Swenglish and or Norweglish spelling misstakes

View solution in original post

Federico_Rizzello
Author

Hi Vegar, nice workaround! I'll try as soon as possible. Thanks for your help, it was much appreciated.

Best wishes.

FR