Skip to content

Default Admin user should not be allowed to change its ROLE type #10931

Description

@kiranchavala

The required feature described as a wish

  1. Currently, the default admin user is allowed to change their own Role type

Image

  1. If the default admin user changes the role type to user role by mistake, the default admin is locked out completely

  2. Currently, there is no option to delete the default admin account and user( which is good) , the same functionality should be extended to role type

Expected behaviour

The role type of default admin should be set to Root admin and not allowed to change by admin

Activity

  1. added this to the 4.21.0 milestone on May 31, 2025
  2. fmaximus commented on Jun 28, 2025

    @fmaximus
    Contributor

    Server side already seems to block any changes to the system account.

    if (account.getId() == Account.ACCOUNT_ID_SYSTEM) {

    So this would be UI improvements only to hide edit button:

    api: 'updateAccount',

    By the way, shouldn't

    api: 'disableAccount',

    be calling lockAccount api instead of disableAccount.

  3. DaanHoogland commented on Jun 30, 2025

    @DaanHoogland
    Contributor

    hey @fmaximus , welcome back ;) I think you are right about the api call. I also see that both blocks pass the ‘lock’ parameter. Not sure if that is a c&p feature as well, but it looks strange at least.

  4. self-assigned this
    on Jul 2, 2025
  5. modified the milestones: 4.21.0, 4.22.0 on Aug 29, 2025
  6. added a commit that references this issue on Sep 30, 2025
    64bbd0e
  7. moved this from Dev In Progress to ready for Review in Apache CloudStack BugFest - Issueson Nov 3, 2025
  8. added a commit that references this issue on Dec 12, 2025
    e1c48c3
  9. added a commit that references this issue on Feb 6, 2026
    97b8a6f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions