Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Differentiating between roles (individually assigned vs group inheritance)

    Posted 29 days ago

    I'm assuming this must be possible because the UI can differentiate them when I view a specific user. If a role is only assigned via individual assignment, then it would be easy enough to identify because the role will not be assigned to ANY group.  However, I have an example where a role is assigned to a Group, for all divisions. I then add the user to the Group. Now assume that the role was previously assigned directly to the user, for the Home division. The UI will show me that the user has permission to the role, in the Home division, and the Group Inheritance column will be blank for that row.  The UI will also show me that the user has the role for the remaining divisions, and that it was inherited by the Group.

    I have scrubbed through many of the endpoints but can't seem to find how to differentiate between a role that was individually assigned and a role that was inherited from a Group assignment.  What am I missing?

    Thanks,

    -Pete


    #PlatformAPI

    ------------------------------
    Peter J Aquino
    ------------------------------


  • 2.  RE: Differentiating between roles (individually assigned vs group inheritance)
    Best Answer

    Posted 29 days ago

    Hi Peter,

    I believe in your case the endpoint /api/v2/authorization/subjects/{subjectId} might be helpful. You can replace subjectId with the user's userId, which will list the roles and permissions assigned to that user.

    When this API returns the data, it also shows the subjectId for each role.
    If the role was assigned individually, that value will match the userId.
    If it was assigned through a group, the value will correspond to the groupId.




    ------------------------------
    Elisson Fernandes
    ------------------------------



  • 3.  RE: Differentiating between roles (individually assigned vs group inheritance)

    Posted 28 days ago

    Excellent.  Thank you, Elisson.



    ------------------------------
    Peter J Aquino
    ------------------------------



  • 4.  RE: Differentiating between roles (individually assigned vs group inheritance)

    Posted 24 days ago

    Hi everyone!
    I'm glad I could help!



    ------------------------------
    Elisson Fernandes
    ------------------------------



  • 5.  RE: Differentiating between roles (individually assigned vs group inheritance)

    Posted 26 days ago

    Thank you. I was looking for this.



    ------------------------------
    Viraj Dhurat
    dnata
    ------------------------------