-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
6.4.0, 7.4.0, 7.13.5
-
None
-
21
-
Severity 3 - Minor
-
3
-
Summary
If there are more than one group with System Administrator permissions, then the group confluence-administrators can be deleted. When re-adding the group the checkboxes for permissions cannot be changed (i.e. set to on)
Environment
- Confluence 6.4.0
Steps to Reproduce
- Ensure there is more than one group with System Administrator permissions
- Go to > User Management > Groups
- Create a new group confluence-system-administrators
- Click Add Members and add yourself
- Go to Global Permissions
- Click Edit Permissions
- Enter confluence-system-administrators to Grant browse permission to and click Add
- Check all checkboxes Personal Space, Create Space(s), Confluence Administrator, System Administrator
- Click Save All at the bottom
- Go to > User Management > Groups
- Click Delete next to confluence-administrators
- Click Confirm
- Go to > User Management > Groups
- (Re) Create a new group confluence-administrators
- Click Add Members and add yourself
- Go to Global Permissions
- Click Edit Permissions
- Enter confluence-administrators to Grant browse permission to and click Add
The checkboxes for Personal Space, Create Space(s), Confluence Administrator, System Administrator are now greyed out and cannot be clicked.
Expected Results
Either
- The checkboxes for Personal Space, Create Space(s), Confluence Administrator, System Administrator can be clicked.
- The group confluence-administrators should not be deletable.
Actual Results
The checkboxes for Personal Space, Create Space(s), Confluence Administrator, System Administrator are now greyed out and cannot be clicked.
Notes
The check boxes are not changable because confluence-administrators is a super-super user group. And so the permissions should not be changed. Thus, the group should not be deletable.
Workaround
The SQL for the permissions needs to be re-inserted. This may cause issues later if there is a collision with the permid value.
- Create the group confluence-administrators via the UI
- Shutdown Confluence
- Run this SQL (this is for PostgreSQL)
insert into spacepermissions (permid, permtype, permgroupname, creationdate, lastmoddate) values (1000, 'CREATESPACE', 'confluence-administrators', current_timestamp, current_timestamp); insert into spacepermissions (permid, permtype, permgroupname, creationdate, lastmoddate) values (1001, 'PERSONALSPACE', 'confluence-administrators', current_timestamp, current_timestamp); insert into spacepermissions (permid, permtype, permgroupname, creationdate, lastmoddate) values (1002, 'SYSTEMADMINISTRATOR', 'confluence-administrators', current_timestamp, current_timestamp); insert into spacepermissions (permid, permtype, permgroupname, creationdate, lastmoddate) values (1003, 'ADMINISTRATECONFLUENCE', 'confluence-administrators', current_timestamp, current_timestamp);
- Restart Confluence