Right privileges to edit rule (normal user).

Post Reply
manoel.ss
Posts: 12
Joined: Fri Jan 13, 2017 5:02 pm
OLAP Product: Cognos TM1
Version: 10.2.2
Excel Version: 2013

Right privileges to edit rule (normal user).

Post by manoel.ss »

Hello!

There is any way to give privileges to a non-admin user edit rules?

Thanks.
User avatar
Alan Kirk
Site Admin
Posts: 6606
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: Right privileges to edit rule (normal user).

Post by Alan Kirk »

manoel.ss wrote:There is any way to give privileges to a non-admin user edit rules?
Sure. It's called "making them an admin and giving them the required training to do that job so that they don't completely screw up your database".

The designers of TM1 did not put in an intrinsic way to give normal users the ability to directly edit rules.

This is because they knew that in the Pantheon Of Really, Really Bad Ideas, this one rates just below "Building a huge dirigible, inflating it with hydrogen, and then putting in a smoking room just underneath the balloon's envelope".

However they did provide a back door for anyone who was bound and determined to do it anyway, which was to include TI functions like

Code: Select all

RuleLoadFromFile(Cube, TextFile);
Using such functions they can write the rules in a text editor and have the TI load them. You will find these quite well documented in the Reference Guide.

Unfortunately the manual does not address the procedure for "What happens when an end user who believes that they understand rules syntax better than they actually do writes a rule which blows away all of your input data". However the answer to that is backups.

Lots, and lots, and lots of backups.
"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.
manoel.ss
Posts: 12
Joined: Fri Jan 13, 2017 5:02 pm
OLAP Product: Cognos TM1
Version: 10.2.2
Excel Version: 2013

Re: Right privileges to edit rule (normal user).

Post by manoel.ss »

Hello Alan Kirk.

Thanks for the reply and counseling!

I am studying situations that a exception in a rule should be updated by the "owner" of the cube. As I dont want give acess to that user to edit another rules, your sugestion will help me well, creating a few filters in TI.
User avatar
Steve Rowe
Site Admin
Posts: 2416
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: Right privileges to edit rule (normal user).

Post by Steve Rowe »

The other thing to consider is if the rule needs editing once written then it could (should?) probably be generalised such that it's behaviour can be changed by setting an attribute value.

In your case the exception could be defined by flagging the exception in an attribute rather than direct edit of the rule. There will be some trade off in terms of the efficiency of the rule since the exception will be defined on the right rather than the left however this needs to be balanced against the outage while feeders* are recompiled and the risk of allowing this level of access to the rules to a non developer type.

[{''a' , 'b' , 'c' , 'd'}, 'SomeRule']=N: Stet;
['SomeRule']=N: ['blah'] * ['blah'];

could be replaced with
['SomeRule'] = N: If ( Attrn( 'Alpha' !Alpha , 'Do not Calculate')=1 , stet , ['blah'] * ['blah']);


*This can be mitigated.
Technical Director
www.infocat.co.uk
User avatar
qml
MVP
Posts: 1094
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: Right privileges to edit rule (normal user).

Post by qml »

While all the usual access-related caveats apply, it is quite easy to give a user access to edit rules for just a single, specific cube. Instead of assigning the user to the built-in ADMIN group (or, a slightly safer option, DataAdmin) you can assign the user to a group who has admin-level cube security rights to the cube in question. Any potential damage would then be limited to that cube only - however the user will be able to do anything with it, including deleting.

To set up cube security in Architect right-click on Cubes, then Security Assignments. You will see that among other levels of access to individual cubes there is also 'Admin'.
Kamil Arendt
Post Reply