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. How to Import / synchronize a group of Cloudron's users to Nextcloud ?

How to Import / synchronize a group of Cloudron's users to Nextcloud ?

Scheduled Pinned Locked Moved Nextcloud
12 Posts 7 Posters 682 Views 7 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.
  • nebulonN Offline
    nebulonN Offline
    nebulon
    Staff
    wrote on last edited by
    #3

    Since OpenID does not have a good way to list users who have access to resources (in this case apps) We likely can't support some automatic pre-provisioning based on that from a platform side. Users have to login once to create the user record within the app.

    If some pre-provisioning is required, I guess one has to write some custom script calling the Nextcloud API as they suggest in their docs which you have linked.

    The alternative would be to keep ldap for user sync around, but I am not sure how well this will be supported in the future. Already there is a warning icon in the nextcloud docs for that.

    All in all I am not sure if we do us any favor here to automate that, especially given that most apps behave that way that one needs to login once.

    1 Reply Last reply
    1
    • osoboO Offline
      osoboO Offline
      osobo
      wrote on last edited by
      #4

      Thanks for your thorough reply. Ok I think I will impersonate them and log each account manually in order to register them in Nextcloud's user list.

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

        @osobo for hiding the login form, see https://forum.cloudron.io/topic/13188/nextcloud-oidc-integration

        osoboO 1 Reply Last reply
        1
        • J joseph

          @osobo for hiding the login form, see https://forum.cloudron.io/topic/13188/nextcloud-oidc-integration

          osoboO Offline
          osoboO Offline
          osobo
          wrote on last edited by
          #6

          @joseph Thanks. I've added the code below in Nextcloud's config.php and it works fine.

          'social_login_auto_redirect' => true,
          'hide_login_form' => true,
          

          Now I just wish to know if there is a way to remove or change the default text on the login window (?)

          "The Nextcloud login form is disabled. Use another login option if available or contact your administration."

          No big deal if not possible.
          Best wishes

          andreasduerenA 1 Reply Last reply
          0
          • osoboO osobo

            @joseph Thanks. I've added the code below in Nextcloud's config.php and it works fine.

            'social_login_auto_redirect' => true,
            'hide_login_form' => true,
            

            Now I just wish to know if there is a way to remove or change the default text on the login window (?)

            "The Nextcloud login form is disabled. Use another login option if available or contact your administration."

            No big deal if not possible.
            Best wishes

            andreasduerenA Online
            andreasduerenA Online
            andreasdueren
            wrote on last edited by andreasdueren
            #7

            @osobo Pretty sure that's hardcoded. But you can simply bypass the screen by running occ config:app:set --value=0 user_oidc allow_multiple_user_backends in the terminal

            madrushM jdaviescoatesJ 2 Replies Last reply
            5
            • andreasduerenA andreasdueren

              @osobo Pretty sure that's hardcoded. But you can simply bypass the screen by running occ config:app:set --value=0 user_oidc allow_multiple_user_backends in the terminal

              madrushM Offline
              madrushM Offline
              madrush
              wrote on last edited by
              #8

              @andreasdueren That worked. Thank you for your help!

              andreasduerenA 1 Reply Last reply
              3
              • madrushM madrush

                @andreasdueren That worked. Thank you for your help!

                andreasduerenA Online
                andreasduerenA Online
                andreasdueren
                wrote on last edited by
                #9

                @madrush no problem

                1 Reply Last reply
                2
                • N Offline
                  N Offline
                  ntnsndr
                  wrote on last edited by
                  #10

                  Amazing—this is a huge help @andreasdueren! It really improves the user experience. I'd love to see this kind of direct login option on more Cloudron apps, without the confusion of multiple options. Maybe this should be added to the official docs?

                  1 Reply Last reply
                  2
                  • andreasduerenA andreasdueren

                    @osobo Pretty sure that's hardcoded. But you can simply bypass the screen by running occ config:app:set --value=0 user_oidc allow_multiple_user_backends in the terminal

                    jdaviescoatesJ Offline
                    jdaviescoatesJ Offline
                    jdaviescoates
                    wrote on last edited by
                    #11

                    @andreasdueren said in How to Import / synchronize a group of Cloudron's users to Nextcloud ?:

                    @osobo Pretty sure that's hardcoded. But you can simply bypass the screen by running occ config:app:set --value=0 user_oidc allow_multiple_user_backends in the terminal

                    I was wondering exactly what that'd do and so I gave it a go...

                    In short:

                    1. If you're logged into your Cloudron in the same browser session -> completely bypasses the need to login and you just arrive into Nextcloud - great!

                    2. If you're not logged into your Cloudron you end up at a Cloudron login screen a bit like this:

                    5be9d6a4-bd94-4517-afb8-2fba4c9cce5c-image.png

                    I use Cloudron with Gandi & Hetzner

                    jdaviescoatesJ 1 Reply Last reply
                    1
                    • jdaviescoatesJ jdaviescoates

                      @andreasdueren said in How to Import / synchronize a group of Cloudron's users to Nextcloud ?:

                      @osobo Pretty sure that's hardcoded. But you can simply bypass the screen by running occ config:app:set --value=0 user_oidc allow_multiple_user_backends in the terminal

                      I was wondering exactly what that'd do and so I gave it a go...

                      In short:

                      1. If you're logged into your Cloudron in the same browser session -> completely bypasses the need to login and you just arrive into Nextcloud - great!

                      2. If you're not logged into your Cloudron you end up at a Cloudron login screen a bit like this:

                      5be9d6a4-bd94-4517-afb8-2fba4c9cce5c-image.png

                      jdaviescoatesJ Offline
                      jdaviescoatesJ Offline
                      jdaviescoates
                      wrote on last edited by
                      #12

                      @jdaviescoates said in How to Import / synchronize a group of Cloudron's users to Nextcloud ?:

                      @andreasdueren said in How to Import / synchronize a group of Cloudron's users to Nextcloud ?:

                      @osobo Pretty sure that's hardcoded. But you can simply bypass the screen by running occ config:app:set --value=0 user_oidc allow_multiple_user_backends in the terminal

                      I was wondering exactly what that'd do and so I gave it a go...

                      In short:

                      1. If you're logged into your Cloudron in the same browser session -> completely bypasses the need to login and you just arrive into Nextcloud - great!

                      2. If you're not logged into your Cloudron you end up at a Cloudron login screen a bit like this:

                      5be9d6a4-bd94-4517-afb8-2fba4c9cce5c-image.png

                      One downside: preview links in Signal/ WhatsApp etc become OpenID Connect Error 😞 :

                      23f4db5b-f90e-43ab-a17e-5dd71f400ae6-image.png

                      I use Cloudron with Gandi & Hetzner

                      1 Reply Last reply
                      2
                      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