Genesys Cloud - Main

 View Only
Discussion Thread View
  • 1.  people bulk import with roles and divisions

    Posted 03-24-2021 11:13
    Hi community,

    I'm having trouble finding an answer to my issue.

    When I want to add people to the organization in bulk (using the people_import_example.csv), how do I assign a role to a user for "All divisions".



    I'm able to assign one specific division but not all future divisions. 

    I tried setting "admin:[All Divisions]" in the .csv file but doesn't seem to work.

    many thanks,

    Tommy
    #Implementation
    #PlatformAdministration
    #SystemAdministration

    ------------------------------
    Tommy Braes
    Consultant Professional Services
    Proximus PLC
    ------------------------------


  • 2.  RE: people bulk import with roles and divisions

    GENESYS
    Posted 03-24-2021 11:18
    If you want all divisions that currently exist, then you need to look them up and plug in the divisions ids.  If you want all divisions that currently exist AND all future divisions, use an asterisk *

    ------------------------------
    Melissa Bailey
    Genesys - Employees
    ------------------------------



  • 3.  RE: people bulk import with roles and divisions

    Posted 03-24-2021 11:24
    Edited by Tommy Braes 03-24-2021 11:31
    An Asterisk.

    Now that was painfully obvious... :-)

    Although, I'm still doing something wrong then. I doesn't seem to work for me.

    In the csv file, under the role_divisions column, I added "admin:[*]" so that the user is admin across all divisions.

    I get an error back...



  • 4.  RE: people bulk import with roles and divisions

    Posted 05-10-2021 14:39

    @Melissa Bailey ​  or Anyone who has successfully done this  >>>>

    Can you please provide the exact syntax for assigning a role to all divisions with the asterisk?  We are getting the same error the Tommy references up above and can't seem to get the syntax correct. 



    ------------------------------
    Mark Cockrell
    Ferguson Enterprises LLC
    ------------------------------



  • 5.  RE: people bulk import with roles and divisions

    GENESYS
    Posted 05-11-2021 10:53
    Apparently this piece of the UI was never updated to understand what the asterisk means.  So use the UI to do the bulk import for your users with a single division, then use the public api to assign all divisions to the users.  For example, you can post to the /api/v2/authorization/roles/{roleId} endpoint with a body like this
    {
       "subjectIds": ["userId1", "userId2", "userId3"],
       "divisionIds": ["*"]
    }

    to assign a role to the listed users in all divisions.  Repeat for your other role(s).



    ------------------------------
    Melissa Bailey
    Genesys - Employees
    ------------------------------



  • 6.  RE: people bulk import with roles and divisions

    Posted 05-12-2021 10:26
    Thank you @Melissa Bailey.  Appreciate the speedy reply.  ​​

    ------------------------------
    Mark Cockrell
    Ferguson Enterprises LLC
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources