Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
sridhar_sigired
Creator
Creator

Show/hide sheet for few users

Hi,

I have one sheet where i need to show only few users. Can we do this without using section access? If yes, how we can achieve this?

If No, can have process how can we do this? Please help me. Thanks.

Regards,

Sridhar

1 Solution

Accepted Solutions
adamdavi3s
Master
Master

Try adding the negative result to the IF as well

=if(match(Upper(OSUser()),'CTC\SRIDHAR_S',  'CTC\RAJESH_Y',  'CTC\BHOPESH_Y')>0,1,0)

=if(match(Upper(OSUser()), 'CTC\RAJESH_Y',  'CTC\BHOPESH_Y')>0,1,0)

View solution in original post

12 Replies
c_gilbert
Creator II
Creator II

You could use a button which controls a variable (and have it say something like "Show X sheet"), then you could change the show condition of that sheet to correspond with the variable.

Anonymous
Not applicable

you can use osuser() to get the Name of user

then pass to a variable like

vSheetAllowed= (if (osuser()<>'NAME1' and osuser() <> 'NAME2',1,0)

look for exact Format of osuser()

then you may define in sheet properties, Show conditional

vSheetAllowed=1

sridhar_sigired
Creator
Creator
Author

Hi,

Can we create variable like below?  I have to give access of sheet to 3 users.

vSheetAllowed= (if (osuser()='NAME1' or osuser() = 'NAME2' or osuser() = 'NAME3',1,0)

MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Try like this:

Screenshot_1.jpg

Screenshot_2.jpg

adamdavi3s
Master
Master

Hi,


You can use OSUSER() OR QVUSER() Function and then match this to a table which control access.


Please see the attached example app, just change your username in the load script.


There are two additional tabs which will show / hide depending on the setting you make




sridhar_sigired
Creator
Creator
Author

Hi,

If we implement this, Jonny and Joe are going to see sheet? or... I have tried this, but could not able to get...

sridhar_sigired
Creator
Creator
Author

In this case, do we need to add all user information to whom we are giving file access?

Or only those users are enough to whom we need to show this sheet?

richard_chilvers
Specialist
Specialist

...that's up to you depending on how your write your conditional statement. If only a couple of people need to see the sheet, its quicker and easier to just include their user IDs in the statement, as mindaugasbacius has shown above.

adamdavi3s
Master
Master

In my example, only those who need to see the sheet as if the user doesn't exist it shouldn't be true and so the sheets won't show at all.

*edit* sorry no that isn't true which is interesting. Let me amend the formula slightly