Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Keycloak
  3. How to add a permanent admin?

How to add a permanent admin?

Scheduled Pinned Locked Moved Keycloak
12 Posts 3 Posters 1.1k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shrey
    wrote on last edited by
    #1

    How to add a permanent admin?

    Creating a user via the UI doesn't have the option to assigning them the role of 'admin'.

    And as per https://github.com/keycloak/keycloak/discussions/33803#discussioncomment-10921141, the new user should be added to the admin role via the CLI, but, when i try that, i get this error:

    Failed to create config file: /root/.keycloak/kcadm.config
    
    1 Reply Last reply
    0
    • J Offline
      J Offline
      joseph
      Staff
      wrote on last edited by
      #2

      @shrey you have to create a new User in the master realm with 'admin' role (Roles -> Add -> Search for admin role). Also, set a password for this admin user. Then, relogin as this new admin user and delete the tempadmin

      S 1 Reply Last reply
      0
      • J Offline
        J Offline
        joseph
        Staff
        wrote on last edited by
        #3

        image.png

        image.png

        image.png

        1 Reply Last reply
        0
        • J joseph

          @shrey you have to create a new User in the master realm with 'admin' role (Roles -> Add -> Search for admin role). Also, set a password for this admin user. Then, relogin as this new admin user and delete the tempadmin

          S Offline
          S Offline
          shrey
          wrote on last edited by shrey
          #4

          @joseph said in How to add a permanent admin?:

          you have to create a new User in the master realm with 'admin' role

          Hi @joseph, this is pretty much the reason for my post; there's no option available to select the 'admin' role.

          I've tried to add every role available, but the 'admin' role option is nowhere to be found in my instance.

          Screenshot 2025-02-02 141915 (1).png

          cf918551-077f-4e3b-817e-ad06e0bb1ebd-image.png


          Even though, the role does exist:

          668c2130-5fc0-47d1-a1f5-0af942f56657-image.png

          J 1 Reply Last reply
          1
          • S shrey

            @joseph said in How to add a permanent admin?:

            you have to create a new User in the master realm with 'admin' role

            Hi @joseph, this is pretty much the reason for my post; there's no option available to select the 'admin' role.

            I've tried to add every role available, but the 'admin' role option is nowhere to be found in my instance.

            Screenshot 2025-02-02 141915 (1).png

            cf918551-077f-4e3b-817e-ad06e0bb1ebd-image.png


            Even though, the role does exist:

            668c2130-5fc0-47d1-a1f5-0af942f56657-image.png

            J Offline
            J Offline
            joseph
            Staff
            wrote on last edited by
            #5

            @shrey it's in the 3rd screenshot I posted. iirc, user -> roles -> you have to change the select box drop down . and then there is admin there.

            S 1 Reply Last reply
            0
            • J joseph

              @shrey it's in the 3rd screenshot I posted. iirc, user -> roles -> you have to change the select box drop down . and then there is admin there.

              S Offline
              S Offline
              shrey
              wrote on last edited by shrey
              #6

              @joseph yeah, my 2nd image corresponds to your 3rd one. There's no dropdown option available in my case because I've already added all the available roles, although, the 'admin' role is not one of them.

              1 Reply Last reply
              0
              • C Offline
                C Offline
                ccfu
                wrote on last edited by ccfu
                #7

                I was experiencing the same problem. The solution is to select filter by realm roles. It seems to default to filter by realm clients.

                1 Reply Last reply
                1
                • J Offline
                  J Offline
                  joseph
                  Staff
                  wrote on last edited by
                  #8

                  yes, exactly as @ccfu said

                  S 1 Reply Last reply
                  0
                  • J joseph

                    yes, exactly as @ccfu said

                    S Offline
                    S Offline
                    shrey
                    wrote on last edited by
                    #9

                    @joseph
                    that's also part of the reported error, as well as shown in the shared screenshots.

                    1 Reply Last reply
                    0
                    • J Offline
                      J Offline
                      joseph
                      Staff
                      wrote on last edited by
                      #10

                      @shrey not sure if we talk of the same thing 🤔

                      But here, I made a video to show you on a fresh installation:

                      Download video

                      S 1 Reply Last reply
                      1
                      • J joseph

                        @shrey not sure if we talk of the same thing 🤔

                        But here, I made a video to show you on a fresh installation:

                        Download video

                        S Offline
                        S Offline
                        shrey
                        wrote on last edited by
                        #11

                        @joseph
                        I'm aware those are the prescribed steps, but the issue exists despite them, hence this post (as also stated before).

                        https://www.dropbox.com/scl/fi/jxiz1wuq86xy3oo8f6c5k/Screen-Recording-2025-02-06-100122.mp4?rlkey=n9pcd9qjbdzodohsy3cywo188&raw=1

                        https://www.dropbox.com/scl/fi/trjxvza4ktgrsuymh7u86/Screen-Recording-2025-02-06-100437.mp4?rlkey=r2vlkbso7nm157pbey8g8uin4&raw=1

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          shrey
                          wrote on last edited by
                          #12

                          @joseph
                          btw, i ended up uninstalling and reinstalling the Keycloak app and this the process went about as depicted in your video.

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Bookmarks
                          • Search