Planning Analytics

 View Only

 How to replicate permissions between namespaces

Scott Huffman's profile image
Scott Huffman posted 06/02/26 11:54 AM

Hello everyone. 

Setup:

My employer is still using Planning Analytics 2.0 Local.  I know, I know....

It is using CAM for authentication and has many Groups mirroring active directory groups with permissions assigned.

We have now created a new namespace in Cognos for MFA and created matching groups in each database with the new CAM ID(s).

Every AD user and every AD group get a new CAM ID when created as a result of logging in with a new Cognos namespace.

For example: if there is an "AD" namespace and we create an "MFA" namespace for login purposes John Doe might have the following CAM ID's in planning analytics once he has logged in with both namespaces:

  • AD:u:abcdefg
  • MFA:u:pqrestu

If John Doe is a member of an AD Group called "GRAND_POOHBAHS" planning analytics might have entries like the following:

  • AD:g:13570a
  • MFA:g:x7c5v4b

Question:

Is there a handy dandy TI script for copying the permissions from an existing namespace to the new namespace for groups and individual users across all of the objects that store permissions?

I'm not quite familiar enough with TM1 to know all of the objects where permissions are set. 

Thank you for any guidance you can provide.

Vitalij Rusakovskij's profile image
Vitalij Rusakovskij IBM Champions

Scott – there is no built-in “copy this namespace to that namespace” process that I’m aware of.

The important point is that the TM1 security control cubes reference the actual client/group principals (CAMIDs), not the AD display name. After introducing MFA you therefore have a second set of principals:

AD:g:13570 → MFA:g:x7c5v4b
AD:u:abcdefg → MFA:u:pqrestu

The existing security assignments still reference the AD: principals, so the practical approach is to build an explicit old-CAMID → new-CAMID mapping and copy the relevant security assignments to the new principals.

Where permissions can live in PA 2.0 Local / TM1:

  • }CubeSecurity

  • }DimensionSecurity

  • }ProcessSecurity

  • }ChoreSecurity

  • }ApplicationSecurity / application-specific security, where applicable

  • }ElementSecurity_<Dimension> for dimensions using element security

  • }CellSecurity_<Cube> for cubes using cell security

For principals and membership:

  • }Clients / }Groups

  • }ClientGroups for user → group assignments

  • }ClientProperties for client-level properties

One important detail is that the MFA clients/groups must exist in TM1 before the security assignments can be copied. Depending on the setup, CAM clients may be created on first login (CreateNewCAMClients) or explicitly with AddClient() / AddGroup().

For the mapping, I would not try to derive the new CAMID from the old one. Instead, map the corresponding AD and MFA principals explicitly, using a stable business key such as the client/group name or an appropriate alias / }TM1_DefaultDisplayValue.

A practical TI approach would therefore be:

  1. Build the old-CAMID → new-CAMID mapping.

  2. Ensure the corresponding MFA clients/groups exist.

  3. Iterate the relevant security cubes and copy the non-empty assignments with CellPutS.

  4. Copy }ClientsGroups as well if the group membership is managed inside TM1.

  5. Run SecurityRefresh once the changes are complete.

  6. Test with representative users, including cube, dimension, element and cell security where applicable.

If you are using TM1 Applications / Contributor-style functionality, there may also be additional application-specific security (for example }tp_*) that needs to be considered separately.

This ExploringTM1 article is also a useful analogy, as it covers updating object security when moving from native authentication to CAM.

If you have Cubewise Arc, it can help clone group object security, but I would not treat that as a replacement for a TI-based migration if you also have element/cell security or direct user assignments.

I would also avoid blindly copying the predefined ADMIN / DataAdmin / SecurityAdmin / OperationsAdmin groups, since their semantics are special.

The main question is really how your existing security is structured: if it is mostly group-based cube/dimension security, the migration can be relatively small. If you have lots of element/cell security or direct user assignments, the TI needs to cover those explicitly.