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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Can we apply security on button??

Can we apply security on button??

1 Solution

Accepted Solutions
salto
Specialist II
Specialist II

Sorry,

I did not write the correct syntax.
In the box, you need to write this;

=(osuser()='DOMAIN\username')

You also need to add at least one action to the button, otherwise it will always be disabled!

Regards

View solution in original post

5 Replies
salto
Specialist II
Specialist II

Hi,

Yes, please have a look at the General -> Enable Condition box in the button properties.

The button will be enabled or not depending on the condition in the box.

If you need to enable / disable depending on the username, you can try using the OsUser() command in the box:

=Osuser('Domain\Username')

Regards.

Not applicable
Author

Thanks SALTO ,

But this is not working for me.

=Osuser('Domain\Username')

salto
Specialist II
Specialist II

Sorry,

I did not write the correct syntax.
In the box, you need to write this;

=(osuser()='DOMAIN\username')

You also need to add at least one action to the button, otherwise it will always be disabled!

Regards

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try something like =if(OSUser()='MyDomain\MyUser',1,0). Replace MyDomain\MyUser with the correct domain and user name. If you have more user names that should be considered perhaps you should use section access. Here's an example for sheets, but the same method will work fine for buttons too since they both use the conditional display option of the objects.


talk is cheap, supply exceeds demand
Not applicable
Author

Dear SALTO,

is it possible??.. when i  click on button it would ask for Username and Password.