Legacy Dev Forum Posts

 View Only

Sign Up

Need API which provide all the users of the organization along with their Roles & Permissions with division ID associated to it

  • 1.  Need API which provide all the users of the organization along with their Roles & Permissions with division ID associated to it

    Posted 06-05-2025 18:30

    Avinash_CV | 2024-03-21 07:38:31 UTC | #1

    Hi Team, I am looking for an API which will provide me all the users of the organization with their Roles and Permissions along with the Division ID which they have permission. I tried the 2 API's but one is dynamic where we need to pass the subjectid and other is the API only for the logged in user. But instead on a whole i need an API which gives me all the users along with their Roles and Permissions along with the Division ID which they have permission.


    Eos_Rios | 2024-03-21 13:55:52 UTC | #2

    GET /api/v2/users

    GET /api/v2/users?expand=authorization

    DivisionId is native to the request already. The authorization section includes roles and permissions and division aware permissions include the divisions for which they are applied.


    Avinash_CV | 2024-03-22 06:30:34 UTC | #3

    Hi @Eos_Rios Thanks for the response.

    But the Output is not much useful to filter the unique divisions the user has permissions for.

    The below API will give better result but here in this case we need to pass the userid as dynamic value for each user.

    API : “/api/v2/authorization/subjects/{subjectId}”

    Is there any other better option, the use case here is we need to get the list of Division ID the user has permissions.

    Thanks Avinash


    Eos_Rios | 2024-03-22 14:05:24 UTC | #4

    Avinash_CV, post:3, topic:25329
    But the Output is not much useful to filter the unique divisions the user has permissions for.

    Working with the data to it the way you want it is the end user responsibility. Genesys exposes it, you either make it work or submit an idea and hope enough people have a similar problem with it that it gets worked in the next three years.

    You can try combining other APIs you like better to get the data but regardless you're going to be doing multiple calls and transformation to get your end results the way you want them regardless.


    system | 2024-04-21 14:06:05 UTC | #5

    This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 25329