Groups
Returns every group known to the authorization service, including the users that belong to each group.
Requires an account with administrative privileges (administrator or service account).
Groups list
Unauthorized
Forbidden
Internal Server Error
GET /api/groups HTTP/1.1
Accept: */*
{
"data": [
{
"id": 7,
"name": "data-stewards"
}
]
}Creates a group with the supplied name, description, alias and members.
Requires administrator access.
The user_ids array is a list of user IDs. Users that do not exist cause the request to fail with 422.
Group names must be unique: attempting to create a group with an existing name returns 422 with a "taken" error on name.
The response includes a Location header pointing at the newly created group.
Group created
Unauthorized
Forbidden
Unprocessable Entity
Internal Server Error
POST /api/groups HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 104
{
"group": {
"alias": "ds",
"description": "Data stewardship team",
"name": "data-stewards",
"user_ids": [
42,
43
]
}
}{
"data": {
"id": 7,
"name": "data-stewards",
"users": []
}
}Returns the groups whose name, description or alias matches the query, up to a configured maximum number of results. Further matches are silently truncated.
query is a partial, case-insensitive match applied to the group name, description and alias.
When query is omitted or empty, the endpoint returns up to the configured maximum number of groups in arbitrary order.
Partial, case-insensitive match against group name, description or alias.
Matching groups
Unauthorized
Internal Server Error
POST /api/groups/search HTTP/1.1
Accept: */*
{
"data": [
{
"id": 7,
"name": "data-stewards",
"users": [
{
"id": 42
}
]
}
]
}Returns the specified group with its members.
Requires administrator access.
Group ID.
Group detail
Unauthorized
Forbidden
Not found
Internal Server Error
GET /api/groups/{id} HTTP/1.1
Accept: */*
{
"data": {
"id": 7,
"name": "data-stewards",
"users": []
}
}Updates the group fields supplied in the request body.
Requires administrator access.
The user_ids array replaces the members of the group with the supplied list. Omit it to leave membership unchanged.
Partial updates are supported: fields not present in the payload are left untouched.
Group ID.
Group updated
Unauthorized
Forbidden
Not found
Unprocessable Entity
Internal Server Error
PUT /api/groups/{id} HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 47
{
"group": {
"description": "Updated description"
}
}{
"data": {
"id": 7,
"name": "data-stewards",
"users": []
}
}Permanently deletes the specified group.
Requires administrator access.
Group ID.
Group deleted
No content
Unauthorized
Forbidden
Not found
Internal Server Error
DELETE /api/groups/{id} HTTP/1.1
Accept: */*
No content
Updates the group fields supplied in the request body.
Requires administrator access.
The user_ids array replaces the members of the group with the supplied list. Omit it to leave membership unchanged.
Partial updates are supported: fields not present in the payload are left untouched.
Group ID.
Group updated
Unauthorized
Forbidden
Not found
Unprocessable Entity
Internal Server Error
PATCH /api/groups/{id} HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 47
{
"group": {
"description": "Updated description"
}
}{
"data": {
"id": 7,
"name": "data-stewards",
"users": []
}
}Last updated