Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Missing functionality for User/Group management in API

    Posted 07-30-2025 14:22

    Hey everyone,

    I am writing code to automate tasks like onboarding and updating users. I noticed that there does not seem to be any functionality for two main things so far:

    1. There is no method for removing a User from a Group
    2. There is no method for updating a User's Division

    For context, I am using the Python SDK and have been searching through the API Explorer with no luck.

    Is there something that I have missed or is this intended behavior?


    #PlatformAPI
    #PlatformSDK

    ------------------------------
    Alec Grace
    ------------------------------


  • 2.  RE: Missing functionality for User/Group management in API

    Posted 07-31-2025 12:12

    You can try the SCIM api for group manipulation

    https://developer.genesys.cloud/devapps/api-explorer#get-api-v2-scim-groups--groupId-

    to get the group config by ID, then https://developer.genesys.cloud/devapps/api-explorer#patch-api-v2-scim-groups--groupId-

    to modify it

    Or if you want to just modify a specific user you can user the GET and PATCH for /api/v2/scim/users/{userId} and modify the groups the user is a member of and the user's Division



    ------------------------------
    George Ganahl GCCX-AI, GCP, GCSME, ICCE, ICHD, etc.
    Technical Adoption Champion
    Genesys
    2024 Community Member of the Year
    ------------------------------



  • 3.  RE: Missing functionality for User/Group management in API
    Best Answer

    Posted 07-31-2025 20:32

    Hi @Alec Grace,

    Please try/check these APIs:

    1. Delete up to 50 group members (you need to provide uuid of the members to be deleted). The API is:  delete-api-v2-groups--groupId--members
    2. Update user division  (see the details in the screenshot below, and make sure you are using USER for the objectType).  The API is:  post-api-v2-authorization-divisions--divisionId--objects--objectType-

    Thanks,



    ------------------------------
    Tatjana Knezevic

    www.startelecom.cloud

    https://www.linkedin.com/company/star-telecom-www-startelecom-ca-/
    ------------------------------



  • 4.  RE: Missing functionality for User/Group management in API

    Posted 08-19-2025 13:41

    Hi @Tatjana Knezevic, thank you for your response! I used your recommendation for updating user divisions and it worked. Turns out I was trying to use a deprecated method for updating the user's division before.



    ------------------------------
    Alec Grace
    ------------------------------



  • 5.  RE: Missing functionality for User/Group management in API

    Posted 08-19-2025 15:12

    Hi @Alec Grace,

    Glad to hear this. 

    Thanks,



    ------------------------------
    Tatjana Knezevic

    www.startelecom.cloud

    https://www.linkedin.com/company/star-telecom-www-startelecom-ca-/
    ------------------------------



  • 6.  RE: Missing functionality for User/Group management in API

    Posted 07-31-2025 23:29
    Edited by Nick Tait 07-31-2025 23:29

    I'd expect these would do what you described?

    DELETE /api/v2/groups/{groupId}/members
    PATCH /api/v2/users/{userId}



    ------------------------------
    Nick Tait
    Genesys Consultant
    ------------------------------



  • 7.  RE: Missing functionality for User/Group management in API

    Posted 08-19-2025 13:49

    Hi @Nick Tait, thank you for your response! The delete groups endpoint worked for me, I appreciate the assistance. However, the patch users is what I was trying to use before, and it wasn't working for updating divisions. Tatjana, above, linked to a divisions-specific endpoint which worked. 

    Thanks again!



    ------------------------------
    Alec Grace
    ------------------------------



  • 8.  RE: Missing functionality for User/Group management in API

    Posted 08-19-2025 14:23

    Glad you got it all sorted!



    ------------------------------
    George Ganahl GCCX-AI, GCP, GCSME, ICCE, ICHD, etc.
    Technical Adoption Champion
    Genesys
    2024 Community Member of the Year
    ------------------------------