Planning Analytics

Planning Analytics

Get AI-infused integrated business planning

 View Only
Expand all | Collapse all

Rules on }ElementSecurity_cube issue

  • 1.  Rules on }ElementSecurity_cube issue

    Posted Thu April 10, 2025 11:11 AM

    Greetings!,

    While working on Planning Analytics Cloud environment we are providing READ / WRITE access to elements and groups based on RULEs on different '}ElementSecurity_' cubes. E.g.

    # ##Assign WRITE access to N level element for corresponding Sales Group (S001 through S060)
     [] = S: IF(ELLEV( 'D.Sales.Hierarchy',!D.Sales.Hierarchy ) = 0  & ELPAR( 'D.Sales.Hierarchy', !D.Sales.Hierarchy, 1 ) @= !}Groups, 'WRITE', CONTINUE); 

    and so on...

    Rules work correctly and values are populated in cube. 

    Security DOES NOT WORK, when values are derived from RULES. If we disable RULES and enter value manually in  '}ElementSecurity_' cubes then the Security settings WORK CORRECTLY.

    Do we know why RULES based definitions would not work here? Or is there any configuration settings to make RULES based '}ElementSecurity_' cubes work correctly?

    Thank you.

     



    ------------------------------
    Rohit Shrivastav
    ------------------------------


  • 2.  RE: Rules on }ElementSecurity_cube issue

    Posted Thu April 10, 2025 01:50 PM

    Hi Rohit,

    Do you have feeders in that rule?

    Did you run SecurityRefresh after updating the rule?



    ------------------------------
    Vlad Didenko
    Founder at Succeedium
    TeamOne Google Sheets add-on for IBM Planning Analytics / TM1
    https://succeedium.com/teamone/
    Succeedium Planning Analytics Cloud Extension
    https://succeedium.com/space/
    ------------------------------



  • 3.  RE: Rules on }ElementSecurity_cube issue

    Posted Thu April 10, 2025 01:57 PM

    No I don't have feeders. (I have not had the need for feeders on security cubes earlier, but have not tried with feeders in this case)

    Yes, ran Security Refresh (although earlier I have not had the need to run security refresh on element security values being changed by rule)

    Defining the value via Rule makes it dynamic and less cumbersome to maintain. But without Rules it does work but calls for more time in maintaining it.



    ------------------------------
    Rohit Shrivastav
    ------------------------------



  • 4.  RE: Rules on }ElementSecurity_cube issue

    Posted Thu April 10, 2025 02:11 PM

    Refresh Security is required to enforce the changes for rule-driven security.

    It was not needed when the values were static.



    ------------------------------
    Vlad Didenko
    Founder at Succeedium
    TeamOne Google Sheets add-on for IBM Planning Analytics / TM1
    https://succeedium.com/teamone/
    Succeedium Planning Analytics Cloud Extension
    https://succeedium.com/space/
    ------------------------------



  • 5.  RE: Rules on }ElementSecurity_cube issue

    Posted Fri April 11, 2025 01:03 PM

    When a value is updated manually, that act of making the change tells the system that the particular intersection has changed values.  So it knows to immediately apply the change to security.  Rules can change multiple cells at any time so the system does not know what values have changed.  When you run refresh security, then the system applies the rules at that time.  If you change a lookup value used by the rules, the system will not know that there is a change.  The change will take effect the next refresh security is done.



    ------------------------------
    Scott Brown
    ------------------------------



  • 6.  RE: Rules on }ElementSecurity_cube issue

    Posted Sat April 12, 2025 04:27 AM

    Security in '}ElementSecurity_' cubes must be statically stored values-rules are ignored by the security engine during evaluation.



    ------------------------------
    Emirhan Yıldırım
    ------------------------------



  • 7.  RE: Rules on }ElementSecurity_cube issue

    Posted Mon April 14, 2025 10:22 AM

    Thanks.

    So I guess a work around could be to create a corresponding duplicate cube - apply rule and use a TI to load values '}ElementSecurity_' cubes and Refresh Security. Would have been easier if Rules worked in '}ElementSecurity_' cubes just like CellSecurity Rules.



    ------------------------------
    Rohit Shrivastav
    ------------------------------



  • 8.  RE: Rules on }ElementSecurity_cube issue

    Posted Tue April 15, 2025 05:20 AM

    Why would you need a 'work-around', if you can just call security refresh?

    TM1 caches all security, with the exception of cell security, for performance reasons. Security refresh rebuilds those caches and all should be well.

    IMHO, if anything, and no worries won't change that over night, I'd argue those cell updates to those stored values in these security cubes should not have resulted in updates to our security caches to begin with and only have been picked up when applying a security refresh.



    ------------------------------
    Hubert Heijkers
    STSM, Program Director TM1 Functional Database Technology and OData Evangelist
    ------------------------------



  • 9.  RE: Rules on }ElementSecurity_cube issue

    Posted Wed April 16, 2025 10:50 AM

    Rules (even with SecurityRefresh) did now work.

    As @Emirhan Yıldırım mentioned that "Security in '}ElementSecurity_' cubes must be statically stored values-rules are ignored by the security engine during evaluation.",

    so I think to make it dynamic and rule driven - work around would be to create a duplicate cube with Rule and use TI to populate   '}ElementSecurity_' cubes with Static value.



    ------------------------------
    Rohit Shrivastav
    ------------------------------



  • 10.  RE: Rules on }ElementSecurity_cube issue

    Posted Wed April 16, 2025 03:01 PM

    The sole purpose of SecurityRefresh is to reread the data from the security control cubes, rule derived or not, and regenerates the internal structures, the caches I mentioned above. If you have an example where SecurityRefresh does not correctly update those caches, please let us know and we'll fix that.



    ------------------------------
    Hubert Heijkers
    STSM, Program Director TM1 Functional Database Technology and OData Evangelist
    ------------------------------



  • 11.  RE: Rules on }ElementSecurity_cube issue

    Posted Wed April 16, 2025 05:19 PM

    security refresh does a global lock and sometimes takes minutes if not dozens of minutes to refresh. so in case permission assignment is a routine day-to-day operation, security refresh is the last resort. 



    ------------------------------
    Fedir Zevako
    Principal Consultant
    +61403784477
    ------------------------------



  • 12.  RE: Rules on }ElementSecurity_cube issue

    Posted Tue April 22, 2025 05:39 AM

    Hi,

    this sounds not correct to me.

    I have a system right in front of me where I set cost center element visibility for certain nodes for certain groups. 

    ['ELE_NL_CostCenter_All'] = S: If(ElIsAnc('Cost Center', 'NL', !Cost Center) > 0
                    % !Cost Center @= 'NL'  
                    % ElIsAnc('Cost Center', 'Cohort NL', !Cost Center) > 0
                    % !Cost Center @= 'Cohort NL'  
                        , 'READ'
                        , STET
                );

    This works like a charm. It gets evaluated properly on system startup. You have to do the security refresh though when changes occur during system runtime for TM1 to recognize and apply the change.

    Am I missing something with your statement?

    Kind regards
    Matthias



    ------------------------------
    Matthias Holthus
    ------------------------------



  • 13.  RE: Rules on }ElementSecurity_cube issue

    Posted Tue April 22, 2025 01:34 PM

    We've had Element and Cell Security both derived from Rules and all working fine until today.   It just STOPPED working for no apparent reason.

    ???



    ------------------------------
    Arden Miller
    ------------------------------