Orep_Rs_Collection_ACL_Set()
Abstract
Sets the allowed users and roles for a collection.
Syntax
Orep_Rs_Collection_ACL_Set (OrepT_Rs_Collection *collection_ptr, PrgT_List *roles_lptr, PrgT_List *users_lptr)
Return Type
PrgT_Compcode
PrgC_Compcode_Success if the operation was successful; PrgC_Compcode_Failure otherwise.
Header
orep_report_server.h
Details
Report Server uses the lists of users and roles to decide who can view and manage reports, on a per-collection basis. By default, all users have read and search access for the collection. If this function is used to change the defaults, only users either belonging to a group named in roles_lptr or explicitly named in users_lptr will have access.
The arguments are copied to the collection, so you are responsible for freeing the memory used by the roles_lptr and users_lptr lists. If multiple calls to this function are made with the same collection_ptr, only the data from the last call will be set.