Showing results for 
Show  only  | Search instead for 
Did you mean: 
Community Contributor

Course role code

Does anyone have any code they can share to create a course role with the following permissions. 

  • can view content
  • can view gradebook
  • cannot edit grade
  • can view quizzes questions, but cannot view exam questions (midterm and final exams)

Basically, the user cannot grade, but can view the grades and comments from a teacher, and they can view quiz questions, but they cannot view exam questions.

The Javascript I have isn't quite working the way I need it to, and it's not possible to do this when I enable or disable some of the permissions.  Any help is greatly appreciated!

5 Replies
Community Champion

Hey  @baxl 

I don't have the answer to your question, but I'm going to share it with the Canvas Developers​ group to see if anyone there can help.

Community Coach
Community Coach

 @baxl ​, you might want to share this with the Canvas Developers​ group in the Community. They are the back-end hard core programmers. If you do this you might also want to include the code you are trying so that way they can help trouble-shoot this for you. In general I think this would be pretty difficult to implement because Canvas itself doesn't differentiate between a "quiz" and an "exam."

Good luck!

Community Contributor

Thanks!  I'll post it to the developers group.

Community Coach
Community Coach

 @baxl ,

We are giving the Canvas Admins area a little bit of love (especially questions that are really, really old) and just want to check in with you.  This will also bring this question new attention. 


Were you able to find an answer to your question? I am going to go ahead and mark this question as answered because there hasn't been any more activity in a while so I assume that you have the information that you need. If you still have a question about this or if you have information that you would like to share with the community, by all means, please do come back and leave a comment.  Also, if this question has been answered by one of the previous replies, please feel free to mark that answer as correct.



Community Contributor

I welcome the Canvas love!      We ended up writing some JavaScript to hide and allow certain tools for the custom course roles.  Sometimes it tends to break when acting as users with the custom course roles and then going back to admin view.  A quick fix is to delete cache which isn't ideal but it works.