Legacy Dev Forum Posts

 View Only

Sign Up

Is there an efficient way to fetch all role grants to persons for certain divisions?

  • 1.  Is there an efficient way to fetch all role grants to persons for certain divisions?

    Posted 06-05-2025 18:04

    liebichw | 2024-08-26 13:59:44 UTC | #1

    For a JavaScript app, we need to get for a certain list of users the role grants per division. The "getUsers" API call (https://developer.genesys.cloud/useragentman/users/#get-api-v2-users) can be used to include the roles in the result - but this result does not contain the divisions for which the roles are granted! There is an API call https://developer.genesys.cloud/authorization/oauth-apis/authorization-apis#get-api-v2-authorization-divisions--divisionId--grants which might give us this information, but this is still only valid per division, so to get all needed data, we would need to run multiple API calls.

    what is the most efficient way to get the role grants for users with information about the division where this roles are granted?


    system | 2024-09-26 14:00:26 UTC | #2

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


    This post was migrated from the old Developer Forum.

    ref: 28574