---
title: CustomDataAccessGrantType - Shop Partners API
description: |-
  An AccessGrant captures ownership of a MetafieldDefinition, MetafieldNamespace, or MetaObject.
  A Grant can be addressed to a Role by role name, a Client by GID, or a Namespace/MetaObject by key.

  Grant Types:
    Absolute Path: {granteeId: "gid://shopify/Client/1234", grant: READ}.
    Relative Path: {grantee: "my-namespace-key", grant: READ}.
    Role Based Access: {role: ROLE_BASED_CLIENT_GROUP, grant: READ}.
api_version: unstable latest
source_url:
  html: https://shopify.dev/docs/api/shop-partners/latest/unions/CustomDataAccessGrantType
  md: https://shopify.dev/docs/api/shop-partners/latest/unions/CustomDataAccessGrantType.md
---

# Custom​Data​Access​Grant​Type

union

An AccessGrant captures ownership of a MetafieldDefinition, MetafieldNamespace, or MetaObject. A Grant can be addressed to a Role by role name, a Client by GID, or a Namespace/MetaObject by key.

Grant Types: Absolute Path: {granteeId: "gid://shopify/Client/1234", grant: READ}. Relative Path: {grantee: "my-namespace-key", grant: READ}. Role Based Access: {role: ROLE\_BASED\_CLIENT\_GROUP, grant: READ}.

## Fields with this union

* [Custom​Data​Access​Type.grants](https://shopify.dev/docs/api/shop-partners/latest/objects/CustomDataAccessType#field-CustomDataAccessType.fields.grants)

  OBJECT

  Access for Shop Custom Data primitives is composed of AccessGrants and/or a default permission that applies to any client using the API.

***

```graphql
union CustomDataAccessGrantType = CustomDataAbsoluteAccessGrantType | CustomDataRelativeAccessGrantType | CustomDataRoleBasedAccessGrantType
```