IBM Support

SDK Sample: How to recover the My Folders of users that no longer exist in the Authentication Provider

Technote (FAQ)


How to recover the My Folders of users that no longer exist in the Authentication Provider?


This is code designed to recover objects that exist in orphaned My Folders (i.e. My Folders whose owner was removed from the authentication source)

The attached code will search for all My Folders that are in the content store but whose owner no longer exists in the authentication source (LDAP, ADS, Series 7, etc.). It will then move the contents to the public folders where an administrator can then recover any contents accordingly.

1. Download the attached code.

2. Create a folder at the root of Public Folders called 'OrphanedMyFolders'. If desired, assign the desired permissions so that consumers cannot view the contents.

3. Modify the following variables to match your environment:
String endPoint = "http[s]://localhost:9300/p2pd/servlet/dispatch";
String namespaceID = "namespaceID";
String userid = "username";
String pwd = "password";

4. Compile and execute the sample code. Information on the different languages toolkits can be found in Chapter 1 of the 'SDK Getting Started Guide'.

5. The newly created folder from Step 2 will now have all the orphaned My Folders, each identified by the CAMID of the respective user that was deleted from the authentication source.

This sample is without guarantee that all elements from the affected users will be copied from their MyFolders. It is just a sample to show up the general possibilities in this area and can be used as skeleton for own applications.>

Sample Versions:
/crn = IBM Cognos ReportNet (all versions)
/cognos8 = IBM Cognos 8.1 and IBM Cognos 8.2 (tested with JRE 1.4.2 & 1.5.0)
/cognos8_3 = IBM Cognos 8.3 (tested with JRE 1.4.2 & 1.5.0) - this code also works in IBM Cognos 8.4 (tested with JRE 1.5.0)
/cognos10_1_1= IBM Cognos 10.1.1
/cognos10_1 = IBM Cognos 10.1
/cognos10_2 = IBM Cognos 10.2

Cross reference information
Segment Product Component Platform Version Edition
Business Analytics Cognos ReportNet Software Development Kit AIX, HP-UX, Solaris, Windows, Linux 1.1 All Editions

Historical Number


Document information

More support for: Cognos Business Intelligence
Software Development Kit

Software version: 8.3, 8.4, 10.1, 10.1.1, 10.2

Operating system(s): AIX, HP-UX, Linux, Solaris, Windows

Software edition: All Editions

Reference #: 1340789

Modified date: 2009-10-22