Knowledge Base Article

Posting New Users In Bulk

Question: I'm currently trying to write a console app that will do all my user administration stuff automatically, but am having a hard time making a post to the bulk ad end point that includes groups.
Solution: 
This is currently a limitation.  
Possible workarounds:
You can either: use POST api/v1/users
and specifiy "activeDirectory": true,

like this:
{
  "email": "[email protected]",
  "groups": [
    "5d4bfbe5bd3ef11b68180cef"
  ],
"activeDirectory": true,
    "hash": null

}
Or you can create the users using the regular /user/ad/bulk, and then go over the ID's you are getting and make a second call to PATCH  users/{id} with the groups.
Both options tested and worked.
Updated 03-02-2023
No CommentsBe the first to comment