---
title: Set Auto Activation Group
slug: set-auto-activation-group
createdAt: 2026-02-05T09:33:58.280Z
---

### Purpose

Assigns an Auto-Activation (AA) group to the specified SIM.

The group is specified using the `<group>` element and must be the **group code**, not the group name.
Group codes are distributor-specific and are provided in a separate document.

By assigning an Auto-Activation group, the specified SIM will be automatically activated into the defined **Live** group when its test traffic allowance is exhausted.

Important conditions apply:

- The SIM **must** currently be in a group of type **Pending**
  If the SIM is in any other group type, the response will be **Invalid ICCID**.
- The Auto-Activation group specified **must** be of type **Live**
  If the group type is not Live, the response will be **Invalid Group**.

:::hint{type="warning"}
**Operational Impact**

API commands perform live configuration changes.

- Changes take effect immediately.&#x20;
- Commands may affect SIM status, service availability, charging, or usage limits.&#x20;
- Requests cannot be undone automatically.&#x20;

Ensure all parameters are validated before submitting requests to the production environment.
:::

### Endpoint

```http
POST https://api.m2miportal.com
Content-Type: application/xml
Accept: application/xml
```

### Request (XML)

```xml
<set-aa-group version="1" api-id="123456">
  <authentication>
    <username>username</username>
    <password>password</password>
  </authentication>
  <iccid>1234567890123456789</iccid>
  <group>group-code</group>
</set-aa-group>
```

### Response (Success)

```xml
<set-aa-group-response api-id="123456">
  <api-outcome>Success</api-outcome>
</set-aa-group-response>
```

:::hint{type="info"}
## Response (Failure)

If a request cannot be processed, the response will include:

- api-outcome indicating failure&#x20;
- An error description explaining the reason&#x20;

Failure responses may occur due to:

- Invalid authentication credentials&#x20;
- Invalid or unknown identifiers (for example ICCID or MSISDN)&#x20;
- Invalid or missing parameters&#x20;
- Values not permitted for the specified SIM type or account configuration&#x20;
- Insufficient permissions&#x20;

Integrating systems should validate input data before submission and implement appropriate error handling and logging.
:::

