Note: You are currently viewing documentation for Moodle 3.9. Up-to-date documentation for the latest stable version of Moodle may be available here: Question permissions.

Question permissions: Difference between revisions

From MoodleDocs
(removing 1.9 template and info relating to previous versions)
m (added link to spanish translation of document)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Questions}}
{{Questions}}
Roles and capabilities in Moodle enable possibilities such as students being given permission to edit questions. The following capabilities are related to questions:
[[Roles and capabilities]] are combined with [[Question categories]] to give a user permission to create, edit and view questions in the [[Question bank]].  For example, a combination might allow a student being able to edit questions in a specific quiz activity or all science teachers being able to use the question categories created for their department and not view other departments categories. In short, question categories are [[Context|contexts]] (see [[Question contexts]]) and work with roles to determine a user's permissions in managing individual questions.


Also, Question permissions allow a user to grant other users permissions. For example, a teacher in a course may decide to share their questions located in a specific course question category with other teachers who do not have permission to enter their course. This is all done with permissions that are given to a role in a specific context.
==Brief review of permission concepts==
The 2.0 Moodle [[Question bank]] simplifies the task of organization of questions but the terminology can be confusing.  In general, a set of questions is created in what is called a question category.  A question category is like a folder in a computer file system or in file cabinet.  Like a file folder, a question category might contain other question categories or just a set of questions. Permissions are assigned to question categories.  The nesting (placing of a question category within another question category) can create a hierarchy of permissions when it comes to dealing with individual questions located in a question category.   
By default a course teacher does not have permission to do anything with questions placed in a category outside the course in which they are assigned a teacher role. By default, students can not even see the Question bank or edit any question.  The default permissions can be changed to meet specific goals of a site, a course or even a specific quiz activity.
==Technical notes for administrators==
For users who have privileges to alter the permissions for a role, here are some permissions that affect Question bank and its management and use:
*[[Capabilities/moodle/question:config|moodle/question:config]]
*[[Capabilities/moodle/question:config|moodle/question:config]]
*[[Capabilities/moodle/question:managecategory|question:managecategory]]
*[[Capabilities/moodle/question:managecategory|moodle/question:managecategory]]
*[[Capabilities/moodle/question:add|moodle/question:add]]
*[[Capabilities/moodle/question:add|moodle/question:add]] - determines whether a user has permission to import questions
 
*[[Capabilities/moodle/question:editall|moodle/question:editall]]  
*[[Capabilities/moodle/question:editall|moodle/question:editall]]  
*[[Capabilities/moodle/question:editmine|moodle/question:editmine]]  
*[[Capabilities/moodle/question:editmine|moodle/question:editmine]]  
Line 12: Line 23:
*[[Capabilities/moodle/question:usemine|moodle/question:usemine]]
*[[Capabilities/moodle/question:usemine|moodle/question:usemine]]
*[[Capabilities/moodle/question:viewall|moodle/question:viewall]]
*[[Capabilities/moodle/question:viewall|moodle/question:viewall]]
*[[Capabilities/moodle/question:viewmine|moodle/question:viewmine]]
*[[Capabilities/moodle/question:viewmine|moodle/question:viewmine]]  
 
Notes:
 
* moodle/question:add is used to determine whether a user has permission to import questions
* moodle/question:viewall and moodle/question:viewmine are used to determine whether a user has permission to export
* Certain capabilities contain the words ''all'' or ''mine'':
* Certain capabilities contain the words ''all'' or ''mine'':
** ''all'' means all questions, and if you have the ''all'' capability, ''mine'' is not tested.  
** ''all'' means all questions, and if you have the ''all'' capability, ''mine'' is not tested.  
** ''mine'' means that you have the capability for your questions but not for questions created by others
** ''mine'' means that you have the capability for your questions but not for questions created by others
If you have the view capability for a question you can view a question created by another and "Save as New Question". This creates a new question that is one you created and which you can then do anything you have ''mine'' capability to do with.
==Contexts and permissions==
We have separate category hierarchies in [[Question contexts]] and the permissions for what you can do with a question depend on the context in which the question is.
By default a course teacher does not have permission to do anything with questions shared in areas outside the course in which they are assigned a teacher role. So if you are a teacher and your site admin has not assigned you permission to share or use questions shared in levels above the course level you will not see questions categories above the course level.


==See also==
==See also==
Line 35: Line 33:
*[[Question permissions explained with diagrams]]
*[[Question permissions explained with diagrams]]
*[[Question creator role]]
*[[Question creator role]]
*[[Question contexts]]


Using Moodle forum discussions:
Using Moodle forum discussions:
Line 46: Line 43:
[[eu:Galderen_baimenak]]
[[eu:Galderen_baimenak]]
[[ja:問題パーミッション]]
[[ja:問題パーミッション]]
[[es:Permisos de pregunta]]

Latest revision as of 21:15, 29 December 2013


Roles and capabilities are combined with Question categories to give a user permission to create, edit and view questions in the Question bank. For example, a combination might allow a student being able to edit questions in a specific quiz activity or all science teachers being able to use the question categories created for their department and not view other departments categories. In short, question categories are contexts (see Question contexts) and work with roles to determine a user's permissions in managing individual questions.

Also, Question permissions allow a user to grant other users permissions. For example, a teacher in a course may decide to share their questions located in a specific course question category with other teachers who do not have permission to enter their course. This is all done with permissions that are given to a role in a specific context.

Brief review of permission concepts

The 2.0 Moodle Question bank simplifies the task of organization of questions but the terminology can be confusing. In general, a set of questions is created in what is called a question category. A question category is like a folder in a computer file system or in file cabinet. Like a file folder, a question category might contain other question categories or just a set of questions. Permissions are assigned to question categories. The nesting (placing of a question category within another question category) can create a hierarchy of permissions when it comes to dealing with individual questions located in a question category.

By default a course teacher does not have permission to do anything with questions placed in a category outside the course in which they are assigned a teacher role. By default, students can not even see the Question bank or edit any question. The default permissions can be changed to meet specific goals of a site, a course or even a specific quiz activity.

Technical notes for administrators

For users who have privileges to alter the permissions for a role, here are some permissions that affect Question bank and its management and use:

See also

Using Moodle forum discussions: