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

    Groups as companies

    Scheduled Pinned Locked Moved
    Q&A
    users groups customization custom fields
    0
    2
    897
    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.
    • H
      harunkilic
      last edited by

      Hi guys,

      I just started using FusionAuth, and i like it!
      I have a question about groups. My users has "companies" attached to them, they can be in more than one company. There is about 1500 companies in total.

      Would it be smart to use groups as companies?

      • if so, how can i extends group fields?
      • if not, can i create my own entitites?

      Thanks for your time 🙂

      1 Reply Last reply Reply Quote 0
      • danD
        dan
        last edited by

        Hi @harunkilic ,

        Welcome to the FusionAuth community! I am glad you like the software.

        You can't create group fields. What you can do is assign roles to a group. If a user is in that group and registered for an application with those roles, they will assume the roles. For example:

        User A is in Group B. Group B has roles 1, 2, and 3. Role 1 is in Application Z. Role 2 and 3 are in Application X.

        If user A is registered for application X and is in Group B, they will have roles 2 and 3. They won't have role 1 because that is associated with application Z, which they are not registered for.

        You can't build your own entities, though that is on our roadmap. Follow this issue to be updated on when that feature is implemented. Full transparency, it will likely be a feature limited to our paid editions; learn more about our paid editions here.

        Whether groups make sense depends on a lot of things.

        Some questions to consider:

        Are you limiting application access by group? Are you going to be using the API to do so, or do you want to have the information in the JWTs and available after authentication? Does each company have an application? Are you going to use the hosted login pages or build your own?

        I can't give extensive architectural advice, but maybe if you talk a bit more about your use case the choice will be clearer.

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

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