XRAS doesn’t keep track of users on resources, only whether or not a person has a “User” role on a request. However, this endpoint passes the resource information on to the accounting service and can be used to keep roles in XRAS and the accounting service in sync.
Accepts a JSON body like the following:
[
{"username": "mshapiro", "resources": [531001, 530299]},
{"username": "hackwort", "resources": []}
]
XRAS will retrieve user information from the accounting service and perform the necessary requests to the accounting service to add or remove users from resources.
If a username is not referenced in the POSTed body, no action will be taken for that user.
For allocations processes without an accounting service, this route will return a 501/Not Implemented. Use /v1/roles/:requestNumber/User/:username instead.
| Param name | Description |
|---|---|
|
requestNumber
required |
Validations:
|
|
_json
optional |
Validations:
|
|
_json[username]
required |
Validations:
|
|
_json[resources]
required |
Validations:
|
OK
| Param name | Description |
|---|
Not Found
| Param name | Description |
|---|---|
|
message
required |
“requestNumber ‘<requestNumber>’ not found” Validations:
|
Not Implemented
| Param name | Description |
|---|---|
|
message
required |
“No accounting service available” Validations:
|