Legacy Dev Forum Posts

 View Only

Sign Up

How to assign division to role for oauth using API

  • 1.  How to assign division to role for oauth using API

    Posted 06-05-2025 18:17

    kphung | 2020-05-12 22:01:34 UTC | #1

    These are the steps I want to do:

    1. create a role with some permissions
    2. assign the role to a user
    3. assign a division to the role for the user
    4. create an oauth and assign the role

    Its not clear on which endpoint to use to achieve step 3, or if that is even possible. Basically I want to create an oauth that would have access to some divisions eg. division A and B.

    Kathie


    kphung | 2020-05-12 22:06:40 UTC | #2

    Nvrm, I found the answer. I needed to use POST /api/v2/authorization/roles/{roleId}


    system | 2020-06-12 22:06:22 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: 7763