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. Nextcloud
  3. OIDC Regex removed NC admin group.

OIDC Regex removed NC admin group.

Scheduled Pinned Locked Moved Nextcloud
4 Posts 2 Posters 130 Views 2 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.
    • whitespaceW Offline
      whitespaceW Offline
      whitespace
      wrote on last edited by whitespace
      #1

      So, apparently the sync between OIDC groups and NC groups is broken. The NC group "admin" is nowhere to be seen within Nextcloud web UI and all users belonging to this group have lost their admin rights within Nextcloud.

      How do I restore admin rights for accounts that exist both as OICD and NC?
      I am locked out of administrative configuration within Nextcloud. As well as every other admin user.

      I suppose that the OIDC regex expression might be a problem here. I can not edit it though, since I have no admin rights anymore. 😕

      Please help.

      1 Reply Last reply
      0
      • whitespaceW Offline
        whitespaceW Offline
        whitespace
        wrote on last edited by whitespace
        #2

        Never mind but if you happen to get yourself into a similar situation, do the following in the Nextcloud app's terminal:

        sudo -u www-data php -f /app/code/occ group:adduser admin <username-of-existing-account-to-be-admin> -n
        

        This way the native Nextcloud group "Administrators" reappears and the account is granted admin rights.

        1 Reply Last reply
        1
        • jdaviescoatesJ Offline
          jdaviescoatesJ Offline
          jdaviescoates
          wrote on last edited by
          #3

          See also https://forum.cloudron.io/post/104514

          I use Cloudron with Gandi & Hetzner

          whitespaceW 1 Reply Last reply
          0
          • jdaviescoatesJ jdaviescoates

            See also https://forum.cloudron.io/post/104514

            whitespaceW Offline
            whitespaceW Offline
            whitespace
            wrote on last edited by
            #4

            @jdaviescoates Yep, I read about it and it made sense. Problem was that I could not even get to the NC OIDC app config due to missing admin rights. thankfully the occ command made the native admin group reappear.

            From a logical point of view provisioning admin rights to a certain OICD group should be an option.

            This could be a field in the OIDC plugin where we could define a group name that is treated as admin and grants native NC admin rights to users within.

            1 Reply Last reply
            1
            • BrutalBirdieB BrutalBirdie referenced this topic on
            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