I read the link but couldn't get what is the issue. "Run with full access" make the script run with full access, not the user to behave as full access. So while the script is pausing, user can't do "manage database" for example, then the function should return "not full access".
For your issue, there is an idea that changing the privilege to something like
Get(ScriptName) = "script to use" or not Archive Flag
or use layout name to see archived records instead of script name.
Thanks for your reply @user19752
What I really need to do it to be able to run a script which performs a find as a different account (e.g. read only account, full access account) so that it returns records that are otherwise hidden for the account of the user.
Change your privilege to [Table]->View = limited -> Archive Flag <> True or $$hidden="show". Run a script that set $$hidden to show when you want to be able to see the hidden records. You might need to use a refresh window step in the script.
Did you try my suggestion that changing privilege?
Script can find (and do anything) but user can't interact with found set of the script "run with full access".
Using layout/script name or additional flag for "now need to see archived records" in access privilege may resolve your issue.
Thanks user19752 and @rgordon
I think the $$hidden show is exactly what I need. I'm doing lots of portal and list filtering for various purposes using flags, dates and statuses. I think you just saved me a lot of time!
Thanks a lot guys.