Skip to content

func-api-users-get ​

Description ​

Returns the combined list of all users: Cognito accounts (users who have signed in) merged with invited-only DynamoDB records (users who have been invited but have not yet signed in).

Super user access is required. Regular users receive 403 Forbidden.

Expired invitations (expires_at in the past) are excluded from the response.

Invocation ​

Invoked by API Gateway on an HTTP GET /users request.

API Endpoints ​

MethodPathAuthDescription
GET/usersSuper userList all users

Response ​

json
{
  "users": [
    {
      "email": "user@example.com",
      "name": "User Name",
      "is_super": false,
      "status": "CONFIRMED",
      "created": "2026-01-01T00:00:00+00:00",
      "invited_by": "admin@example.com"
    },
    {
      "email": "pending@example.com",
      "name": null,
      "is_super": false,
      "status": "INVITED",
      "created": "2026-01-02T00:00:00+00:00",
      "invited_by": "admin@example.com"
    }
  ]
}
FieldTypeDescription
emailstringUser's email address
namestring | nullDisplay name from Cognito; null for invited-only users
is_superbooleanWhether the user is in the super_users Cognito group
statusstringCognito UserStatus for signed-in users; "INVITED" for pending invitations
createdstringISO-8601 timestamp of Cognito account creation or invitation
invited_bystring | nullEmail of the super user who sent the invitation

See the API Reference for full schema documentation.

Deployment ​

See the deployment workflow documentation for workflow steps, infrastructure dependencies, and failure scenarios.