COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => SDK => Topic started by: newbee2 on 12 Jan 2010 08:05:33 AM

Title: Retrieve all the user's capabilities
Post by: newbee2 on 12 Jan 2010 08:05:33 AM
Hi all,

this is possible to retrieve all the Capabilities of one particular user?
I found an example but its just for the currently logged user.

Best Regards
Title: Re: Retrieve all the user's capabilities
Post by: xiska on 12 Jun 2010 03:58:25 AM
Hi

Not so easy.
The sample you might have seen is using the session object.

In your case you need to get all memberships, as well as the memberships of the memberships, of the user and test them against the existence of the membershiplist and the user itselft of the capability. There is a function to get all role and group memberships of a user but it does not recognise :: - roles like camid(::System Administrator). So your result may become inaccurate.

Have fun.
Title: Re: Retrieve all the user's capabilities
Post by: rocket on 05 Aug 2010 12:57:37 PM
BSP Software's MetaManager (www.bspsoftware.com) has a Content Store Documenter module that documents membership and capability information just as you've described.
Title: Re: Retrieve all the user's capabilities
Post by: jackmaster on 24 Apr 2012 10:01:24 AM
Hi,
   
I'm facing the same problem. I can retrieve all groups and roles and theirs members using expandMembers() function but i don't know how to extract capabilities of these users. Does anyone find the solution for it?

Thanks in advance!   

   
Title: Re: Retrieve all the user's capabilities
Post by: murali999 on 20 Jun 2012 06:33:20 AM
Hi,

PFA Java Program that will list all the Capabilities with their access permissions and creates the CSV file
open the output CSV file in Excel ..


by doing small modification to this code you can get the user specific capabilities

Regards,
Murali.