Security failure in Excel template.

Post Reply
Guillaume Galtier
Posts: 40
Joined: Thu Jun 19, 2008 8:09 am
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2010

Security failure in Excel template.

Post by Guillaume Galtier »

Hi everybody, hereunder the problem I'm facing...

Users having not suffisant rights to access a part of data into a cube, can however access it through an excel template :shock: :!:

End users are limited to their respectives plants. The security is ensured with }ElementSecurity on the dimension representing the plants.
My excel sheet is a simple synthesis table with all plants in lines and costs types in columns. All references to TM1 dimensions are hardcoded.

The security works fine using the TM1 interface, but fails using the excel template.

The problem seems coming from rules on my }CellSecurity cube, used to locked some crossings between dimensions elements.
If I delete these rules, the excel template works fine.

Any idea to resolve this ??

Thanks in advance :P

Guillaume
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 failure in Excel template.

Post by Steve Vincent »

Its obviously the rules causing it, so 1st up i'd post those and see what we can see :mrgreen:
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
Guillaume Galtier
Posts: 40
Joined: Thu Jun 19, 2008 8:09 am
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2010

Re: Security failure in Excel template.

Post by Guillaume Galtier »

ok Steve :D

Hereunder the rules causing the problem, from my }CellSecurity cube :

Code: Select all

# Lock FTE, FTEAVG, Rate FTE (M€) & Amount Key figures (FTE coming from cube RM_HR-Ref, Averages & Amounts are calculated)
[{'FTE', 'FTEAVG', 'Rate FTE (M€)', 'Amount (M€)'}]=S:'READ';

# Lock Actual
# If Line <> WF In Situ OH / NOH, Line <>Externalisation
['RM_REP_ValueType':'10']=S:
	IF(ELISANC('RM_HR_Line', 'WF_EXT_SC_INSITU', !RM_HR_Line) = 0 & ELISANC('RM_HR_Line', 'WF_EXTERN_OH', !RM_HR_Line) = 0,
		'READ',
		CONTINUE);
I add that these rules are not concerning the "plant" dimension on which i have defined the elements security. (}ElementSecurity).

Guillaume
User avatar
Steve Rowe
Site Admin
Posts: 2455
Joined: Wed May 14, 2008 4:25 pm
OLAP Product: TM1
Version: TM1 v6,v7,v8,v9,v10,v11+PAW
Excel Version: Nearly all of them

Re: Security failure in Excel template.

Post by Steve Rowe »

Hi Guillaume,

My first guess would be that your rule ends with continue so the compilier is expecting more rules to apply to those cells and there are not any.

I'd suggest changing the continue to a stet, or finishing the rules with []=S: stet;
HTH
Technical Director
www.infocat.co.uk
Guillaume Galtier
Posts: 40
Joined: Thu Jun 19, 2008 8:09 am
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2010

Re: Security failure in Excel template.

Post by Guillaume Galtier »

Steve Rowe wrote: My first guess would be that your rule ends with continue so the compilier is expecting more rules to apply to those cells and there are not any.
Are you sure about this ? I thought that the compiler simply stopped when reaching the end of the rule, without expecting nothing else, even if the last statement treated was "CONTINUE"...
Steve Rowe wrote: I'd suggest changing the continue to a stet, or finishing the rules with []=S: stet;
I have tested your suggestion, but the problem still remains...

Thanks
Guillaume
User avatar
Steve Rowe
Site Admin
Posts: 2455
Joined: Wed May 14, 2008 4:25 pm
OLAP Product: TM1
Version: TM1 v6,v7,v8,v9,v10,v11+PAW
Excel Version: Nearly all of them

Re: Security failure in Excel template.

Post by Steve Rowe »

Going off topic now but...
I'm not sure, no but in a numeric cube at least if areas are left with defined as = continue, they display as ruled zero values, so I was thinking that this might casue strange behaviour in a string cube.
Cheers,
Technical Director
www.infocat.co.uk
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 failure in Excel template.

Post by Steve Vincent »

without the rules, are there string values in the cell security cube in some but not all cells you are trying to apply the rule to?

never used cell security but in rules i have used in element security i had issues with inconsistant results and it turned out to be feeders. If a cell already has data in it then you put rules on top, it acts like its fed and so works as you planned. If some didn't have data tho they would need feeding in order for the rule to work. I had massive performance issues doing it like this so ended up scrapping the rules and TI'd the values instead.
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
paulsimon
MVP
Posts: 808
Joined: Sat Sep 03, 2011 11:10 pm
OLAP Product: TM1
Version: PA 2.0.5
Excel Version: 2016
Contact:

Re: Security failure in Excel template.

Post by paulsimon »

Guillame

I also avoid cell level security because of concerns over the performance overhead. However, according to the manual:
NOTE: For element-level security to apply to a cell, no security rights can be assigned to any TM1 security group for the cell. Cell-level security overrides element-level security, so cell-level security for the cell must be undefined.
So I suspect that your cube security rules which seem to give eg READ to a certain measure apply across all Plants and override the security that you have set on the elements in your Plant dimension. So even if a user has WRITE on a Plant element they will only get READ.

Quite why the security should differ in Excel vs Server Explorer seems odd. I am not clear as to whether Excel is still showing the Plant but then not allowing entry. It may be that the Excel implementation with regard to cell level security is good enough to prevent entry of data but not good enough to prevent display of the elements.

Anyway, it would seem that you cannot mix and match element and cell level security. If you use cell level security then you must do everything at the cell level. I guess you could still reference the dimension element security in the rules for your cell level security.

Personally I review whether you can replace cell level security with element level security.

Regards


Paul Simon
Post Reply