Page 1 of 1
Cube and Dimension Security
Posted: Thu Oct 22, 2009 5:38 am
by Alan Kirk
Am I just having a senior moment, or are there no intrinsic TI functions to assign security permissions to cubes and dimensions? (Other than doing a CellPutS to punch the permissions straight into }CubeSecurity or }DimensionSecurity cubes, obviously.)
For Element level security you've got ElementSecurityGet / ElementSecurityPut, but unless it's in an obscure part of the help file (not that I'd discount that...) I can't see any comparable functions for cubes and dimensions.
Re: Cube and Dimension Security
Posted: Thu Oct 22, 2009 6:04 am
by lotsaram
Seniors moment or not you are still correct (if you have another moment just have to remember that you can't CellPutS 'NONE' to a security cube, it has to be a blank string).
The same goes for cube locking/reserving (write to CubeProperties) dimension locking/reserving (write to DimensionProperties) and element locking/reserving (write to ElementProperties_<dimension>. Except that this last one is a conundrum as you can only lock an element this way not unlock it as once the element is locked this also applies to the ElementProperties cube in question. Releasing the lock can only be manual or via API call.)
Re: Cube and Dimension Security
Posted: Fri Aug 09, 2013 1:08 pm
by Darkhorse
Has there been a fix for this in tm10 or is it still a manual unlock?
Re: Cube and Dimension Security
Posted: Fri Aug 09, 2013 3:48 pm
by lotsaram
Darkhorse wrote:Has there been a fix for this in tm10 or is it still a manual unlock?
Depends what you mean by "manual". These functionality gaps still haven't been addressed (explicitly) if that's what you mean, but you can still get around it with CellPutS to the relevant cube in question (making sure it exists first and if need be create it on the fly).
Doesn't have to be manual though, this can all be automated with TI.
Also as you have dredged up an old post it gives an opportunity to correct what I stated about element locking which isn't correct as you can get around this in TI by using the CubeLockOverride function. It isn't really very well documented or even at all but by setting this function to true actually allows override to all LOCK level security and not just cube locking.
Re: Cube and Dimension Security
Posted: Fri Aug 09, 2013 4:05 pm
by Darkhorse
wow thanks,
I dredged this up because i was using the search function

as im having an issue where I want to lock closed elements but when i re run the TI i want to unlock them all first run some tests then relock the ones that fail the test. but I got through my loop the first time perfectly (as nothing was locked) but when i tried to unlock it failed misrably, I will look into this cube overide, if this overrides everything could i override the username in the lock function and return it to empty ?
Re: Cube and Dimension Security
Posted: Fri Aug 09, 2013 8:33 pm
by lotsaram
Darkhorse wrote:... if this overrides everything could i override the username in the lock function and return it to empty ?
Yes.
Re: Cube and Dimension Security
Posted: Sun Aug 11, 2013 12:02 am
by Darkhorse
Thanks all worked a treat
