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

    Roles in Connector User Object

    Scheduled Pinned Locked Moved Q&A
    2 Posts 0 Posters 1.1k Views 1 Watching
    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 - Identity Without Constraints
        https://fusionauth.io

        1 Reply Last reply
        Reply Quote 1
        • danD dan moved this topic from Q&A on
        • danD dan moved this topic from Frequently Asked Questions (FAQ) on

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post