Using User login in rule to define Cell-Level Security
-
- Posts: 39
- Joined: Tue Jan 04, 2011 3:42 pm
- OLAP Product: TM1
- Version: 9.5
- Excel Version: 2003
Using User login in rule to define Cell-Level Security
Is it possible to use login information to define a specific access rule to a Cell-Level Security cube ? Because I can't use dimension security when I use a cell-level security cube.
- 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: Using User login in rule to define Cell-Level Security
You can't do it directly, for 2 reasons. Firstly, the function TM1User() doesn't work in rules. Secondly, all security rules come into effect only when you refresh security, which means you would have to refresh it every time a person logs in.
There might be a way around it if you find a method of forcing a user to run a TI process whenever they log on. This TI process could get their user name, write it to a lookup cube (that would be used in the rule) and refresh security. That would be an awful solution, to be honest, but possible.
Another option - create 1 group uniquely assigned to each user (could be using rules if your naming convention is coherent) and use these groups in your cube security rules. Workable only if you have relatively few users.
There might be a way around it if you find a method of forcing a user to run a TI process whenever they log on. This TI process could get their user name, write it to a lookup cube (that would be used in the rule) and refresh security. That would be an awful solution, to be honest, but possible.
Another option - create 1 group uniquely assigned to each user (could be using rules if your naming convention is coherent) and use these groups in your cube security rules. Workable only if you have relatively few users.
Kamil Arendt
-
- Posts: 39
- Joined: Tue Jan 04, 2011 3:42 pm
- OLAP Product: TM1
- Version: 9.5
- Excel Version: 2003
Re: Using User login in rule to define Cell-Level Security
Thanks for your quick answer qml. You're right TI woud be a bad idea here.
However, I am surprised I can't combine the dimension security with the cell-level security then, may be i made a mistake and I shoud be able to combine both of them ?
However, I am surprised I can't combine the dimension security with the cell-level security then, may be i made a mistake and I shoud be able to combine both of them ?
- 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: Using User login in rule to define Cell-Level Security
That's the way it works - cell-level security overrides any other security settings. Plus the impact on performance can be significant. Only use it if you absolutely have to and there is no way around it (like creating separate cubes with subsets of data that you want to give to specific users) or if the cube is very small anyway.
Kamil Arendt
-
- Site Admin
- Posts: 1458
- Joined: Wed May 28, 2008 9:09 am
Re: Using User login in rule to define Cell-Level Security
While not challenging the potential performance hit of cell security (albeit I have'nt encountered it at my clients) you can of course link the element security cubes into your cell security rules.
-
- Posts: 39
- Joined: Tue Jan 04, 2011 3:42 pm
- OLAP Product: TM1
- Version: 9.5
- Excel Version: 2003
Re: Using User login in rule to define Cell-Level Security
Thanks qml, i have no choice to use it now.
Well David, I will try this right now !
Well David, I will try this right now !