Skip to main content
Anchor to CustomDataAccessGrantType

CustomDataAccessGrantType

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}.

•OBJECT

Defines an AccessGrant by absolute path using Global Identifier (GID) to represent access to a Custom Data Primitive.

•CustomDataAccessPermissionType!
non-null

Level of Access: (READ, WRITE, ADMIN).

•String!
non-null

GID for a Client.

•OBJECT

Defines an AccessGrant by relative path using a key a Client has access to, to represent access to a Custom Data Primitive.

•CustomDataAccessPermissionType!
non-null

Level of Access: (READ, READ_WRITE, ADMIN).

•String!
non-null

Key of Namespace or MetaObject in your schema.

•OBJECT

TK

•CustomDataAccessPermissionType!
non-null

Level of Access: (READ, READ_WRITE/WRITE, ADMIN).

•String!
non-null

GID for Client Role Group.


Was this section helpful?

Anchor to Fields with this unionFields with this union

•OBJECT

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


Was this section helpful?