Users

Use the User Element Importer to import users.

[   {     "@model": "barrelstrength\\sproutbaseimport\\importers\\elements\\User",     "attributes": {       "username": "beryl01",       "firstName": "Luigi",       "lastName": "Bednar",       "email": "[email protected]",       "pending": 1,       "lastLoginDate": "2014-12-11 04:12:06"     }   } ] 

# User Groups

To assign a user to a group add the groups attribute and provide an array of the User Group IDs that should be assigned to the user.

To assign a user to the Admin group, use the admin attribute.

[   {     "@model": "barrelstrength\\sproutbaseimport\\importers\\elements\\User",     "attributes": {       "username": "beryl01",       "firstName": "Luigi",       "lastName": "Bednar",       "email": "[email protected]",       "pending": 1,       "lastLoginDate": "2014-12-11 04:12:06",       "admin": "1",       "groups": [1,2]     }   } ]