Legacy Dev Forum Posts

 View Only

Sign Up

Create a User via API in a specific division

  • 1.  Create a User via API in a specific division

    Posted 06-05-2025 18:23

    mjessulat | 2022-07-18 14:26:52 UTC | #1

    We are trying to create users via " /api/v2/users" Endpoint (POST) for a division, which is specified in the parameter "divisionId".

    The new user is always assigned to the division "home", regardless of the specified divisionId.

    What are we doing wrong or overlooking? Is it possible to create a user in any division?

    With regards

    MIrko Jessulat


    Eos_Rios | 2022-07-18 16:07:33 UTC | #2

    What does your post request / code look like?


    minmin68 | 2022-07-19 07:40:45 UTC | #3

    The API worked perfectly for my environment using below payload. Do you specify the "divisionId" correctly?

    { "email": "test+account@test.com", "name": "test_account", "phoneWorkCountryCode": "JP", "phoneWork2CountryCode": "JP", "roleIds": [], "unusedRoles": [], "version": 1, "location": [], "queues": [], "grants": [], "divisionId": "492ad987-afb7-4b43-b538-11a1a1111a1a" }


    mjessulat | 2022-07-19 15:04:21 UTC | #4

    We found our Problem. We assigned the correct role to the oauth-object but only the division "home". So we had to change the assignment of the divisions. Now it works correct.

    Thanks


    system | 2022-08-19 07:40:03 UTC | #5

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 15568