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

    Add User to group not working

    Scheduled Pinned Locked Moved Solved Q&A
    groupaddusertogroup
    3 Posts 2 Posters 3.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.
    • S
      sandesh
      last edited by

      I tried adding user to a group with below data -
      I tried with with and without group id parameter.
      I am not able to add the user.
      Can anyone can please guide me through this ?

      {
      "members": {
      "d7955967-5d0b-4001-9325-a7900436b8bc": [
      {
      "userId": "45e03a95-33fd-45e6-9d2f-0f8f82e7f8cc",
      "groupId" : "d7955967-5d0b-4001-9325-a7900436b8bc"
      }
      ]
      }
      }

      Output -

      {
      "fieldErrors": {
      "group": [
      {
      "code": "[missing]group",
      "message": "Your request is missing the Group information as JSON in the entity-body."
      }
      ],
      "groupId": [
      {
      "code": "[couldNotConvert]groupId",
      "message": "Invalid"
      }
      ]
      },
      "generalErrors": []
      }

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

        There were extra spaces in the URL after member in .../api/group/member___. Issue is resolved.

        mark.robustelliM 1 Reply Last reply
        Reply Quote 1
        • S sandesh has marked this topic as solved on
        • mark.robustelliM
          mark.robustelli @sandesh
          last edited by

          @sandesh Thanks for sharing her on the forum. Hope you are able to accomplish your end goal with the APIs.

          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