Determining the Distribution List
Use the AddDistributionOption method to authorize users to view the report from the Report Manager. This function enables you to grant access to the report either specifying a User ID or Role. However, if no distribution list is specified in the request, the class queries the system for the distribution list as follows:
If the Process Instance is specified, the system checks for the distribution list in the Process Request table. The system assumes in this case that the request was scheduled through the Process Request Dialog, but was processed by a third-party scheduler.
If a Process Name and Process Type properties were specified, the system checks if a distribution list was predefined in the Process Definition table.
If no list was found using the above queries, the user who submitted the request has sole access to the report.