Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  All User Roles and Permissions

    Posted 10-05-2021 03:00
    No replies, thread closed.
    Hi All,

    Just want to ask if anyone created a custom query to get all user's roles and permission thru the postman query. I believe, Genesys has an existing standard developer API for single users only. We need to get roles and permission for each user within the org.

    thank you,

    Dennis 

    #Reporting/Analytics

    ------------------------------
    Dennis Cantina
    Blackbox Technologies Australia Pty Ltd
    ------------------------------


  • 2.  RE: All User Roles and Permissions

    Posted 10-06-2021 04:41
    No replies, thread closed.
    Hi Dennis,

    That's correct API is for single user only. About postman, I don't think that its a correct tool for such task.
    You can design small app with Genesys Cloud CLI, PostSharp, or any other programming language. Here you can find some examples https://github.com/MyPureCloud/quick-hits-cli

    You can get data with multiple API requests.
    1. To get all org users.
    2. For each user from the first step to get user roles and permissions.

    Just for information. Noralogix REPO361 already have Genesys Cloud raw data with all users/conversations/qualities information under csv files.

    ------------------------------
    Taras Buha
    taras@noralogix.com
    www.noralogix.com
    ------------------------------



  • 3.  RE: All User Roles and Permissions

    Posted 10-06-2021 12:06
    No replies, thread closed.
    Dennis,

    Not to discount Noralogix's solution, because it is really amazing and would provide a lot of additional benefit to you!  However you can use the GET/api/v2/users?expand=authorization to request a list of all the users in the org.  When you use the "expand=authorization" query parameter it will include the roles and permissions assigned to each user in the list. 

    Here's link to the API in our Developer Tools (which is very much like Postman but easier to use): https://developer.genesys.cloud/developer-tools/#/api-explorer?share=N4IgDghgLgFiBcIDmBTKBVAzigTpkANCALZowD2AJgsmoSAK44CWNA9BGM2wG4BMbBtjz1IOCMQBqEADYMU+eKEioAyswBeKBHwCsRFSgByDYgCNcCAIxFM5HFADyOSpcQBBVQGF6KAB6QAHbUiBAMsPaa0MzkgfSYUNDaoQDGUMw82gC+WUA===

    ------------------------------
    Jim Crespino
    Senior Director, Developer Evangelism
    Genesys
    https://developer.genesys.com
    ------------------------------