Redaktion (talk | contribs)
No edit summary
Redaktion (talk | contribs)
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<bookshelf src="Book:Admin manual" />
{{DISPLAYTITLE:Permissions management}}
{{DISPLAYTITLE:Permissions management}}
 
==Settings==
The permission manager can be accessed from the ''Global actions'' menu ''under Administration > Permissions''. This link loads the page ''Special:PermissionManager.''
The permission manager can be accessed from the ''Global actions'' menu ''under Administration > Permissions''. This link loads the page ''Special:PermissionManager.''


There are four different permission settings. The default setting is "Private wiki". If you want to grant different permissions in different [[Manual:Extension/BlueSpiceNamespaceManager|namespaces]], the setting "Custom setup" is required.
There are four different permission settings. The default setting is "Private wiki". If you want to grant different permissions in different [[Manual:Extension/BlueSpiceNamespaceManager|namespaces]], the setting "Custom setup" is required.


[[File:Manual:permissionmanager.png|alt=Permissions manager|center|thumb|650x650px|Permissions manager]]
[[File:Manual:permissionmanager.png|alt=Permissions with selected setting "Custom setup"|center|thumb|650x650px|Permissions manager]]


==Settings==
 
An administrator can choose between three types of settings. The setting '''Private Wiki''' is activated by default.
An administrator can choose between four types of settings. The setting '''Private Wiki''' is activated by default.
{| class="wikitable contenttable-blue" style="width:100%;"
{| class="wikitable contenttable-blue" style="width:100%;"
! style="width:180px;" |'''Permission type'''
! style="width:180px;" |'''Permission type'''
!'''Description'''
! style="" |'''Description'''
!'''Special permissions'''
! style="" |'''Special permissions'''
|-
|-
| style="width:180px;" |Public wiki
| style="width:180px;" |Public wiki
|The wiki is visible to and editable by anyone, including anonymous users (that means users that are not logged in).
| style="" |The wiki is visible to and editable by anyone, including anonymous users (that means users that are not logged in).


*All users have edit rights by default.
*All users have edit rights by default.
*To approve a page (if the approval mechanism is activated in a namespace), the groups "editor" and "reviewer" must be assigned to a user.
*To approve a page (if the approval mechanism is activated in a namespace), the groups "editor" and "reviewer" must be assigned to a user.
*To manage the wiki (administrative tasks), the group "sysop" must be assigned to a user.
*To manage the wiki (administrative tasks), the group "sysop" must be assigned to a user.{{Messagebox|boxtype=note|Note text=In BlueSpice cloud, it is not possible to assign ''edit'', ''comment'', or ''upload'' rights to anonymous users.
|Sonderverrechtung: <ref name="globalrights">Global permissions (modified by the special permissions shown in the table above):<syntaxhighlight lang="text">
The setting "Public wiki" is therefore not offered in cloud wikis.}}
| style="" |Sonderverrechtung: <ref name="globalrights">Global permissions (modified by the special permissions shown in the table above):<syntaxhighlight lang="text">
'bureaucrat' => [  
'bureaucrat' => [  
'accountmanager' => true  
'accountmanager' => true  
Line 47: Line 47:
|-
|-
| style="width:180px;" |Protected wiki
| style="width:180px;" |Protected wiki
|The wiki is visible to anyone. Only logged-in users can edit the wiki.
| style="" |The wiki is visible to anyone. Only logged-in users can edit the wiki.


*All users have edit rights by default.
*All users have edit rights by default.
*To approve a page (if the approval mechanism is activated in a namespace), the groups "editor" and "reviewer" must be assigned to a user.
*To approve a page (if the approval mechanism is activated in a namespace), the groups "editor" and "reviewer" must be assigned to a user.
*To manage the wiki (administrative tasks), the group "sysop" must be assigned to a user.
*To manage the wiki (administrative tasks), the group "sysop" must be assigned to a user.
|Sonderverrechtung:<ref name="globalrights" />:<syntaxhighlight lang="text">
| style="" |Sonderverrechtung:<ref name="globalrights" />:<syntaxhighlight lang="text">
// Anonymous users can read, logged-in users can edit
// Anonymous users can read, logged-in users can edit
$this->groupRoles['*']['reader'] = true;
$this->groupRoles['*']['reader'] = true;
Line 60: Line 60:
|-
|-
| style="width:180px;" |Private wiki
| style="width:180px;" |Private wiki
|Only logged-in users can view and edit the wiki.
| style="" |Only logged-in users can view and edit the wiki.


*Logged-in users only have veiw permissions.
*Logged-in users only have veiw permissions.
Line 66: Line 66:
*To approve a page (if the approval mechanism is activated in a namespace), the groups "editor" and "reviewer" must be assigned to a user.
*To approve a page (if the approval mechanism is activated in a namespace), the groups "editor" and "reviewer" must be assigned to a user.
*To manage the wiki (administrative tasks), the group "sysop" must be assigned to a user.
*To manage the wiki (administrative tasks), the group "sysop" must be assigned to a user.
|Sonderverrechtung:<ref name="globalrights" /><syntaxhighlight lang="text">
| style="" |Sonderverrechtung:<ref name="globalrights" /><syntaxhighlight lang="text">
// Only logged-in users can read. The group "editor" has to be manually assigned to users.
// Only logged-in users can read. The group "editor" has to be manually assigned to users.
$this->groupRoles['*']['reader'] = false;
$this->groupRoles['*']['reader'] = false;
Line 78: Line 78:
| style="width:180px;" |Custom setup
| style="width:180px;" |Custom setup
(BlueSpice pro)
(BlueSpice pro)
|Roles and groups are assigned by an administrator. This is necessary if different namespaces need to have different user rights. See the next section for more info.
| style="" |Roles and groups are assigned by an administrator. This is necessary if different namespaces need to have different user rights. See the next section for more info.
|
| style="" |
|}
|}
<references />
{{Textbox|boxtype=note|header=|text=If you save your personalized settings at least once and then switch back to a "protected" or "private" wiki, you won't lose these personalized settings. You can revert to the last custom settings at any time.|icon=yes}}<references />
{{Messagebox|boxtype=note|Note text=In BlueSpice pro Cloud, it is not possible to assign ''edit'', ''comment'', or ''upload'' rights to anonymous users.}}
==Custom setup==
Die Tabelle zeigt typische Standardeinstellungen für eine einfache Benutzerverwaltung:
{| class="wikitable" style="width:100%;"
|+
!'''Group'''
!'''Default roles'''
!'''Purpose of the group'''
!'''Suggested rolees'''
|-
| anonymous user (*)
| -
|<span style="color: rgb(51, 51, 51)">Determines if anonymous users can read wiki pages.</span>
|(no role assignment) or ''reader''
|-
|user
|reader, editor
|<span style="color: rgb(51, 51, 51)">Determines the rights authenticated users have if they don't belong to any other groups. All groups except for anonymous users initially inherit permissions from this group.</span>
|''reader'' or
''reader, editor''
|-
|editor
|(von user geerbt),
editor
|Group members can edit the wiki.
|''(editor)*''
|-
|reviewer
|(von user geerbt), reviewer
|Group members can approve page revisions if the approval feature is activated.
|''reviewer''
|-
|sysop
|(von user geerbt), editor, admin
|Grants administrator rights to the wiki.
Included in roles: admin, maintenanceadmin
|''(editor)*, admin''
|-
| colspan="4" style="text-align:right;" |<nowiki>*</nowiki> can be inherited through the group "user"
|}
{{Messagebox|boxtype=note|Note text=If you have saved the personalized settings at least once and then switch back to a "protected" or "private" wiki, you do not lose your latest personalized settings. You can simply resave the latest saved settings to switch back to a wiki with personalized permissions.}}


===About role-based permissions===
== About role-based permissions ==
Roles represent a '''collection of individual permissions''' that are necessary to perform certain functions in the wiki. For example, for a user who is supposed to only read the wiki, many permissions in addition to the "read" permission are needed: The ability to change their own settings,  to search the wiki, to view page ratings, and so on.
Roles represent a '''collection of individual permissions''' that are necessary to perform certain functions in the wiki. For example, for a user who is supposed to only read the wiki, many permissions in addition to the "read" permission are needed: The ability to change their own settings,  to search the wiki, to view page ratings, and so on.


Line 132: Line 91:
By assigning roles to a group, all users belonging to that group receive the rights of these roles. Roles are never assigned directly to users, but always to groups instead. Users are then assigned to one or more groups.
By assigning roles to a group, all users belonging to that group receive the rights of these roles. Roles are never assigned directly to users, but always to groups instead. Users are then assigned to one or more groups.
[[File:Manual:RightsRolesGroups.png|center|900x900px]]
[[File:Manual:RightsRolesGroups.png|center|900x900px]]
<br />As a result, the following administration pages play a role in rights management:
<br />As a result, the following administration pages play a role in the rights management:


* [[Manual:Extension/BlueSpiceNamespaceManager|Namespace manager]]: In the wiki, user groups can be granted different permissions via roles in individual namespaces.
* [[Manual:Extension/BlueSpiceNamespaceManager|Namespace manager]]: In the wiki, user groups can be granted different permissions via roles in individual namespaces.
* [[Manual:Extension/BlueSpiceGroupManager|Group manager]]: Namespace permissions are assigned to user groups, not to individual users.
* [[Manual:Extension/BlueSpiceUserManager|User manager]]: Individual users are assigned to groups to obtain the permissions associated with the group.
* [[Manual:Extension/BlueSpiceUserManager|User manager]]: Individual users are assigned to groups to obtain the permissions associated with the group.
* Permission manager: In the Permission manager, the user groups are assigned to their roles in the namespaces.
* Permission manager (with integrated group manager): In the Permission manager, the user groups are managed and assigned to their roles in the namespaces.


===The roles matrix===
== Custom setup ==
The permission manager consists of the group tree (1) and the role matrix (2):<span /><br />
The "Custom setup" is used to assign global and namespace-specific permissions to groups.
[[File:PermissionManager custom setup.png|alt=View of the different sections of the custom permissions setup|center|thumb|750x750px|Custom setup]]
{| class="wikitable" style="width: 100%;"
|+
! style="width:20px;" |Element
! style="" |Function
! style="" |Description
|-
| style="vertical-align:middle;text-align:center;width:20px;" |1
| style="" |Groups panel
| style="" |This panel lists all groups in the wiki:
 
* '''Automatic groups:''' The "Unauthenticated users" (anonymous users without user account) and "Authenticated users" (users with user accounts) Users fall automatically into one of these groups, if they are not assigned to at least one group. All other groups initially inherit their permissions from the automatic groups.
* '''Groups:''' The built-in groups Editors, Reviewers and Administrators as well as any custom groups an administrator has already created.
* '''New custom groups''' are created as needed from the (<code>+</code>) plus-button.
|-
| style="vertical-align:middle;text-align:center;width:20px;" |2
| style="" |Selected user group
| style="" |The heading shows which group is currently selected for viewing or for setting the permissions.
|-
| style="vertical-align:middle;text-align:center;width:20px;" |3
| style="" |Global permissions
| style="" |You can grant global permissions that apply to the entire wiki for this group. If you want to only grant permissions in one or more specific namespaces, you do not need to select a role here.
|-
| style="vertical-align:middle;text-align:center;width:20px;" |4
| style="" |Namespace-specific permissions
| style="" |Shows a filterable list of all namespaces and their permissions for the selected user group.
If a change is saved here, the group must be selected again in the group list if the setting should be reviewed after saving.
|-
| style="vertical-align:middle;text-align:center;width:20px;" |4
| style="" |Advanced mode
| style="" |This view displays the roles of a user group in a matrix format. The role names are clickable and show the individual permissions within a role.
|}
{{Messagebox|boxtype=note|Note text=If you have saved the personalized settings at least once and then switch back to a "protected" or "private" wiki, you do not lose your latest personalized settings. You can simply resave the latest saved settings to switch back to a wiki with personalized permissions.}}
 
===Advanced mode===
The permission manager consists of the group tree (1) and the role matrix (2). Namespaces can be added and removed as needed (3):<br />
[[File:Manual:PermissionManager2a.png|center|thumb|650x650px|Associating groups with roles in namespaces|link=Special:FilePath/Manual:PermissionManager2a.png]]
[[File:Manual:PermissionManager2a.png|center|thumb|650x650px|Associating groups with roles in namespaces|link=Special:FilePath/Manual:PermissionManager2a.png]]


<span><br /></span>
<span><br /></span>The group tree on the left displays all groups. The following groups are available by default:
The '''group tree'''  shows all existing groups:
 
* Automatically created groups:
** Unauthenticated users: All non-logged-in users (anonymous users) belong to this group.
** Authenticated users: The default group for all logged-in users, even if they don't belong to a subgroup. Permissions are inherited from this group to the groups.
* Groups: These groups first inherit permissions from the automatically created groups. The inherited permissions can be overridden here.
** Built-in groups: These groups are generic and used across namespaces in the wiki.
** Custom groups: Additional groups created by administrators using the corresponding link (+ symbol at the top of the list).


*'''Group "*":''' all non-logged-in (anonymous) users
The columns in the role matrix:
*'''Group "user":''' all logged-in users, the default group for all users
*'''Subgroups of group "user":''' all groups that are defined on the wiki, eiter by default, by MediaWiki, or custom groups created in the [[Manual:Extension/BlueSpiceGroupManager|Group manager]] by an administrator. System groups, created by MediaWiki, can be hidden by unchecking the "Show system groups" checkbox above the tree.


<span><br /></span>
* '''Role name:''' The role(s) assigned to a group in specific namespaces to grant user permissions. Clicking on the name displays all permissions assigned to that role.[[File:rechteverwaltung - permissions in a role.png|alt=List with permissions|center|thumb|450x450px|Permissions in the role "editor"]]
The columns in the '''role matrix''' are:


*'''Role information''' (info icon): Clicking the icon shows all the permissions  in a role. This list is exportable.
*'''Role name'''
*'''Wiki:''' Assignment of a role to the entire wiki. By assigning the role in this column, a user group gets permissions in this role on the wiki (all namespaces).
*'''Wiki:''' Assignment of a role to the entire wiki. By assigning the role in this column, a user group gets permissions in this role on the wiki (all namespaces).
*'''Individual namespaces:''' The following columns list every (applicable) namespace on the wiki.
*'''Individual namespaces:'''
** Roles can be assigned to individual namespaces. For example, the group ''user'' can get the ''editor'' role only in the namespace ''Public. Users in this group cannot edit content in any other'' . By granting a role to a particular group in a particular namespace, means that all other groups will lose permissions from this role, eg. granting role "reader" in namespace "Private" to group "sysop" means that all users in any other groups won't be able to read pages in "Private" namespace, even if they have "reader" role granted on the wiki level ("Wiki" column).
** Roles can be assigned within namespaces. If a group in a namespace is explicitly assigned a role, '''all other groups lose the permissions for that role''' and must be explicitly reassigned if desired.
**The same role can be granted to multiple groups for the same namespace.
** Multiple groups can be assigned one or more roles for a namespace.
**Additional namespaces can be added in the matrix by clicking on the arrow in table header, then "Columns". Then the namespaces can be selected.
** The display of additional namespaces can be controlled using the "Namespaces" filter above the matrix view.


===Role inheritance===
===Role inheritance===
By default, all roles granted to the (*) group will be granted to the ''user'' group, and all roles granted to the ''user'' group are granted to its subgroups.
All roles assigned to the "unauthenticated users" group are inherited by the "authenticated users" group. All roles explicitly assigned to the "authenticated users" group are inherited by the custom groups. If a group inherits the role from an automatic group in the role matrix, this is displayed in green. In this case, a check mark is not explicitly set.
If a group inherits the role from an upper-level group field, this is indicated in the role matrix with a green background, but the checkbox is empty.
 
== Explicitely set namespace permissions ==
If a group is explicitly assigned a specific role in a namespace, that role is automatically revoked from all other groups. In the following example, the read permission in the Training namespace is assigned to the Administrator group:
[[File:permission manager explicitly set roles.png|alt=Training namespace with its selected roles for the Administrators group|center|thumb|500x500px|explicitely set permissions in the namespace "Training"]]
 


===Default roles===
'''All other groups no longer have access to this namespace'''. In the standard view, this is displayed as "denied":
By default, the Permission manager includes a number of predefined roles that serve most user needs. The individual permissions contained in a role can be seen by clicking the info icon in front of the role  name. It opens a dialog with a permissions list for the role.[[File:bot-permissions.png|center|650x650px|link=https://en.wiki.bluespice.com/wiki/File:bot-permissions.png]]
[[File:permission manager access denied.png|alt=Default view of the permissions for the namespace "Training" for authenticated users|center|thumb|500x500px|No access for the selected group in the "Training" namespace]]


*'''bot: '''exists to achieve recurring system actions. This role is assigned to the user BSMaintenance in Bluespice  via the group bot. The group bot should not be changed.
 
*'''admin: '''Grants access to all administrative special pages and to all typical administrative features.
 
*'''maintenanceadmin: '''Similar to the ''admin'' role, but with extended admin rights for maintaining wiki integrity.
To extend access to other groups, these different groups must be clicked and the checkboxes in the "Training" namespace must be explicitly selected.
*'''author: '''all permissions necessary for creating content on the wiki. Editing, moving, or deleting pages is not possible.
 
*'''editor: '''create content, edit and delete content.
In the "Advanced Mode" view, the namespace is grayed out if access is denied:
*'''reviewer: ''' If you have activated the review function and, therefore, work draft pages in a namespace, there must be at least one group with the role of reviewer. By default, the group “reviewer” is available for this purpose. Only users in the reviewer role can approve draft pages. Reviewers generally need read, write and review rights via the corresponding three roles of reader, editor and reviewer. However, if you have not activated the review function in any namespace, you do not need this role in your wiki.
[[File:permission manager access denied advanced mode.png|alt=Blocked namespace "Training"|center|thumb|250x250px|Display in "Advanced mode"]]
*'''accountmanager: '''enables the administration of user accounts. Since user accounts are managed independently of namespaces in the wiki, this role cannot be restricted to individual namespaces. Grayed-out namespaces have no meaning here as long as the role in the wiki itself is highlighted in green.
 
*'''structuremanager: '''allows some actions for wiki maintenance such as moving pages, mass deleting pages or searching and replacing text, as well as renaming namespaces.
== Default roles ==
*'''accountselfcreate: ''' enables the automatic creation of new user accounts and is required for single-sign-on. You can assign this role, for example, to anonymous users who can create their own account.
By default, the permission manager offers a number of predefined roles. The following roles are primarily used:
*'''commenter:''' allows the creation of discussion contributions and page ratings, but not of the pages themselves. The editor role includes all the rights of the commenter role. If a group has editor rights, it does not need special commenter rights.
*'''reader''': basic read access. Users can also edit their personal settings
*'''reader''': Basic read access. Users can also edit their personal settings.<span /><br />
*'''editor: '''create content, edit and delete content
*'''reviewer: ''' if you have activated the review function and, therefore, work draft pages in a namespace, there must be at least one group with the role of reviewer. By default, the group “reviewer” is available for this purpose. Only users in the reviewer role can approve draft pages. Reviewers generally need read, write and review rights via the corresponding three roles of reader, editor and reviewer. However, if you have not activated the review function in any namespace, you do not need this role in your wiki
*'''admin: '''grants access to all administrative special pages and to all typical administrative features
 
 
The following roles can be assigned via the Advanced Mode in addition:
*'''commenter:''' allows the creation of discussion contributions and page ratings, but not of the pages themselves. The editor role includes all the rights of the commenter role. If a group has editor rights, it does not need special commenter rights
*'''accountselfcreate: ''' allows signing in via a connected authentication mechanism (Single-sign on)
*'''author: '''all permissions necessary for creating content on the wiki. Editing, moving, or deleting pages is not possible
*'''structuremanager: '''allows some actions for wiki maintenance such as moving pages, mass deleting pages or searching and replacing text, as well as renaming namespaces
*'''accountmanager: '''enables the administration of user accounts. Since user accounts are managed independently of namespaces in the wiki, this role cannot be restricted to individual namespaces. Grayed-out namespaces have no meaning here as long as the role in the wiki itself is highlighted in green
*'''bot: '''exists to achieve recurring system actions. This role is assigned to the user BSMaintenance in Bluespice  via the group bot. The group bot should not be changed
*'''maintenanceadmin: '''similar to the ''admin'' role, but with extended admin rights for maintaining wiki integrity


== Restricting read permissions ==
== Restricting read permissions ==
Line 203: Line 214:
In general, all MediaWiki special pages do not check permissions and therefore list these pages for the affected users. Most common examples:
In general, all MediaWiki special pages do not check permissions and therefore list these pages for the affected users. Most common examples:
<span /><br />
<span /><br />
* Special:All pages
* Special:RecentChanges
* Special:RecentChanges
* Special:Bookshelf  ('''Note:''' If this is an issue, you can limit access to the namespace ''Book'' to selected groups. The page ''Special:Bookshelf'' then won't show any links to books to users who do not have access to the ''Book'' namespace. Links to individual books can then be provided on various portal pages as needed).
* Special:Bookshelf  ('''Note:''' If this is an issue, you can limit access to the namespace ''Book'' to selected groups. The page ''Special:Bookshelf'' then won't show any links to books to users who do not have access to the ''Book'' namespace. Links to individual books can then be provided on various portal pages as needed).
Line 209: Line 219:


=== Limited transclusion ===
=== Limited transclusion ===
If you explicitely assign the ''reader'' role (or any other role that contains the ''read'' permission) in a namespace to a group or groups, that namespace is automatically configured so that its content cannot be transcluded. This is for security reasons, since MediaWiki does not check permissions when transcluding content.
If you explicitely assign the ''reader'' role (or any other role that contains the ''read'' permission) in a namespace to a group or groups, that namespace is automatically configured so that '''its content cannot be transcluded'''. This is for security reasons, since MediaWiki does not check permissions when transcluding content.


==Technical info==
==Technical info==
===Logging===
===Logging===
Every change to the roles is logged in <code>Special:Log</code>, in the <code> Permission Manager log</code> .
Every change to the roles is logged in <code>Special:Log</code>, in the <code> Permission Managerlog</code> .
These logs are available only to wiki administrators (users in groups with the role ''admin'').
These logs are available only to wiki administrators (users in groups with the role ''admin'').<span><br /></span>
==Configuration ==
All changes to the role matrix  are backed up. By default, the last 5 backups are kept. This limit can be changed in [[Manual:Extension/BlueSpiceConfigManager|Config manager]], under extension BlueSpicePermissionManager.<span /><br />{{#dpl:title=Manual:Extension/BlueSpiceConfigManager|include=#BlueSpicePermissionManager}}
 
<span><br /></span>
{{Box Links-en|Topic1=[[Reference:BlueSpicePermissionManager]]|Topic2=[[Manual:Extension/BlueSpiceGroupManager|Group manager]]}}
{{translation}}
{{translation}}

Latest revision as of 14:05, 30 May 2025

Settings

The permission manager can be accessed from the Global actions menu under Administration > Permissions. This link loads the page Special:PermissionManager.

There are four different permission settings. The default setting is "Private wiki". If you want to grant different permissions in different namespaces, the setting "Custom setup" is required.

Permissions with selected setting "Custom setup"
Permissions manager


An administrator can choose between four types of settings. The setting Private Wiki is activated by default.

Permission type Description Special permissions
Public wiki The wiki is visible to and editable by anyone, including anonymous users (that means users that are not logged in).
  • All users have edit rights by default.
  • To approve a page (if the approval mechanism is activated in a namespace), the groups "editor" and "reviewer" must be assigned to a user.
  • To manage the wiki (administrative tasks), the group "sysop" must be assigned to a user.
    Note:In BlueSpice cloud, it is not possible to assign edit, comment, or upload rights to anonymous users.
The setting "Public wiki" is therefore not offered in cloud wikis.
Sonderverrechtung: [1]
// Anonymous and logged-in users can read and edit
$this->groupRoles['*']['reader'] = true;
$this->groupRoles['*']['editor'] = true;
Protected wiki The wiki is visible to anyone. Only logged-in users can edit the wiki.
  • All users have edit rights by default.
  • To approve a page (if the approval mechanism is activated in a namespace), the groups "editor" and "reviewer" must be assigned to a user.
  • To manage the wiki (administrative tasks), the group "sysop" must be assigned to a user.
Sonderverrechtung:[1]:
// Anonymous users can read, logged-in users can edit
$this->groupRoles['*']['reader'] = true;
$this->groupRoles['*']['editor'] = false;
$this->groupRoles['user']['editor'] = true;
Private wiki Only logged-in users can view and edit the wiki.
  • Logged-in users only have veiw permissions.
  • Important! To edit a page, users must be assigned to the "editor" group manually.
  • To approve a page (if the approval mechanism is activated in a namespace), the groups "editor" and "reviewer" must be assigned to a user.
  • To manage the wiki (administrative tasks), the group "sysop" must be assigned to a user.
Sonderverrechtung:[1]
// Only logged-in users can read. The group "editor" has to be manually assigned to users.
$this->groupRoles['*']['reader'] = false;
$this->groupRoles['*']['editor'] = false;
$this->groupRoles['user']['reader'] = true;
$this->groupRoles['user']['editor'] = false;
$this->groupRoles['editor']['editor'] = true;
$this->groupRoles['sysop']['editor'] = true;
Custom setup

(BlueSpice pro)

Roles and groups are assigned by an administrator. This is necessary if different namespaces need to have different user rights. See the next section for more info.
If you save your personalized settings at least once and then switch back to a "protected" or "private" wiki, you won't lose these personalized settings. You can revert to the last custom settings at any time.
  1. 1.0 1.1 1.2 Global permissions (modified by the special permissions shown in the table above):
    'bureaucrat' => [ 
    'accountmanager' => true 
    ],
    'sysop' => [
    'reader' => true,
    'editor' => true,
    'reviewer' => true,
    'admin' => true
    ],
    'user' => [ 'editor' => true ],
    'editor' => [
    'reader' => true,
    'editor' => true
    ],
    'reviewer' => [
    'reader' => true,
    'editor' => true,
    'reviewer' => true
    

About role-based permissions

Roles represent a collection of individual permissions that are necessary to perform certain functions in the wiki. For example, for a user who is supposed to only read the wiki, many permissions in addition to the "read" permission are needed: The ability to change their own settings, to search the wiki, to view page ratings, and so on.

All permissions that make up a logical group are encapsulated in a role, in this example the role "reader". If wiki administrators want to grant read-only rights to a user group, they only need to assign that group the "reader" role, instead of assigning many individual permissions that are needed to create a "read"-user.

By assigning roles to a group, all users belonging to that group receive the rights of these roles. Roles are never assigned directly to users, but always to groups instead. Users are then assigned to one or more groups.


As a result, the following administration pages play a role in the rights management:

  • Namespace manager: In the wiki, user groups can be granted different permissions via roles in individual namespaces.
  • User manager: Individual users are assigned to groups to obtain the permissions associated with the group.
  • Permission manager (with integrated group manager): In the Permission manager, the user groups are managed and assigned to their roles in the namespaces.

Custom setup

The "Custom setup" is used to assign global and namespace-specific permissions to groups.

View of the different sections of the custom permissions setup
Custom setup
Element Function Description
1 Groups panel This panel lists all groups in the wiki:
  • Automatic groups: The "Unauthenticated users" (anonymous users without user account) and "Authenticated users" (users with user accounts) Users fall automatically into one of these groups, if they are not assigned to at least one group. All other groups initially inherit their permissions from the automatic groups.
  • Groups: The built-in groups Editors, Reviewers and Administrators as well as any custom groups an administrator has already created.
  • New custom groups are created as needed from the (+) plus-button.
2 Selected user group The heading shows which group is currently selected for viewing or for setting the permissions.
3 Global permissions You can grant global permissions that apply to the entire wiki for this group. If you want to only grant permissions in one or more specific namespaces, you do not need to select a role here.
4 Namespace-specific permissions Shows a filterable list of all namespaces and their permissions for the selected user group.

If a change is saved here, the group must be selected again in the group list if the setting should be reviewed after saving.

4 Advanced mode This view displays the roles of a user group in a matrix format. The role names are clickable and show the individual permissions within a role.
Note:If you have saved the personalized settings at least once and then switch back to a "protected" or "private" wiki, you do not lose your latest personalized settings. You can simply resave the latest saved settings to switch back to a wiki with personalized permissions.


Advanced mode

The permission manager consists of the group tree (1) and the role matrix (2). Namespaces can be added and removed as needed (3):

Associating groups with roles in namespaces


The group tree on the left displays all groups. The following groups are available by default:

  • Automatically created groups:
    • Unauthenticated users: All non-logged-in users (anonymous users) belong to this group.
    • Authenticated users: The default group for all logged-in users, even if they don't belong to a subgroup. Permissions are inherited from this group to the groups.
  • Groups: These groups first inherit permissions from the automatically created groups. The inherited permissions can be overridden here.
    • Built-in groups: These groups are generic and used across namespaces in the wiki.
    • Custom groups: Additional groups created by administrators using the corresponding link (+ symbol at the top of the list).

The columns in the role matrix:

  • Role name: The role(s) assigned to a group in specific namespaces to grant user permissions. Clicking on the name displays all permissions assigned to that role.
    List with permissions
    Permissions in the role "editor"
  • Wiki: Assignment of a role to the entire wiki. By assigning the role in this column, a user group gets permissions in this role on the wiki (all namespaces).
  • Individual namespaces:
    • Roles can be assigned within namespaces. If a group in a namespace is explicitly assigned a role, all other groups lose the permissions for that role and must be explicitly reassigned if desired.
    • Multiple groups can be assigned one or more roles for a namespace.
    • The display of additional namespaces can be controlled using the "Namespaces" filter above the matrix view.

Role inheritance

All roles assigned to the "unauthenticated users" group are inherited by the "authenticated users" group. All roles explicitly assigned to the "authenticated users" group are inherited by the custom groups. If a group inherits the role from an automatic group in the role matrix, this is displayed in green. In this case, a check mark is not explicitly set.

Explicitely set namespace permissions

If a group is explicitly assigned a specific role in a namespace, that role is automatically revoked from all other groups. In the following example, the read permission in the Training namespace is assigned to the Administrator group:

Training namespace with its selected roles for the Administrators group
explicitely set permissions in the namespace "Training"


All other groups no longer have access to this namespace. In the standard view, this is displayed as "denied":

Default view of the permissions for the namespace "Training" for authenticated users
No access for the selected group in the "Training" namespace


To extend access to other groups, these different groups must be clicked and the checkboxes in the "Training" namespace must be explicitly selected.

In the "Advanced Mode" view, the namespace is grayed out if access is denied:

Blocked namespace "Training"
Display in "Advanced mode"

Default roles

By default, the permission manager offers a number of predefined roles. The following roles are primarily used:

  • reader: basic read access. Users can also edit their personal settings
  • editor: create content, edit and delete content
  • reviewer: if you have activated the review function and, therefore, work draft pages in a namespace, there must be at least one group with the role of reviewer. By default, the group “reviewer” is available for this purpose. Only users in the reviewer role can approve draft pages. Reviewers generally need read, write and review rights via the corresponding three roles of reader, editor and reviewer. However, if you have not activated the review function in any namespace, you do not need this role in your wiki
  • admin: grants access to all administrative special pages and to all typical administrative features


The following roles can be assigned via the Advanced Mode in addition:

  • commenter: allows the creation of discussion contributions and page ratings, but not of the pages themselves. The editor role includes all the rights of the commenter role. If a group has editor rights, it does not need special commenter rights
  • accountselfcreate: allows signing in via a connected authentication mechanism (Single-sign on)
  • author: all permissions necessary for creating content on the wiki. Editing, moving, or deleting pages is not possible
  • structuremanager: allows some actions for wiki maintenance such as moving pages, mass deleting pages or searching and replacing text, as well as renaming namespaces
  • accountmanager: enables the administration of user accounts. Since user accounts are managed independently of namespaces in the wiki, this role cannot be restricted to individual namespaces. Grayed-out namespaces have no meaning here as long as the role in the wiki itself is highlighted in green
  • bot: exists to achieve recurring system actions. This role is assigned to the user BSMaintenance in Bluespice via the group bot. The group bot should not be changed
  • maintenanceadmin: similar to the admin role, but with extended admin rights for maintaining wiki integrity

Restricting read permissions

It is possible to limit read permissions in a namespace by explicitely assigning the role reader to one or more particular groups. When users in other groups try to access a page in such a namespace, they will get a message that the permissions are denied.

Access denied
Access denied

While a user cannot access the content of the page, the wiki still shows links to these pages to all users in some contexts, even if a user does not have permissions to access the page content itself.


The following lists show which extensions or functionalities do not show links to restricted pages — because they are permissions-aware — and where the links are shown regardless of permissions.

Exensions that are permissions-aware

Query results and page lists provided by the following extensions do not show links to pages to which the current user has no access on the namespace level:

Extensions and special pages that are not permissions-aware

Extensions that provide page lists and that do not hide links to read-restricted pages to the affected users. Examples:


In general, all MediaWiki special pages do not check permissions and therefore list these pages for the affected users. Most common examples:

  • Special:RecentChanges
  • Special:Bookshelf (Note: If this is an issue, you can limit access to the namespace Book to selected groups. The page Special:Bookshelf then won't show any links to books to users who do not have access to the Book namespace. Links to individual books can then be provided on various portal pages as needed).
  • Category pages: All pages in the namespace Category

Limited transclusion

If you explicitely assign the reader role (or any other role that contains the read permission) in a namespace to a group or groups, that namespace is automatically configured so that its content cannot be transcluded. This is for security reasons, since MediaWiki does not check permissions when transcluding content.

Technical info

Logging

Every change to the roles is logged in Special:Log, in the Permission Managerlog . These logs are available only to wiki administrators (users in groups with the role admin).



PDF exclude - start

To submit feedback about this documentation, visit our community forum.

PDF exclude - end