IBM Cognos Sample Programs

permissions.sln - Modifies permissions in IBM Cognos Connection

The C# Permissions sample program modifies permissions.


Dependent Files

All associated files are contained in the bin directory of the csharp directory.

How To Run The Sample Program

Initial Setup:

1. Log on to IBM Cognos Connection as an administrator.
2. In the folder Public Folders>Samples>Models, click the GO Sales (query) package.
3. For the Report Studio Report Samples folder, click Set Properties.
4. Click the Permissions tab.
5. Select the Override the access permissions acquired from the parent entry checkbox.
6. Click the Add button.
7. Click the name of the namespace that includes the user for which you want to modify permissions.
8. Select the Show users in the list checkbox.
9. Select the checkbox of the user that you want to add, and click Add.
The user now appears in the lower pane named Entries to be added.
10. In this lower pane, select the checkbox of the user that you just added, and click OK.
The user now appears in the list. The user has no permissions.
11. Select the checkbox of the user that you just added.
12. In the Grant and Deny pane on the right side of the page, select the Read checkbox under the Grant column, and click OK. The user is now granted Read permission.

Double click on the file ../bin/permissions.exe.

A window will be opened containing:
    - Set Permissions command button
    - URL text box
    - Results Display Window
Click on the 'Set Permissions' button to run the sample program.

Expected Results

By default, read permission will be denied to the Report Studio Report Samples folder.

Documentation

The IBM Cognos Software Development Kit Developer Guide contains additional information about the samples. See the chapter titled 'Methods' and the appendix titled 'Code Samples and Language-Specific Coding Practices'.

Please note that the samples are not intended to be treated as end-user applications. Refer to the sample code for examples of how to use the API when developing your own applications.