COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => SDK => Topic started by: Shahoul on 13 Aug 2008 01:24:56 AM

Title: SDK Function to get the user details for a particluar package or report ?
Post by: Shahoul on 13 Aug 2008 01:24:56 AM
Hi all,

I require SDK function or any method to retreive user details who all belong to a particular package or report using their path...
Title: Re: SDK Function to get the user details for a particluar package or report ?
Post by: lindero on 18 Aug 2008 06:37:40 AM
1.) you have to identify the users who have access to the according object

- Properties enumeration to use
PropEnum enum[] = new PropEnum[]{PropEnum.policies};

2.) then you can call another query method with the searchpaths of the user (group/role) objects to get user infos from ContentManager.
Title: Re: SDK Function to get the user details for a particluar package or report ?
Post by: Shahoul on 25 Aug 2008 12:31:37 AM
Thanks Lindero...

        I just want to know whether there is any search path like this "/content/package[@name=]/report[@name=]/user" to fetch the users belonging to a particular report and also want to know how to fetch the permission rights for each user group or role using SDK function...
Title: Re: SDK Function to get the user details for a particluar package or report ?
Post by: lindero on 02 Sep 2008 02:15:25 AM
IMHO, there is no searchpath because the information which user/group/role has several rights on an object. This is stored in the advanced properties of an object. But nevertheless if you'll find something, Iw ould be very insterested at the technique. ;-)