}ClientGroups cube not in sync. with Cognos

Post Reply
monkey97
Posts: 16
Joined: Thu May 18, 2023 10:48 am
OLAP Product: tm1
Version: 10.1.10000.26473
Excel Version: 365

}ClientGroups cube not in sync. with Cognos

Post by monkey97 »

Hi all!

If we delete clients from security group on cognos, then the }ClientGroups cube is only updated when they log into Application Web or Architect.
We have to update it without clients login. We have to know, if there is anyone who is not in any group.
Is there any solution for this? Scheduled process or any settings?

Thanks in advance
Wim Gielis
MVP
Posts: 3182
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.0.9.18
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: }ClientGroups cube not in sync. with Cognos

Post by Wim Gielis »

Yes, a simple TI process with the necessary loops. There are no builtin functions to give that information.
Best regards,

Wim Gielis

IBM Champion 2024
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
monkey97
Posts: 16
Joined: Thu May 18, 2023 10:48 am
OLAP Product: tm1
Version: 10.1.10000.26473
Excel Version: 365

Re: }ClientGroups cube not in sync. with Cognos

Post by monkey97 »

But how can i sync }ClientGroups with Cognos BI?
Pls let me any help for TI process code.
Wim Gielis
MVP
Posts: 3182
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.0.9.18
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: }ClientGroups cube not in sync. with Cognos

Post by Wim Gielis »

I haven’t done that, if at all possible.
Best regards,

Wim Gielis

IBM Champion 2024
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
User avatar
Elessar
Community Contributor
Posts: 391
Joined: Mon Nov 21, 2011 12:33 pm
OLAP Product: PA 2
Version: 2.0.9
Excel Version: 2016
Contact:

Re: }ClientGroups cube not in sync. with Cognos

Post by Elessar »

Hi,

You need to to search client*group relationships in Cognos Content Store database.

Here is the tables list: https://cogknowhow.com/t/cognos-content ... iption/906
Here is an example of SQL query: https://www.ykud.com/blog/cognos/cognos ... ew-in-sql/
Best regards, Alexander Dvoynev

TM1 and Data Science blog: 7th article - Development requirements.
monkey97
Posts: 16
Joined: Thu May 18, 2023 10:48 am
OLAP Product: tm1
Version: 10.1.10000.26473
Excel Version: 365

Re: }ClientGroups cube not in sync. with Cognos

Post by monkey97 »

Hi!

Thanky you Ellesar!!! These are useful links.

I have got only one problem with it. We haven't got "groups_unwrapped" table in our database... and similar neither.

What is your opinion? Is it possible?
ardi
Community Contributor
Posts: 161
Joined: Tue Apr 02, 2013 1:41 pm
OLAP Product: tm1, cognos bi
Version: from TM1 9.4 to PA 2.0.9.6
Excel Version: 2010
Location: Toronto, ON

Re: }ClientGroups cube not in sync. with Cognos

Post by ardi »

Is the Client Groups membership defined in Cognos or in LDAP (Active Directory)? If it is in Active Directory, you can run some powershell script to extract the User/Group mappings. If they are defined in Cognos, then you can run a SQL against Cognos Content Store database tables ( as suggested by Elessar)
Ardian Alikaj
monkey97
Posts: 16
Joined: Thu May 18, 2023 10:48 am
OLAP Product: tm1
Version: 10.1.10000.26473
Excel Version: 365

Re: }ClientGroups cube not in sync. with Cognos

Post by monkey97 »

They are defined in Cognos, but we haven't got "groups_unwrapped" table in our database... and similar neither.
Wim Gielis
MVP
Posts: 3182
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.0.9.18
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: }ClientGroups cube not in sync. with Cognos

Post by Wim Gielis »

monkey97 wrote: Tue Aug 29, 2023 9:44 am They are defined in Cognos, but we haven't got "groups_unwrapped" table in our database... and similar neither.
Isn't it something that Yuri scripted in the SQL ?
Best regards,

Wim Gielis

IBM Champion 2024
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
monkey97
Posts: 16
Joined: Thu May 18, 2023 10:48 am
OLAP Product: tm1
Version: 10.1.10000.26473
Excel Version: 365

Re: }ClientGroups cube not in sync. with Cognos

Post by monkey97 »

I tried this https://www.ykud.com/blog/cognos/cognos ... ew-in-sql/ ms sql script. Only the mentioned table missing.
User avatar
Elessar
Community Contributor
Posts: 391
Joined: Mon Nov 21, 2011 12:33 pm
OLAP Product: PA 2
Version: 2.0.9
Excel Version: 2016
Contact:

Re: }ClientGroups cube not in sync. with Cognos

Post by Elessar »

Are you sure you've copied the whole script? :)
As Wim said, it's declared in the beginning using WITH clause:

Code: Select all

with groups_unwrapped (parent_group_id, child_group_id, lvl)
as ..... 
Best regards, Alexander Dvoynev

TM1 and Data Science blog: 7th article - Development requirements.
User avatar
vovanenok
Posts: 88
Joined: Mon Jun 23, 2014 4:54 pm
OLAP Product: TM1
Version: 2.0.9
Excel Version: Office 365
Location: Toronto, Canada
Contact:

Re: }ClientGroups cube not in sync. with Cognos

Post by vovanenok »

You can use the Cognos REST API to check the group members:
https://developer.ibm.com/apis/catalog/ ... up_members

Then you can implement relevant logic to perform tasks such as removing users in TM1.
----------
TeamOne Google Sheets add-on for IBM Planning Analytics
Let's connect on LinkedIn
Post Reply