How to create user in particular branch through API
in payload does not work. The user always is created in root branch. The only way to change branch is from UI.
Best answer by JohnView original
Here is an example snippet for creating a user, while also assigning them to a branch location at the same time, using the manage/v1/user endpoint. The formatting should follow similar to this:
This explanation from the API-Browser description of the Org Chart field shows this:
Get very comfortable with the queries for the branch structure :)
I keep a cheat sheet of these for my easy reference, but have to update when new branches get created (use a webhook to be notified and given the info for the new branch)
You are welcome
@liza2022! Thanks for being patient while you awaited a reply (and thanks for marking Best Answer)!