groups
Retrieve group names and IDs for a user or the current process. Use to verify group membership for access control decisions.
Instructions
Return group names and IDs for a specified user or the current process. Read-only, no side effects. Returns JSON with group list. Use to verify group membership for access control decisions. Not for full user identity inspection — use 'id' for UID/GID plus all groups. Not for current username — use 'whoami'. See also 'id', 'whoami'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Write group names/ids without a JSON envelope. | |
| user | No | User name label for the result. Current user by default. |