Best practice forum (Archived)

Further restrict Access to Custom Reports

 
? ?
Further restrict Access to Custom Reports
by ? ? - Sunday, 29 January 2012, 3:55 PM
 

Hi,

Just wondering if there is a way to further restrict access to a particular custom report?

I have created a custom report for a courses feedback responses and only want to make it available to the trainers of that particular course.

Although the restrictions options only allow me to restrict by user role in system or any context. Ideally i don't want to create a whole bunch of separate roles for trainers for particular courses...

thanks,

-Ira

 

 

Simon Coggins
Re: Further restrict Access to Custom Reports
by Simon Coggins - Sunday, 29 January 2012, 4:19 PM
Group Totara

Hi Ira,

Not at the moment, but the access part of reportbuilder is designed to be extensible, so its possible for a developer to write a new access restriction and have it appear on the access page.

Simon

? ?
Re: Further restrict Access to Custom Reports
by ? ? - Monday, 13 February 2012, 6:24 PM
 

Hi,

Is there a base reference for developing this additional restriction?

Thanks,

-Ira

Craig Eves
Re: Further restrict Access to Custom Reports
by Craig Eves (Totara Support) - Monday, 13 February 2012, 7:03 PM
Group Totara

Hi Ira

There is the start of some documentation on this in the partners area - Unfortunately the access restrictions is on the TODO list in the Advanced topic area.

The Totara team currently have other priorities - it would be good if a partner was able to pick this up but it depends on their priorities too.

Beginner Topics

  • Overview
  • Hello World Source
  • Adding a Column
  • A Basic Join
  • Adding a Filter
  • Setting Default Columns and Filters
  • Column Display Functions
  • Combining Multiple Fields
  • Advanced Column Options
  • Advanced Filter Options TODO
  • Predefined Common Options TODO
  • General Report Options TODO
  • Storing files: Report sources, embedded report definitions and language strings TODO
  • Dynamic joins, column options and filter options TODO
  • Content Restrictions TODO
  • Access Restrictions TODO
  • Parameter Restrictions TODO
  • Advanced Joins TODO
  • Required Columns TODO
  • Grouping and Aggregation TODO
  • Preprocessors TODO
  • Creating new filter options TODO
  • Overview TODO
  • Access restrictions in embedded reports TODO
  • Embedded reports in My Reports list TODO
  • Resetting to defaults TODO
  • Embedded parameters TODO

Intermediate Topics

  • Column Display Functions
  • Combining Multiple Fields
  • Advanced Column Options
  • Advanced Filter Options TODO
  • Predefined Common Options TODO
  • General Report Options TODO
  • Storing files: Report sources, embedded report definitions and language strings TODO
  • Dynamic joins, column options and filter options TODO

Advanced Topics

  • Content Restrictions TODO
  • Access Restrictions TODO
  • Parameter Restrictions TODO
  • Advanced Joins TODO
  • Required Columns TODO
  • Grouping and Aggregation TODO
  • Preprocessors TODO
  • Creating new filter options TODO

Embedded Reports

  • Overview TODO
  • Access restrictions in embedded reports TODO
  • Embedded reports in My Reports list TODO
  • Resetting to defaults TODO
  • Embedded parameters TODO

Troubleshooting

  • Common Exceptions (automatic check errors) TODO
  • Other errors TODO
  • Debugging tools TODO
  • Choosing a base table / Performance TODO

Craig

? ?
Re: Further restrict Access to Custom Reports
by ? ? - Tuesday, 14 February 2012, 5:59 PM
 

Hi Craig,

Thanks for that info. At the moment the feature is a 'nice to have', so hopefully will be included in a futrue update to Totara soon.

Cheers

Simon Coggins
Re: Further restrict Access to Custom Reports
by Simon Coggins - Wednesday, 22 February 2012, 2:34 PM
Group Totara

It should be fairly straightforward for a developer to do it based on the existing access restriction - all they need to do is create a new class that extends the base class - they could probably just modify the existing functions, which are all pretty well documented.

I'm happy to give some further guidance if you have someone working on it.

Simon