GET /api/users/{id}/addusertoaccessgroupbygroupname/{accessgroupname}
Add user to provided access group.
Description
Adds the user to provided access group. Access group name must already be defined in system. Parameter {id} – ADBrukernavn Parameter {accessGroupName} – Websak access group name Return values : 200 OK, 500 + error message.
Parameters
| Name | In | Description | Required | Type |
|---|---|---|---|---|
| id | path | User AD string identifier | true | string |
| accessGroupName | path | Access group id | true | string |
| lookupField | query | Lookup field. Field to use when finding user. Possible values: Id (default), gidid and Code. | string |
Responses
| Code | Returns | Type |
|---|---|---|
| 200 | OK | |
| 500 | Internal Server Error | |
| 401 | Unauthorized - Missing or invalid access token | |
| 403 | Forbidden - Provided access token does not permit usage of this API or data |