SDK Sample to add, modify, or delete users and their permissions in a folder permissions tab

Technote (FAQ)


Question

How can I add/delete a user or modify a user's permissions in a folder permissions tab.

Answer

The attached sample allows the following tasks:

- add a user to a folder permissions tab
- modify permissions of a user in a folder permissions tab
- delete a user from a folder permissions tab

Note: This sample will query and update the Content Store.

Note that you must change the following values to match your environment before compiling the code:
String endPointURL = "http://localhost:9300/p2pd/servlet/dispatch";
String nameSpaceID = "namespaceid";
String userName = "admin";
String password = "password";
String folderSearchPath = "/content/folder[@name='Folder_ExpressAuthors']";
String userSearchPath_AddModify =
"CAMID(\"namespaceid:u=S-1-7-21-132546714-1809889012-2637526880-1022\")";
String userSearchPath_Delete = "";

For those new to the SDK, please refer to the following document under IBM Cognos Software Development Kit documentation: IBM Cognos Software Development Kit Getting Started.


Product Alias/Synonym

SDK Sample permissions user

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Cognos Business Intelligence
Software Development Kit

Software version:

10.1, 10.1.1, 10.2

Operating system(s):

AIX, HP-UX, Linux, Solaris, Windows

Reference #:

1647004

Modified date:

2013-08-15

Translate my page

Machine Translation

Content navigation