Genesys Cloud - Developer Community!

 View Only

Sign Up

Expand all | Collapse all

How to create POST data action for adding roles and ALL divisions to users. API: /api/v2/authorization/subjects/{subjectId}/bulkadd

  • 1.  How to create POST data action for adding roles and ALL divisions to users. API: /api/v2/authorization/subjects/{subjectId}/bulkadd

    Posted 05-23-2025 10:21

    Hello, 

    I am looking to add roles and divisions using the API: /api/v2/authorization/subjects/{subjectId}/bulkadd

    I am able to add multiple roles but for one of the roles I would like to add, I need to add all divisions.

    I have tried a few different variations of the below but cant figure it out. 

    Any help would be appreciated, even if there is another way I could do this easier!


    #PlatformAPI

    ------------------------------
    Connor Maxwell
    -
    ------------------------------


  • 2.  RE: How to create POST data action for adding roles and ALL divisions to users. API: /api/v2/authorization/subjects/{subjectId}/bulkadd
    Best Answer

    Posted 05-23-2025 12:41

    Hello,

    For the role with all divisions, your last entry in the grants, use "divisionId": "*" (you have extra curly brackets defined there).

    Regards,



    ------------------------------
    Jerome Saint-Marc
    Senior Development Support Engineer
    ------------------------------



  • 3.  RE: How to create POST data action for adding roles and ALL divisions to users. API: /api/v2/authorization/subjects/{subjectId}/bulkadd

    Posted 05-23-2025 13:39

    That did it! Thank you Jerome!



    ------------------------------
    Connor Maxwell
    -
    ------------------------------