Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
ilanbaruch
Specialist
Specialist

Qlik Saas - OsUser()

Hi all,

I'm new to Qlik Cloud ...

using OsUser() to message and guide users in UI.

in Saas i recieve somthing not familiar.. 

ilanbaruch_0-1625553510762.png

any ideas ?

advanced thanks 

1 Solution

Accepted Solutions
ilanbaruch
Specialist
Specialist
Author

change the Identity provider sub to email

View solution in original post

10 Replies
madsgrathe
Partner - Creator
Partner - Creator

It seems that the Email field is not configured correctly in your identity provider.

When I use the OSUser() function in Qlik SaaS, I am presented with the email of the user.

When you navigate to the Management Console and "Users", can you see the email of the individual users?

BTW, I have no idea how to fix this but this is where I would start to look...

ilanbaruch
Specialist
Specialist
Author

Many thanks Madsgrathe for your replay,

I have email in QMC User list but still I receive a long string instead.

tried it also with QVUser() , didn't work 

Rajini
Contributor
Contributor

Hi,

Even I am facing the same issue. @ilanbaruch Did you find any solution for the same ?

ilanbaruch
Specialist
Specialist
Author

Hi @Rajini ,

I didn't find a solution yet.

ilanbaruch
Specialist
Specialist
Author

change the Identity provider sub to email

timmy
Partner - Contributor III
Partner - Contributor III

Hi,

Do you mean, change the sub in the Qlik SAAS mgmt console settings (claims mapping) to email?

timmy_0-1641375430360.png

 

scottduthie
Partner Ambassador
Partner Ambassador

I have changed the 'sub' value to 'email' like this:

scottduthie_1-1642361735936.png

But when using the 'OSuser()' function I still get a numeric code like this instead of email:

scottduthie_0-1642361682524.png

Is there anything else you need to do to get the 'OSuser()' function to return the user's email?

ilanbaruch
Specialist
Specialist
Author

hi,

after changing to email, you have to authenticate again against AD (azure)

scottduthie
Partner Ambassador
Partner Ambassador

Hi,

What if you're not using an external Idp, and you're just leveraging local accounts created in SaaS - is there a way to return the logged in user's email address or username instead of the lengthily user Id?