Legacy Dev Forum Posts

 View Only

Sign Up

Help finding the correct method

  • 1.  Help finding the correct method

    Posted 06-05-2025 18:24

    marcoflps | 2023-01-03 19:38:34 UTC | #1

    Hello,

    I need help finding the correct API to add divisions to a user role

    I found the API /api/v2/authorization/subjects/{subjectId}/divisions/{divisionId}/roles/{roleId}

    but it seems that this API inserts roles in a division but i need to add divisions in a role

    the image below can help to understand


    tim.smith | 2023-01-03 19:49:02 UTC | #2

    marcoflps, post:1, topic:17829
    but i need to add divisions in a role

    Divisions are only applied to an entity (e.g. a user) in the context of a role; they are not applied to roles directly. The screenshot you shared above allows division assignment because you're editing a specific entity's configuration. When you edit the role itself, there is no opportunity to assign divisions.

    Additionally, you can use your browser's developer tools to inspect the requests that are made by the UI to see what API it's using to complete the actions in the UI. This will demonstrate which API endpoint to use and how to use it to accomplish the same behavior in your own app.


    system | 2023-02-03 19:47:36 UTC | #3

    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: 17829