You need to look for Section Access, the ADMIN and USER keywords for the ACCESS field from section Access are system values to restrict access to the document properties in an offline distribution solution and not for assigning any other access rights.
Like said, for assigning different rights look into section Access. You can look in the help (Security) or search the forum. e.g. Here's an introduction to section access:
Thank you for your answer, but I couldn't understand one more thing:
i.e. I have two different tabs on my document: Sheet1 and Sheet2
and I would like to have two different users: user1 and user2
What I would like to do is that user1 could see only Sheet1 and user2 – Sheet2.
What is more, I preffer that user1 can edit script and user2 don't have that option.
How the script should look like?
I've made an example for you, see attached, the passwords for opening this document can be found in the pasted script below. The user Administrator can see all and make changes to the document, User1 and User2 can see sheet1 and sheet2 respectively and not make changes
LOAD * Inline [ACCESS,USERID,PASSWORD, ACCESSGROUP
star is *;
LOAD * Inline [ACCESSGROUP
SectionAccess.qvw 143.5 K
If you want to prevent editing and reloading the script the you can make a source qvw which you keep for making changes and a copy of that document for distributing. In the source document\document properties you check the prohibit binary load option. In the copy of you replace all loadscript with a binary load statement of the source document. This copy of the original now has no load script to edit and will not reload the source as it is prohibited.