Retrieves a list of groups the asking principal a member of. Principals with groups:list capability can optionally ask for all groups in a project.
A list of groups.
const groups = await client.groups.list({ all: true });
{- "items": [
- {
- "name": "Production Engineers",
- "capabilities": [
- {
- "analyticsAcl": {
- "actions": [
- "READ"
], - "scope": {
- "all": { }
}
}, - "projectUrlNames": {
- "urlNames": [
- "publicdata"
]
}
}
], - "metadata": {
- "property1": "string",
- "property2": "string"
}, - "sourceId": "b7c9a5a4-99c2-4785-bed3-5e6ad9a78603",
- "id": 0,
- "isDeleted": false,
- "deletedTime": 0
}
]
}