I needed a simple solution to show/hide Objects in QlikView. Normally we would want to show/hide particular sheets on a document but this script will work with any QV object so you can introduce a high level of granularity to the permission model.
For a proof of concept we pulled the permissions from a spreadsheet as in the example below;