PureCloud

Discussion Thread View
Expand all | Collapse all

Mass Edit Roles

  • 1.  Mass Edit Roles

    Posted 13 days ago
    Hi all!

    I am looking into ways of bulk changing roles for a group of people on a monthly basis.

    I am aware of this
    "When you update existing users with a .csv import, PureCloud adds roles but does not replace or remove them."

    from
    https://help.mypurecloud.com/articles/add-people-csv-file-import/

    May I know if there are any work around to this? Adding roles to users is easy, but removing them has to be done one by one.

    Please help!

    Thanks!
    Boey
    #PlatformAdministration
    #SystemAdministration
    #Unsure/Other

    ------------------------------
    Jin Huey Boey
    ITApps Sdn Bhd
    ------------------------------


  • 2.  RE: Mass Edit Roles

    GENESYS
    Posted 12 days ago
    One way would be to create an app that uses the API:

    You can remove users from a role: https://developer.mypurecloud.com/api/rest/v2/authorization/#put-api-v2-authorization-roles--roleId--users-remove
    Add users to a role: https://developer.mypurecloud.com/api/rest/v2/authorization/#put-api-v2-authorization-roles--roleId--users-add

    Remove roles from a User: https://developer.mypurecloud.com/api/rest/v2/authorization/#delete-api-v2-users--userId--roles
    Add roles to a User: https://developer.mypurecloud.com/api/rest/v2/authorization/#put-api-v2-users--userId--roles

    ------------------------------
    George Ganahl GCP (PureCloud) ICCE
    Principal Technology Consultant
    Genesys
    ------------------------------