Skip to content

Commit f42751e

Browse files
committed
docs: restore the delegated administration intro the backport of #15501 missed
Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com> Assisted-by: ClaudeCode:claude-opus-5-5
1 parent 2565e35 commit f42751e

1 file changed

Lines changed: 23 additions & 5 deletions

File tree

‎developer_manual/basics/setting.rst‎

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,29 @@ The last missing part is to register both classes inside **<myapp>/appinfo/info.
111111
To register personal sections and settings class use `<personal-section>` and
112112
`<personal>` instead.
113113

114-
Additionally since Nextcloud 23, groups can be granted authorization to access individual
115-
admin settings (`see admin docs <https://docs.nextcloud.com/server/33/admin_manual/configuration_server/admin_delegation_configuration.html>`_).
116-
This is a feature that needs to be enabled for each admin setting class.
117-
To do so, the setting class needs to implement `IDelegatedSettings` instead of `ISettings`
118-
and implement two additional methods.
114+
Delegated administration
115+
------------------------
116+
117+
.. versionadded:: 23
118+
119+
Nextcloud has built-in functionality which permits `administrators to delegate authority
120+
<https://docs.nextcloud.com/server/33/admin_manual/configuration_server/admin_delegation_configuration.html>`_
121+
to others without granting them full administration privileges (and without making them a
122+
member of the ``admin`` group).
123+
124+
Specific groups can be granted authorization to access individual admin settings. This is a
125+
feature that needs to be enabled for each admin setting class. To do so, the setting class
126+
needs to implement ``IDelegatedSettings`` instead of ``ISettings`` and implement two additional
127+
methods.
128+
129+
Authorizing app-config keys
130+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
131+
132+
The values returned by ``getAuthorizedAppConfig()`` define which app-config keys delegated
133+
administrators may modify. Use exact key names whenever possible. Regular expressions are
134+
supported for dynamic key names, but should match the complete key using ``^`` and ``$``.
135+
Avoid unanchored expressions such as ``/notes_.*/``, which can match a key that merely
136+
contains the intended prefix.
119137

120138
.. code-block:: php
121139

0 commit comments

Comments
 (0)