Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Let's keep the default D7 'administrator' role, because we need it for true administrative duties. The 'site administrator' is designed to be a safer set of permissions which can be handed out to any novice without allowing them to destroy the entire site.
But, we should change the 'site administrator' role's name to 'site maintainer' because it more closely resembles the true nature of the role, and it'll better discern the difference between the two "power" roles.
Rename "Site administrator" role to "Site Maintainer"
» Rename "site administrator" role to "site maintainer"
I'm just updating the title to match the case of the change (i.e. all lower case). I'm not sure if there is a standard for these in D7, but at least there is consistency in all lower case on this text in both versions.
The 'site administrator' is designed to be a safer set of permissions which can be handed out to any novice without allowing them to destroy the entire site.
If that's the case, then we certainly shouldn't be granting permissions such as "Administer permissions" or anything included in the Drupal security team's list of permissions that exclude an SA, as the patches thusfar in this issue already do.
COD has roles that facilitate delegating specific responsibilities (session management, sponsor moderation, etc) so to move this forward, it would be useful to:
A) Explain why we need a sub-administrative role versus the targeted admin roles we already have and provide a specific example of how it would differ from the primary administrative role.
B) Revise this patch so that we don't grant permissions that let someone take over the site to a role we intend to be "a safer set of permissions"
C) Ideally provide a title for the site maintaner role that more clearly distinguishes it from the primary administrative role. A) would help with that.
or D) Simply revise the patch to provide some sane defaults for the existing administrator role that ships with core, as proposed in the OP.
A) Explain why we need a sub-administrative role versus the targeted admin roles we already have and provide a specific example of how it would differ from the primary administrative role.
The targeted admin roles leave a gap where we need an user to have access to sensitive info (commerce), but not have access to things which could pose a security problem (php filter, administer permissions).
C) Ideally provide a title for the site maintaner role that more clearly distinguishes it from the primary administrative role. A) would help with that.
conference administrator …?
or D) Simply revise the patch to provide some sane defaults for the existing administrator role that ships with core, as proposed in the OP.
I have seen a need for multiple users with unrestricted access to administrator features, so IMO a 'safe' admin role is needed, not just modifications to the core admin role.
I agree with twardnw: There are instances where volunteers should be able to help handle conference related tasks - scheduling events, posting blogs, etc. But, these people oftentimes should not have access to sensitive data, such as reports living in Commerce.
Conference Administrator or or Conference Manager would be good names.
if we need a conference manager, then we might also need to consider to add the following:
Administer content
Schedule a Schedule Item
Schedule a Session
Schedule a BoF Session
Access other users' private fields? for field permissions?
then sub modules can use this role to add their permissions.
Yes, each component should be adding it's own set of permissions to the role. For cod_base I think it should be:
access admin toolbar
administer blocks
administrer comments
administer features(?)
manage features(?)
use full html
administer menus
administer content
access content overview
view own unpublished content
view content revisions
revert content revisions
create article
edit any article
create basic page
edit any basic page
administer url aliases
create\edit url aliases
administer modules (?)
administer site configuration (?)
administer themes (?)
use admin pages
view admin theme
administer users
administer views
The few that are marked with a ? I am not sure of, in all likelihood those items are established and maintained by the users of the Administrator role, as those things hold implications on site functionality.
The features says overridden but everything is in 'default' mode so I'm not sure what's wrong. I'm attaching my patch here.
Regarding the patch, I only based the permissions on the cod_base so some of the mentioned permisisons in #15 are not applicable. here is the full list of permissions in this patch:
Administer text formats and filters
Administer menus and menu items
Administer content
View published content
Use the administration pages and help
Administer users
View user profiles
Administer views
Features, themes and site configuration, I don't think they are necessary to administer the conference details.
Patch works on my end. I see the permissions listed above enabled for the role "Conference Administrator" and that this role was renamed from "Site Administrator".
The overridden thing I think is because of "administer site configuration". `drush fd cod_base` says:
The re-rolls following #9 don't address the feedback in that comment.
To restate the most important part: Granting a role a permission included in the Drupal security team's list of permissions (especially "administer users") that exclude an SA is not a limited set of permissions.
I think we need to hold off on this patch, its very important that the 'conference administrator' does not have the Site Admin privileges (as mentioned by the Security Team via Ezra)
I'm also in the camp of "make roles that are sufficient for the tasks that need to be done" and then checking them off. IE: Session Manager, Commerce Manager, Sponsor Manager, forum Manager, etc.
We need to come up with compelling roles for each 'task' that needs to occur, then assign people those roles.
Looks good, cod_base when reverted shows as default. Requires Features 7.x-1.0 to not show up as overridden, and is the core administrator role (not the conference admin).
Also for site-wide content administration and other needed roles, we should be looking at adding 'per task' roles to each feature. Look at content manager role as the other role that should be included with cod_base.
Comments
Comment #1
senpai commentedLet's keep the default D7 'administrator' role, because we need it for true administrative duties. The 'site administrator' is designed to be a safer set of permissions which can be handed out to any novice without allowing them to destroy the entire site.
But, we should change the 'site administrator' role's name to 'site maintainer' because it more closely resembles the true nature of the role, and it'll better discern the difference between the two "power" roles.
Patch forthcoming.
Comment #2
senpai commentedThis patch renames the 'site administrator' role to 'site maintainer' in order to differentiate it from the default D7 'administrator' role.
Comment #3
primerg commentedTested the patch above. Only found this issue:
cod_community version 7.x-1.0-dev was change to:
Attached is the updated patch.
Comment #4
mjonesdinero commentedtested and reviewed and see that the patch renames the 'site administrator' role to 'site maintainer'.
Comment #5
twardnw commentedI have also tested this patch, applies clean.
Comment #6
twardnw commentedtitle update
Comment #7
gregglesI'm just updating the title to match the case of the change (i.e. all lower case). I'm not sure if there is a standard for these in D7, but at least there is consistency in all lower case on this text in both versions.
Comment #8
sheldonkreger commentedTagging.
Comment #9
ezra-g commentedIf that's the case, then we certainly shouldn't be granting permissions such as "Administer permissions" or anything included in the Drupal security team's list of permissions that exclude an SA, as the patches thusfar in this issue already do.
COD has roles that facilitate delegating specific responsibilities (session management, sponsor moderation, etc) so to move this forward, it would be useful to:
A) Explain why we need a sub-administrative role versus the targeted admin roles we already have and provide a specific example of how it would differ from the primary administrative role.
B) Revise this patch so that we don't grant permissions that let someone take over the site to a role we intend to be "a safer set of permissions"
C) Ideally provide a title for the site maintaner role that more clearly distinguishes it from the primary administrative role. A) would help with that.
or D) Simply revise the patch to provide some sane defaults for the existing administrator role that ships with core, as proposed in the OP.
Comment #10
ezra-g commentedI marked #1672838: Remove 'administer permissions' for 'Site maintainer' as a duplicate of this issue.
Comment #11
twardnw commentedThe targeted admin roles leave a gap where we need an user to have access to sensitive info (commerce), but not have access to things which could pose a security problem (php filter, administer permissions).
conference administrator …?
I have seen a need for multiple users with unrestricted access to administrator features, so IMO a 'safe' admin role is needed, not just modifications to the core admin role.
Comment #12
primerg commentedI am not clear of our action item here. Are we good to just change the name to "conference administrator" ?
Comment #13
sheldonkreger commentedI agree with twardnw: There are instances where volunteers should be able to help handle conference related tasks - scheduling events, posting blogs, etc. But, these people oftentimes should not have access to sensitive data, such as reports living in Commerce.
Conference Administrator or or Conference Manager would be good names.
Comment #14
primerg commented+1 for conference manager
if we need a conference manager, then we might also need to consider to add the following:
Administer content
Schedule a Schedule Item
Schedule a Session
Schedule a BoF Session
Access other users' private fields? for field permissions?
then sub modules can use this role to add their permissions.
Comment #15
twardnw commentedYes, each component should be adding it's own set of permissions to the role. For cod_base I think it should be:
The few that are marked with a ? I am not sure of, in all likelihood those items are established and maintained by the users of the Administrator role, as those things hold implications on site functionality.
Comment #16
twardnw commentedtitle update
Comment #17
primerg commentedThe features says overridden but everything is in 'default' mode so I'm not sure what's wrong. I'm attaching my patch here.
Regarding the patch, I only based the permissions on the cod_base so some of the mentioned permisisons in #15 are not applicable. here is the full list of permissions in this patch:
Features, themes and site configuration, I don't think they are necessary to administer the conference details.
Comment #18
primerg commentedComment #19
dsdeiz commentedPatch works on my end. I see the permissions listed above enabled for the role "Conference Administrator" and that this role was renamed from "Site Administrator".
The overridden thing I think is because of "administer site configuration". `drush fd cod_base` says:
Maybe because of this part:
Comment #20
dsdeiz commentedPatch attached for the permission "administer site configuration" removed in the feature since it isn't used in cod_base.
Comment #21
twardnw commentedlooks really good, only thing I would take off is Administer Text Filters, patch attached.
Comment #22
sheldonkreger commentedLooks like #21 is clean and adds all of the permissions discussed here, with the exception of Administer Text Filters.
Comment #23
primerg commentedlooks good here as well.
Comment #24
mjonesdinero commentedtested the patch as well on #21 and it is good and applies cleanly.
Comment #25
ezra-g commentedThe re-rolls following #9 don't address the feedback in that comment.
To restate the most important part: Granting a role a permission included in the Drupal security team's list of permissions (especially "administer users") that exclude an SA is not a limited set of permissions.
Comment #26
japerryI think we need to hold off on this patch, its very important that the 'conference administrator' does not have the Site Admin privileges (as mentioned by the Security Team via Ezra)
I'm also in the camp of "make roles that are sufficient for the tasks that need to be done" and then checking them off. IE: Session Manager, Commerce Manager, Sponsor Manager, forum Manager, etc.
We need to come up with compelling roles for each 'task' that needs to occur, then assign people those roles.
Comment #27
japerry--needs work--
Comment #28
ezra-g commentedThis patch goes back to the purpose of the OP.
Comment #29
japerryLooks good, cod_base when reverted shows as default. Requires Features 7.x-1.0 to not show up as overridden, and is the core administrator role (not the conference admin).
Comment #30
japerryComment #31
japerryAlso for site-wide content administration and other needed roles, we should be looking at adding 'per task' roles to each feature. Look at content manager role as the other role that should be included with cod_base.
http://drupal.org/node/1673028
Comment #32
ezra-g commentedThis is committed. Thanks!
http://drupalcode.org/project/cod_support.git/commit/02b977b
Comment #34
ezra-g commented