scwoods | 2019-10-16 10:52:22 UTC | #1
We have used the existing Premium Client Sample App template from the GitHub.
Part of the installation wizard will create two Groups namely Supervisor and Agent but assigning Role to these groups are done manually from management UI. We would like to handle this manual process via code and if there is existing premiumclient API that we can use to achive this task?
tim.smith | 2019-10-16 14:41:19 UTC | #2
You can add users to roles using PUT /api/v2/authorization/roles/{roleId}/users/add, or set a user's roles using PUT /api/v2/users/{userId}/roles.
scwoods | 2019-10-16 15:49:29 UTC | #3
Thanks for your reply Tim.
Is that same api for the below management UI.
I apologize if I've missed something. basically, what we want to achive is to assign a custom role to our custom groups so that users can be part of billing.
tim.smith | 2019-10-16 18:38:58 UTC | #4
I assume so, but you can inspect the network tab in your browser to see exactly how the UI makes API requests.
system | 2019-11-16 18:39:02 UTC | #5
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: 6259