This can be done by introducing another field to your section - I have used "VAR" (see script). I then produce another table (Profile) which is the table used within the qvw (the Section Access table cannot be used directly due to it being hidden).
Thus, my users have different functionality available to them within the qvw. The two users are;
You will need to enter these upon accessing the model (if you switch users you will need to close QV Desktop entirely).
As you will see, depending upon the user, the qvw will open with different sheets open, different buttons available and, as you requested, different columns available within the Straight Table, as the expressions are hidden depending upon your role. You cannot allow user to access the objects properties as they could switch the object to a pivot table which switches off the hide functionality.
To apply this to a pivot table, simply multiply the expression by "ThisRole" (0) to hide from USER1. Or if you have a complex authorisation model, use an IF statement.
I hope this answers your questions, let me know how you get on.
AuthExample.qvw 149.8 K