Totara Learn Open Discussions

Restricting access to activities based on user's role

 
Tina Berry
Restricting access to activities based on user's role
by Tina Berry - Monday, 26 August 2019, 4:20 PM
 

Kia ora

I want to restrict access to an activity in a course based on the user's role in the course, is this possible?

Thought I'd be able to do it using the group option as the auto-create group can create the group based on the user's role. I had hoped that the auto-create group would work the same a dynamic audience, but once the group is created it doesn't update when there are changes to roles or new users enrolled in the course. 

Has anyone else had this issue and if so how did you make it work?

Cheers,

Tina

Craig Eves
Re: Restricting access to activities based on user's role
by Craig Eves (Totara Support) - Monday, 26 August 2019, 5:51 PM
Group Totara

Hi Tina

There is an existing feature request TL-5548 to include roles as an audience rule .

Access restrictions also allow quite a few conditions but don't include roles.

This is possible to do by changing the view activity permission for roles for each activity in the course.

If you go into the admin of a course activity permissions you can allow the role you want to view the activity. When a user changes their role from the allowed one then they will not be able to view the activity.


Tina Berry
Re: Restricting access to activities based on user's role
by Tina Berry - Tuesday, 27 August 2019, 2:01 PM
 

Thanks Craig, will have a play around with the course activity permissions.

Cheers,

Tina