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

    Roles in Connector User Object

    Scheduled Pinned Locked Moved
    Q&A
    0
    2
    335
    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.
    • R
      rmachorro
      last edited by

      I've created a Generic Connector, based on the articles/posts below. I'm returning the basic user data (id, e-mail, active, etc). I'd like to include Roles as well for the user object, is this possible? If so, how? Thanks.

      • https://fusionauth.io/docs/v1/tech/connectors/#migration
      • https://fusionauth.io/blog/2020/10/14/how-to-migrate-user-data-centralized-auth-system/
      1 Reply Last reply Reply Quote 0
      • danD
        dan
        last edited by

        Yes, you can put anything in the user object that is documented here: https://fusionauth.io/docs/v1/tech/connectors/generic-connector/#using-the-generic-connector

        You can return registrations which contain roles as outlined in the sample JSON in the link above.

        Hope that helps!

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

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