-
Notifications
You must be signed in to change notification settings - Fork 3
Service: User Group Member Role Management
Eliza Margaretha edited this page Jan 16, 2020
·
12 revisions
Adds or deletes roles of active user-group members. Only user-group admins and system admins are allowed.
Available in: full version
Method: POST
Service URL:
- root/group/@{group-name}/role/add
- root/group/@{group-name}/role/delete
Header Parameters
Name | Required | Description | Value |
---|---|---|---|
Authorization | yes | HTTP authentication with scheme: Bearer, Api | OAuth2 access token or user authentication token |
Content-Type | yes | content type of the input data | application/x-www-form-urlencoded |
Path Parameters
Name | Required | Description | Type |
---|---|---|---|
group-name | yes | user-group name | String |
URL-encoded Form Parameters
Name | Required | Description | Type |
---|---|---|---|
memberUsername | yes | the username of a group member | String |
roleIds | yes | a list of role ids | List |
Request example with cURL
curl -H 'Content-Type: application/x-www-form-urlencoded' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1MTM1MzI3O TAxMzQsInN1YiI6InVzZXJuYW1lIiwiaXNzIjoiaHR0cDpcL1wva29yYXAuaWRzLW1 hbm5oZWltLmRlIn0.p4jHIGeVwTpYAPFiWAd0R8Zcazyg7e9_tUGxOyFGUlo' -d 'memberUsername=marlin&roleIds=1&roleIds=2' http://localhost:8089/api/v1.0/group/@marlin-group/role/add
Request example with Basic authentication (for testing only)
curl -H 'Content-Type: application/x-www-form-urlencoded' -H 'Authorization: Basic ZG9yeTpwYXNzd29yZA==' -d 'memberUsername=nemo&roleIds=1&roleIds=2' http://localhost:8089/api/v1.0/group/@dory-group/role/add
curl -H 'Content-Type: application/x-www-form-urlencoded' -H 'Authorization: Basic ZG9yeTpwYXNzd29yZA==' -d 'memberUsername=nemo&roleIds=2' http://localhost:8089/api/v1.0/group/@dory-group/role/delete
- Importing Kustvakt to Eclipse
- Installing Lombok
- Setting annotation processors
- Setting a test environment
- HTTP Basic Authentication
- OAuth2 authorization scopes
- OAuth2 authorization request
- OAuth2 token request
- OAuth2 token revocation
- OAuth2 client registration
- OAuth2 client info
- OAuth2 client deregistration
- OAuth2 client secret reset
- Plugin registration
- Plugin list (marketplace)
- Plugin installation
- Plugin uninstallation
- Installed plugin list
- VC creation and update
- VC deletion
- VC list
- VC info
- VC KoralQuery
- VC statistics
- VC statistics with KoralQuery