<!--
{
  "availability" : [
    "App Store Server API: 1.22.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppStoreServerAPI",
  "identifier" : "/documentation/AppStoreServerAPI/role",
  "metadataVersion" : "0.1.0",
  "role" : "Type",
  "symbol" : {
    "kind" : "Type",
    "modules" : [
      "App Store Server API"
    ],
    "preciseIdentifier" : "data:app_store_server_api:role"
  },
  "title" : "role"
}
-->

# role

A string that identifies a customer’s role for a product within a group.

```
string role
```

## Discussion

Each [`RoleEntry`](/documentation/AppStoreServerAPI/RoleEntry) that the [`Get Customer Groups`](/documentation/AppStoreServerAPI/Get-Customer-Groups) endpoint returns includes a `role` for a single [`productId`](/documentation/AppStoreServerAPI/productId). A customer can hold a different role for each of your products within the same group.

Roles apply only to a group with a [`groupType`](/documentation/AppStoreServerAPI/groupType) of `ORGANIZATION`. A group with a `groupType` of `CONSUMER` doesn’t report roles.

This value is informational. Determine access to content based on the customer’s transactions. Use `role` if you want to offer an administrator something the other members don’t get, such as naming the team or configuring an experience for the whole group.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)