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

    Add User to group not working

    Scheduled Pinned Locked Moved Solved
    Q&A
    group addusertogroup
    2
    3
    844
    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
          • First post
            Last post