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

    Multi tenants for one application

    Scheduled Pinned Locked Moved
    General Discussion
    3
    4
    20.1k
    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.
    • V
      vandaele.seba
      last edited by

      Hello, there's something I can't understand with the tenants, a priori when we create an application we have to provide it with a single tenant.

      So I'm wondering what's the point of passing a tenantId in the authorization url? Since apparently it doesn't take into account the tenant passed and systematically uses the tenant linked to the application.

      As a result, I can't quite grasp the usefulness of the tenants. Could you clarify this for me?

      Thank you

      mark.robustelliM 1 Reply Last reply Reply Quote 0
      • mark.robustelliM
        mark.robustelli @vandaele.seba
        last edited by

        @vandaele-seba A tenant in FusionAuth is a named object that represents a discrete namespace for Users, Applications, and Groups. It is a way to separate Users, Applications, and Registrations into separate containers. There is a diagram in the documentation that may help.

        1 Reply Last reply Reply Quote 0
        • Q
          qwandery
          last edited by

          @vandaele-seba @mark-robustelli
          I agree that it seems non-intuitive. I'm building a B2B2C multi-tenant application; it's very awkward trying to shoehorn things in the other way around.

          In my case, we have user accounts that can exist in, and have different permissions to, different tenant instances of the same application. I'm planning to work around this by using API to creating a new instance of the application from a sort of hard-coded template every time I create a tenant, and creating duplicates of users in the same fashion. But it's certainly awkward, I wish there were a way to share Applications and Users across tenants.

          OR, perhaps a new concept is needed in FusionAuth -- "Organizations" if you will -- that allows for granting users with different permission sets inside the same Application.

          mark.robustelliM 1 Reply Last reply Reply Quote 0
          • mark.robustelliM
            mark.robustelli @qwandery
            last edited by

            @qwandery,

            OR, perhaps a new concept is needed in FusionAuth -- "Organizations" if you will -- that allows for granting users with different permission sets inside the same Application.
            

            You should feel free to open up a feature request here.

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