Hi,
following is a function I wrote (in java) to get a particular user out of my content store.
The class "CRNConnect" is found in the "SAMPLES" folder of the SDK.
The "pathOfUser" parameter holds the CAMID of the user.
This method works for ALL objects in the content store. You have to modify the PropEnum props[] according to your needs though. The CAMID is found at the property information in the web-ui.
/**
* Get information specific to a particular user.
*
* @param connection Connection to IBM Cognos 8
* @param pathOfUser Search path to user to query.
* @return User Information.
*
*/
public BaseClass[] getMemberInfo(
CRNConnect connection,
String pathOfUser)
{
BaseClass groups[] = new BaseClass[] {};
PropEnum props[] =
new PropEnum[] { PropEnum.searchPath, PropEnum.defaultName };
try
{
groups =
connection.getCMService().query(
new SearchPathMultipleObject(pathOfUser),
props,
new Sort[] {},
new QueryOptions());
}
catch (Exception e)
{
System.out.println(e);
}
return groups;
}