---
updatedAt: 2026-10-06T17:37:25.000Z
agentTools:
  projectIndex: https://docs.akeyless.io/llms.txt
---

# /list-group

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "contact": {
      "email": "support@akeyless.io",
      "name": "Akeyless",
      "url": "http://akeyless.io"
    },
    "description": "The purpose of this application is to provide access to Akeyless API.",
    "title": "Identity & access",
    "version": "3.0"
  },
  "paths": {
    "/list-group": {
      "post": {
        "operationId": "listGroups",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/listGroups"
              }
            }
          },
          "required": true,
          "x-go-name": "Body"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/listGroupsResponse"
          },
          "default": {
            "$ref": "#/components/responses/errorResponse"
          }
        },
        "tags": [
          "Groups"
        ],
        "x-docs-category": "Identity & access",
        "x-docs-group": "Groups"
      }
    }
  },
  "tags": [
    {
      "name": "Groups"
    }
  ],
  "x-readme": {
    "apply-tag-changes": true
  },
  "servers": [
    {
      "url": "https://api.akeyless.io"
    }
  ],
  "components": {
    "responses": {
      "errorResponse": {
        "description": "errorResponse wraps any error to return it as a JSON object with one \"error\"\nfield.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/JSONError"
            }
          }
        }
      },
      "listGroupsResponse": {
        "description": "listGroupsResponse wraps response body.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ListGroupsOutput"
            }
          }
        }
      }
    },
    "schemas": {
      "AccessPermissionAssignment": {
        "properties": {
          "access_id": {
            "type": "string",
            "x-go-name": "AccessID"
          },
          "access_type": {
            "type": "string",
            "x-go-name": "AccessType"
          },
          "sub_claims": {
            "additionalProperties": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "type": "object",
            "x-go-name": "SubClaims"
          }
        },
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/infra/akeyless-api/oidc/shared"
      },
      "GrantedRole": {
        "properties": {
          "conditional": {
            "description": "Conditional is set when the role association also needs something besides\nthis group: another claim, or membership in another group (\" AND \").",
            "type": "boolean",
            "x-go-name": "Conditional"
          },
          "name": {
            "type": "string",
            "x-go-name": "Name"
          }
        },
        "title": "GrantedRole is a role a group member gets through the group claim.",
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/infra/types"
      },
      "Group": {
        "properties": {
          "account_id": {
            "type": "string",
            "x-go-name": "AccountId"
          },
          "creation_date": {
            "format": "date-time",
            "type": "string",
            "x-go-name": "CreationDate"
          },
          "description": {
            "type": "string",
            "x-go-name": "Description"
          },
          "granted_roles": {
            "description": "GrantedRoles are the roles a member of this group gets at login, through the\ngroup's akeyless_groups claim. Read-only, and filled only for the SCIM bearer\nthat owns the group: a group name on its own says nothing about the access it\ncarries, which is what a reviewer certifying the entitlement has to judge.",
            "items": {
              "$ref": "#/components/schemas/GrantedRole"
            },
            "type": "array",
            "x-go-name": "GrantedRoles"
          },
          "granted_roles_known": {
            "description": "GrantedRolesKnown is set when GrantedRoles was computed, so an empty list means\n\"grants no role\" rather than \"not computed\" (another caller, or an older UAM).",
            "type": "boolean",
            "x-go-name": "GrantedRolesKnown"
          },
          "group_alias": {
            "type": "string",
            "x-go-name": "GroupAlias"
          },
          "group_id": {
            "type": "string",
            "x-go-name": "GroupId"
          },
          "group_name": {
            "type": "string",
            "x-go-name": "GroupName"
          },
          "is_subclaims_with_operator": {
            "type": "boolean",
            "x-go-name": "IsSubclaimsWithOperator"
          },
          "modification_date": {
            "format": "date-time",
            "type": "string",
            "x-go-name": "ModificationDate"
          },
          "scim_external_id": {
            "type": "string",
            "x-go-name": "ScimExternalId"
          },
          "scim_managed": {
            "type": "boolean",
            "x-go-name": "ScimManaged"
          },
          "scim_provisioned_access_id": {
            "type": "string",
            "x-go-name": "ScimProvisionedAccessId"
          },
          "user_assignments": {
            "$ref": "#/components/schemas/GroupPermissionsAssignments"
          },
          "version": {
            "description": "Version identifies the member assignments this group was read with. Pass it back\nas UpdateGroupInput.ExpectedVersion to make the update conditional.",
            "type": "string",
            "x-go-name": "Version"
          }
        },
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/infra/types"
      },
      "GroupPermissionsAssignments": {
        "items": {
          "$ref": "#/components/schemas/AccessPermissionAssignment"
        },
        "type": "array",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/infra/types"
      },
      "JSONError": {
        "properties": {
          "error": {
            "type": "string",
            "x-go-name": "Err"
          }
        },
        "title": "JSONError wraps an error with JSON object.",
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/client"
      },
      "ListGroupsOutput": {
        "properties": {
          "groups": {
            "items": {
              "$ref": "#/components/schemas/Group"
            },
            "type": "array",
            "x-go-name": "Groups"
          },
          "next_page": {
            "type": "string",
            "x-go-name": "NextPage"
          }
        },
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/client/commands"
      },
      "listGroups": {
        "properties": {
          "filter": {
            "description": "Filter by auth method name or part of it",
            "type": "string",
            "x-go-name": "Filter"
          },
          "json": {
            "default": false,
            "description": "Set output format to JSON",
            "type": "boolean",
            "x-go-name": "Json"
          },
          "pagination-token": {
            "description": "Next page reference",
            "type": "string",
            "x-go-name": "PaginationToken"
          },
          "token": {
            "description": "Authentication token (see `/auth` and `/configure`)",
            "type": "string",
            "x-go-name": "Profile"
          },
          "uid-token": {
            "description": "The universal identity token, Required only for universal_identity authentication",
            "type": "string",
            "x-go-name": "UIDToken"
          }
        },
        "title": "listGroups is a command that lists groups.",
        "type": "object",
        "x-go-package": "akeyless.io/akeyless-main-repo/go/src/client/commands"
      }
    }
  }
}
```