Cellsecurity rules

Post Reply
Wim Gielis
MVP
Posts: 3113
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.0.9.18
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Cellsecurity rules

Post by Wim Gielis »

Hi all,

A thought experiment on writing rules for a cell security cube.

Usually we restrict the dimensionality in such a cube to the bare minimum, including Scenario / Version / Year / Period / Company / Measure.
We could have cube security for the main cube, element security on several dimensions, and cell security.
Also, often, we have a securty parameter cube where admin users can open or close periods for certain scenario/version combinations, or lock a scenario/version for all periods.

Let's assume we have empty cells, or NONE, or READ, or WRITE. Incidentally, these are in alphabetical order and also with increasing access to the objects.

I was thinking if the alphabetical order can play a role in our rules on the cell security cube. For example, here is a 2D test cube. Each column is a different 'comparison'. Like, S1 refers to CubeSecurity, and S2 refers to rights from the securtity parameter cube. Then we compare the cell contents:

Code: Select all

['S3'] = S: If( DB( 'test', !temp, 'S1' ) @<= DB( 'test', !temp, 'S2' ),
     DB( 'test', !temp, 'S1' ),
     DB( 'test', !temp, 'S2' ));
S3 is the result of comparing texts. Not only could this approach improve efficiency, also it can greatly reduce a number of IF-statements. Even if the DB( ) formulas are not as easy as below, it can still be interesting.
Capture.JPG
Capture.JPG (41.22 KiB) Viewed 2467 times
Or do you use the approach with }CubeSecurityProperties:
Capture2.JPG
Capture2.JPG (46.62 KiB) Viewed 2464 times
Any thoughts ? :-)
Best regards,

Wim Gielis

IBM Champion 2024
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Drg
Regular Participant
Posts: 159
Joined: Fri Aug 12, 2016 10:02 am
OLAP Product: tm1
Version: 10.2.0 - 10.3.0
Excel Version: 2010

Re: Cellsecurity rules

Post by Drg »

Wow Wim thats great idea.

never before thought about the string comparison mechanism, but it is most likely bitwise.
If you want, you can tell the Choate for the properties of the cube on the last screen, I'm not quite familiar with the method of their work.
User avatar
Elessar
Community Contributor
Posts: 340
Joined: Mon Nov 21, 2011 12:33 pm
OLAP Product: PA 2
Version: 2.0.9
Excel Version: 2016
Contact:

Re: Cellsecurity rules

Post by Elessar »

Just to prevent the others like me to waste their time and "Run and look at the 'min' function in documentation, don't beleive it and try to write it on a sample TM1 server with strings": no, it works with numbers only :(
Best regards, Alexander Dvoynev

TM1 and Data Science blog: 6th article - PAfE + VBA: Commit each cell without pressing “Commit” button.
Post Reply