Assign User to Group While Importing on Sprout Imports we are trying to import users into a specific group but cant figure out how the json should go. Currently we have:

[
    {
        "@model": "User",
        "attributes": {
            "username": "name@example.com",
            "firstName": "john",
            "lastName": "smith",
            "email": "name@example.com",
            "pending": "0",
            "lastLoginDate": "2017-08-11 04:12:06",
            "dateCreated": "2017-11-06 12:04:04",
            "dateUpdated": "2017-11-06 12:04:04"
        },
        "content": {
            "fields": {
                "customField": "00000"
            }
        },
        "settings": {
            "groups": {
                "groupId": "1"
            }
        }
    }
]


We've tried several variations on settings, permissions, and putting groups under content and attributes but nothing has worked so far.
Sprout Import for Craft 3 supports importing Users and assigning them to User Groups. See the Users page of documentation for more info.

To do so, you just need to assign the User Group ID to the groups attribute:

[
  {
    "@model": "barrelstrength\\sproutimport\\importers\\elements\\User",
    "attributes": {
      "username": "username",
      "firstName": "First",
      "lastName": "Last",
      "email": "user@website.com",
      "pending": 1,
      "lastLoginDate": "2014-12-11 04:12:06",
      "dateCreated": "2014-04-09 12:04:04",
      "dateUpdated": "2015-04-04 06:04:08",
      "admin": "1",
      "groups": [1,2]
    }
  }
]




LEGACY RESPONSE:

Sprout Import does not yet support importing to User Groups.

While we do hope to add this feature in the future, we currently don't have an ETA. Please feel free to reach out to us directly if you'd like to discuss custom development options to help get this feature implemented.

You can add comments to or follow this feature here.