This documentation is for the legacy Izenda 6 product. Documentation for the new Izenda 7 product can be found at https://www.izenda.com/docs/
The ShareWithValues and CurrentUserRoles properties allow reports to be easily shared among users and groups of users. The SharedWithValues property populates 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, Locked, or None permissions to the selected choice in the "Share With" drop-down.
Roles on a per-user basis are specified by the CurrentUserRoles property. 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 that are "Shared With" the "Sales" role will be accessible by Bob. Bob will only be able to share reports with the SharedWithValues property shown in the sample.
Last edited by Joseph Adams, 2014-04-01 16:49:41