Using Share with, rights, roles properties in Izenda Reports 6+
The sharewith and roles properties allow reports to be easily shared amongst users and group of users. The values SharedWithValues populate the "Share With" drop-down found on the "Misc" tab in the Izenda Reports application. The "Rights" drop-down which is next to the "Share With" drop-down allow the user to assign Full Access, Read Only, View Only, or None permissions to the selected choice in the "Share With" drop-down.
Roles on a per-user basis are specified by the CurrentUserRoles properities. If a user is given a role, then he will have access to the reports which are shared with that role.
AdHocSettings.CurrentUserRoles and AdHocSettings.SharedWithValues are per-user properties.
AdHocSettings.CurrentUserIsAdmin = false;
AdHocSettings.CurrentUserName = "Bob";
AdHocSettings.CurrentUserRoles = new string[] { "Sales" };
AdHocSettings.SharedWithValues = new string[] { "Bob", "Sales", "Bob Smith", "Admins", "Sam Jones" };
In the example above, Bob is a non-admin user who is assigned to the Sales role, therefore, any reports which are "Shared With" the "Sales" role will be accesible by Bob. Bob will only be able to share reports with the shared with values shown in the sample.