---
updatedAt: 2026-03-01T18:44:31.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/iam-api/v2/llms.txt
---

# Create a new group

Create a new group within a parent group you specify in the request.

# OpenAPI definition

```json
{
  "externalDocs": {
    "description": "See documentation for Akamai's Identity and Access Management API",
    "url": "https://techdocs.akamai.com/iam-user-admin/reference"
  },
  "info": {
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "title": "Groups",
    "version": "2"
  },
  "openapi": "3.0.0",
  "paths": {
    "/user-admin/groups/{groupId}": {
      "post": {
        "description": "Create a new group within a parent group you specify in the request.",
        "externalDocs": {
          "description": "See documentation for this operation in Akamai's Identity and Access Management API",
          "url": "https://techdocs.akamai.com/iam-user-admin/reference/post-group"
        },
        "operationId": "post-group",
        "parameters": [
          {
            "description": "For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys).",
            "in": "query",
            "name": "accountSwitchKey",
            "required": false,
            "schema": {
              "example": "1-5C0YLB:1-8BYUX",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "groupName": "New Sub Group"
              },
              "schema": {
                "additionalProperties": false,
                "description": "Specifies the name for a group.",
                "properties": {
                  "groupName": {
                    "description": "A group's name.",
                    "maxLength": 50,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "required": [
                  "groupName"
                ],
                "type": "object",
                "x-akamai": {
                  "file-path": "schemas/GroupRequest.yaml"
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "createdBy": "jperez",
                  "createdDate": "2017-09-18T19:03:28.000Z",
                  "groupId": 32145,
                  "groupName": "New Sub Group",
                  "modifiedBy": "alfulani",
                  "modifiedDate": "2017-09-18T19:03:28.000Z",
                  "parentGroupId": 19807
                },
                "schema": {
                  "additionalProperties": false,
                  "description": "Encapsulates information about a group.",
                  "properties": {
                    "actions": {
                      "additionalProperties": false,
                      "description": "Encapsulates permissions available to the user for this group. This data is available when you specify the `actions` parameter of the same name, not to be confused with the `action` parameter, which applies to the [Set two-factor authentication](https://techdocs.akamai.com/iam-api/reference/put-user-profile-tfa) operation.",
                      "properties": {
                        "delete": {
                          "description": "Indicates whether the user can remove items from the group.",
                          "type": "boolean"
                        },
                        "edit": {
                          "description": "Indicates whether the user can modify items in the group.",
                          "type": "boolean"
                        }
                      },
                      "type": "object"
                    },
                    "createdBy": {
                      "description": "The username of the person who created the group.",
                      "type": "string"
                    },
                    "createdDate": {
                      "description": "ISO 8601 timestamp indicating when the group was originally created.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "groupId": {
                      "description": "A unique identifier for each group.",
                      "type": "integer"
                    },
                    "groupName": {
                      "description": "A group's name.",
                      "type": "string"
                    },
                    "modifiedBy": {
                      "description": "The username of the last person to edit the group.",
                      "type": "string"
                    },
                    "modifiedDate": {
                      "description": "ISO 8601 timestamp indicating when the group was last updated.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "parentGroupId": {
                      "description": "For nested groups, identifies the parent group to which the current group belongs.",
                      "type": "integer"
                    },
                    "subGroups": {
                      "description": "Array of nested groups.",
                      "items": {
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/GroupResponse.yaml"
                  }
                }
              }
            },
            "description": "The response returns the created group."
          }
        },
        "summary": "Create a new group",
        "tags": [
          "Groups"
        ]
      },
      "parameters": [
        {
          "description": "A unique identifier for each group.",
          "in": "path",
          "name": "groupId",
          "required": true,
          "schema": {
            "example": 54321,
            "type": "integer"
          },
          "x-akamai": {
            "file-path": "parameters/groupId-path.yaml"
          }
        }
      ]
    }
  },
  "servers": [
    {
      "url": "https://{hostname}/identity-management/v2"
    }
  ],
  "x-akamai": {
    "auth-type": "EDGE_GRID",
    "file-path": "groups-api.yaml"
  },
  "x-readme": {
    "samples-languages": [
      "curl",
      "python",
      "node"
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```

# Sibling pages

* [List groups](https://techdocs.akamai.com/iam-api/v2/reference/get-groups.md)
* [Get a group](https://techdocs.akamai.com/iam-api/v2/reference/get-group.md)
* [Modify a group's name](https://techdocs.akamai.com/iam-api/v2/reference/put-group.md)
* [Delete a group](https://techdocs.akamai.com/iam-api/v2/reference/delete-group.md)