The organization's groups
GET
/api/v1/groups
const url = 'http://localhost:3000/api/v1/groups';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:3000/api/v1/groups \ --header 'Authorization: Bearer <token>'Each with its members and its grants. A grant held by a group is each member’s. Admins of the project.
Any caller; the scope needed is checked on what it acts on.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Groups
Media typeapplication/json
object
data
required
Array<object>
object
id
required
string format: uuid
name
required
string
source
required
Made by an admin, or synced from single sign-on
string
createdAt
required
string format: date-time
members
required
Array<object>
object
id
required
string
name
required
string
email
required
string
Example
{ "data": [ { "source": "manual", "grants": [ { "resource": "organization", "scope": "read" } ] } ]}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}