FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Clone / Copy Application

    Scheduled Pinned Locked Moved
    General Discussion
    2
    3
    433
    Loading More Posts
    • 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
      support 0
      last edited by

      Using the “sourceId” for tenant, I can create a clone of a template tenant for my clients.

      I would also like to do the same at an application level for each tenant, too, but don’t see the same concept of “sourceId”. Is there a (un)documented way of doing this?

      This is my proposed flow:

      • client signs up and I use the FA API to generate a default tenant for them.
      • client chooses one or more application types from my portal and I use the FA API to generate the appropriate application(s) for their tenant
      • client uses my portal to manage staff roles across their tenant and default role for signup to an application by their staff and I use the FA API to manage those roles and show the staff users signed up and their assigned roles
      danD 1 Reply Last reply Reply Quote 0
      • danD
        dan @support 0
        last edited by

        @support-0

        There is no current copy API call for applications. There is an open GitHub issue for such a feature.

        For now, you could:

        • create a template application
        • retrieve a template application JSON
        • modify the JSON as needed, including the tenantId and other config
        • create a new application using the create application API call

        Will that work?

        --
        FusionAuth - Auth for devs, built by devs.
        https://fusionauth.io

        S 1 Reply Last reply Reply Quote 0
        • S
          support 0 @dan
          last edited by

          @dan That will work just fine. With that I'll actually just make a quick service that takes in the arguments to adjust and it generate that json for me. Thanks!

          Just because it would align with all my other triggered processes, I'll actually make it as a postgres function so I can call it with my graphql api via hasura. This will actually work very well.

          1 Reply Last reply Reply Quote 1
          • First post
            Last post