Security Control cubes

Post Reply
appleglaze28
Regular Participant
Posts: 269
Joined: Tue Apr 21, 2009 3:43 am
OLAP Product: Cognos TM1, Planning
Version: 9.1 SP3 9.4 MR1 FP1 9.5
Excel Version: 2003

Security Control cubes

Post by appleglaze28 »

Hi Guys,

Just a question I wrote a rule to change the security of dimension base on the attribute of that dimension. I have a process that add elements on that dimension. How come when I check the cube, the cube's rights is update but not the actual access to those elements? The only time it updates is when I open Element Security tick on of the security setting and Save it and then open Element Security.

I tried taking out the rules out of the control cube for the security of that dimension...but it still retains a "NONE" rights for the users. Below is the rule I wrote for the security cube

Code: Select all

[{'ADMIN','SecurityAdmin', 'DataAdmin'}] = S: IF(DB('}ElementAttributes_base_worksheet_so_number',!base_worksheet_so_number,'so_approval')@='',STET,CONTINUE);
[{'ADMIN','SecurityAdmin', 'DataAdmin'}] = S: IF(DB('}ElementAttributes_base_worksheet_so_number',!base_worksheet_so_number,'so_approval')@<>'',STET,CONTINUE);
['}tp_Everyone'] = S: IF(DB('}ElementAttributes_base_worksheet_so_number',!base_worksheet_so_number,'so_approval')@='','WRITE','WRITE');
	
[{'Accounts Payable - S','Commission','Accounts Payable - M'}]= S: IF(DB('}ElementAttributes_base_worksheet_so_number',ELPAR('base_worksheet_so_number',!base_worksheet_so_number,1),'so_approval')@='No Approval','',CONTINUE);
[] = S: IF(DB('}ElementAttributes_base_worksheet_so_number',!base_worksheet_so_number,'so_approval')@<>'','READ',CONTINUE);
[] = S: IF(DB('}ElementAttributes_base_worksheet_so_number',!base_worksheet_so_number,'so_approval')@='Approved','READ','WRITE');

User avatar
Steve Vincent
Site Admin
Posts: 1054
Joined: Mon May 12, 2008 8:33 am
OLAP Product: TM1
Version: 10.2.2 FP1
Excel Version: 2010
Location: UK

Re: Security Control cubes

Post by Steve Vincent »

first up you need to ensure you are feeding the rules. i had no end of issues with security via rules and eventaully gave up, mainly over problems with feeding. second thing is you need to ensure security is refreshed if you have made changes to a dimension, especially when maintaining the security by rules.

i found the latter the biggest issue as the rules where too heavy on the cube, it stalled the server for far to llong so i replaced all the security maintenance with TIs.
If this were a dictatorship, it would be a heck of a lot easier, just so long as I'm the dictator.
Production: Planning Analytics 64 bit 2.0.5, Windows 2016 Server. Excel 2016, IE11 for t'internet
User avatar
qml
MVP
Posts: 1098
Joined: Mon Feb 01, 2010 1:01 pm
OLAP Product: TM1 / Planning Analytics
Version: 2.0.9 and all previous
Excel Version: 2007 - 2016
Location: London, UK, Europe

Re: Security Control cubes

Post by qml »

Steve,

You only need to feed your string cube (and security cubes are string cubes) if you use SKIPCHECK and you want to work with zero-supressed views. I wonder why you might need it in the first place. I would just write such rules with no SKIPCHECK and no FEEDSTRINGS and no FEEDERS.

And yes, you need to run SecurityRefresh after metadata updates if your security is rule-based.
Kamil Arendt
lotsaram
MVP
Posts: 3706
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: Security Control cubes

Post by lotsaram »

Steve Vincent wrote:first up you need to ensure you are feeding the rules. i had no end of issues with security via rules and eventaully gave up, mainly over problems with feeding. second thing is you need to ensure security is refreshed if you have made changes to a dimension, especially when maintaining the security by rules.

i found the latter the biggest issue as the rules where too heavy on the cube, it stalled the server for far to llong so i replaced all the security maintenance with TIs.
I use rules for element security all the time and have never had any issues, there is no need to use skipcheck, feeders or feedstrings in security cubes (UNLESS you use ViewConsolidationOptimisation=T in the config file, in which case things do get a whole lot more complicated ...) Just remember
as qml has mentioned that you need to do a security refresh after dimension updates to the dims using rule based security if new elements have been added (or attributes changed that affect security etc.) That is probably all the OP's problem is.
User avatar
Steve Vincent
Site Admin
Posts: 1054
Joined: Mon May 12, 2008 8:33 am
OLAP Product: TM1
Version: 10.2.2 FP1
Excel Version: 2010
Location: UK

Re: Security Control cubes

Post by Steve Vincent »

lotsaram wrote:I use rules for element security all the time and have never had any issues, there is no need to use skipcheck, feeders or feedstrings in security cubes (UNLESS you use ViewConsolidationOptimisation=T in the config file, in which case things do get a whole lot more complicated ...)
From memory we did have that set and we certainly required the cubes to work when zero suppressed, hence the feeders. The security was such that there was a lot of NONE cells and not being able to zero suppress was a total pain and it was that combination that caused a security refresh to take about 10 mins - 9.5mins too long for the customer, hence the change to TI driven security.
If this were a dictatorship, it would be a heck of a lot easier, just so long as I'm the dictator.
Production: Planning Analytics 64 bit 2.0.5, Windows 2016 Server. Excel 2016, IE11 for t'internet
appleglaze28
Regular Participant
Posts: 269
Joined: Tue Apr 21, 2009 3:43 am
OLAP Product: Cognos TM1, Planning
Version: 9.1 SP3 9.4 MR1 FP1 9.5
Excel Version: 2003

Re: Security Control cubes

Post by appleglaze28 »

I removed the rules in security cubes...now my dilema is...everytime i add new elements in that dimension its always none...so i have to do it manually on the TM1 Dimension security. How can I reset it to having all new added element be on a "WRITE" security.
Alan Kirk
Site Admin
Posts: 6667
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: Security Control cubes

Post by Alan Kirk »

appleglaze28 wrote:I removed the rules in security cubes...now my dilema is...everytime i add new elements in that dimension its always none...so i have to do it manually on the TM1 Dimension security. How can I reset it to having all new added element be on a "WRITE" security.


I don't think that's offered as an option. However a (relatively) easy way around that would be to create a TI which iterates through the dimension, adding write access where the access is none. Run that after you update the dimension and you don't have to waste time setting the access manually.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
User avatar
Michel Zijlema
Site Admin
Posts: 713
Joined: Wed May 14, 2008 5:22 am
OLAP Product: TM1, PALO
Version: both 2.5 and higher
Excel Version: 2003-2007-2010
Location: Netherlands
Contact:

Re: Security Control cubes

Post by Michel Zijlema »

Alan Kirk wrote:
appleglaze28 wrote:I removed the rules in security cubes...now my dilema is...everytime i add new elements in that dimension its always none...so i have to do it manually on the TM1 Dimension security. How can I reset it to having all new added element be on a "WRITE" security.


I don't think that's offered as an option. However a (relatively) easy way around that would be to create a TI which iterates through the dimension, adding write access where the access is none. Run that after you update the dimension and you don't have to waste time setting the access manually.
If you don't need any element security on the dimension anymore you can delete the }ElementSecurity_* cube(s) for the regarding dimension(s) from the data directory. When there is no }ElementSecurity cube the default security assignment is WRITE.

Michel
Alan Kirk
Site Admin
Posts: 6667
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: Security Control cubes

Post by Alan Kirk »

Michel Zijlema wrote:
Alan Kirk wrote:
appleglaze28 wrote:I removed the rules in security cubes...now my dilema is...everytime i add new elements in that dimension its always none...so i have to do it manually on the TM1 Dimension security. How can I reset it to having all new added element be on a "WRITE" security.


I don't think that's offered as an option. However a (relatively) easy way around that would be to create a TI which iterates through the dimension, adding write access where the access is none. Run that after you update the dimension and you don't have to waste time setting the access manually.
If you don't need any element security on the dimension anymore you can delete the }ElementSecurity_* cube(s) for the regarding dimension(s) from the data directory. When there is no }ElementSecurity cube the default security assignment is WRITE.

Michel
You're right, I should have mentioned that option. I assumed that some of the existing elements were still secured. Obviously Michel's solution will only take effect after a server restart.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
Post Reply