Note (October 2026): the device user is now optional elsewhere in GEMM — on the Activation and Port In APIs (deviceUser) and when edited from the Inventory Quick View, Detail View or Edit ECI Fields dialog. This API is unchanged: user is still required and must be 1–100 characters; an empty value is rejected. It cannot be used to clear a user; clear it from the dashboard instead.
Update User
Update the user for a SIM.
Auth Scope
urn:grt:gemmContent-Type
application/jsonBase URL
https://gemmapi2.granitenet.com/v2/api/gemm/v1Uses and Requirements
Use the UpdateUser API to update the user field for a SIM. This API is synchronous: it does not send a callback.
Info
HTTP Status Codes
| Status | When |
|---|---|
200 | The user was updated and a transactionID was returned. This API is synchronous: the change is applied before the response and no callback is sent. |
400 | Validation failed: the ICCID in the path is not 19-20 digits (an F is allowed as the 20th character), or user is empty or longer than 100 characters; no SIM exists with that ICCID; the SIM is deactivated; the macnum header is missing or not an 8-digit number; or the request body is missing or is not valid JSON. |
401 | The bearer token is missing, invalid or expired, or you do not have access to the account in the macnum header. |
403 | You do not have access to the account the SIM belongs to, that account does not belong to the hierarchy of the macnum header, or your credentials are not enabled for API access. |
429 | Too many requests were sent in a short period. Wait briefly and retry. |
500 | An unexpected server error occurred. |
503 | The system is under scheduled maintenance. Retry after the maintenance window. |
504 | A dependent service did not respond in time. Retry the request. |
Headers
| Header | Value |
|---|---|
Authorization | Bearer access-token |
Content-Type | application/json |
macnum | Top Level Account Number associated with your API credentials. |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
iccid | string | Yes | ICCID of the SIM whose user you want to update. 19-20 digits; an F is allowed as the 20th character. An ICCID that is not found returns 400 ("Invalid input. Connection {iccid} not found."), not 404, and a deactivated SIM returns 400 ("Operation not allowed. Connection '{iccid}' is deactivated."). |
Request Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
user | string | Yes | Limited to 100 characters. |
Request Examples
Responses
Success Response (200 OK)
Response Fields
| Parameter | Type | Description |
|---|---|---|
transactionID | string | A unique identifier (GUID) for the request. |
Failure Responses
Error Message
Error Response Fields
| Parameter | Type | Description |
|---|---|---|
result | object | Result status object. |
status | string | Result status: success or failure. |
errors | object | List of errors. |
errorCode | string | Error code. |
errorMessage | string | Error message. |
Code Examples
Related Links
Last updated on