# CustomMetadataPropertyCustomPermission

> Type in domain **Users**

- HTML: [CustomMetadataPropertyCustomPermission.html](CustomMetadataPropertyCustomPermission.html)
- Raw SDL: [CustomMetadataPropertyCustomPermission.sdl](CustomMetadataPropertyCustomPermission.sdl)
- Covered by: [llms.txt](../llms.txt)

## Fields

- `subject`: `AccountCollaborator!` _(beta)_ — Subject representing the specific user or group granted with the permission.
- `permissionLevel`: `CustomMetadataPropertyPermissionLevel!` _(beta)_ — Permission level granted to the subject.

## Reach via

Example queries that can return this type from the root `Query`.

### `brand › customMetadataProperties › permissions › custom`

```graphql
query BrandCustomMetadataPropertiesPermissionsCustom {
  brand(id: "…") {
    customMetadataProperties {
      permissions {
        custom {
          __typename
          permissionLevel
          subject {
            __typename
            ... on AccountUser {
              avatar
              name
              id
              email
            }
            ... on UserGroup {
              name
              id
              users {
                total
                page
                limit
                hasNextPage
                items { id }
              }
            }
          }
        }
      }
    }
  }
}
```

Raw: [`BrandCustomMetadataPropertiesPermissionsCustom.sdl`](../examples/BrandCustomMetadataPropertiesPermissionsCustom.sdl)

### `library › customMetadataProperties › permissions › custom`

```graphql
query LibraryCustomMetadataPropertiesPermissionsCustom {
  library(id: "…") {
    customMetadataProperties {
      permissions {
        custom {
          __typename
          permissionLevel
          subject {
            __typename
            ... on AccountUser {
              avatar
              name
              id
              email
            }
            ... on UserGroup {
              name
              id
              users {
                total
                page
                limit
                hasNextPage
                items { id }
              }
            }
          }
        }
      }
    }
  }
}
```

Raw: [`LibraryCustomMetadataPropertiesPermissionsCustom.sdl`](../examples/LibraryCustomMetadataPropertiesPermissionsCustom.sdl)

### `brands › customMetadataProperties › permissions › custom`

```graphql
query BrandsCustomMetadataPropertiesPermissionsCustom {
  brands {
    customMetadataProperties {
      permissions {
        custom {
          __typename
          permissionLevel
          subject {
            __typename
            ... on AccountUser {
              avatar
              name
              id
              email
            }
            ... on UserGroup {
              name
              id
              users {
                total
                page
                limit
                hasNextPage
                items { id }
              }
            }
          }
        }
      }
    }
  }
}
```

Raw: [`BrandsCustomMetadataPropertiesPermissionsCustom.sdl`](../examples/BrandsCustomMetadataPropertiesPermissionsCustom.sdl)

### `assets › customMetadata › property › permissions › custom`

```graphql
query AssetsCustomMetadataPropertyPermissionsCustom {
  assets(ids: "…") {
    customMetadata {
      property {
        permissions {
          custom {
            __typename
            permissionLevel
            subject {
              __typename
              ... on AccountUser {
                avatar
                name
                id
                email
              }
              ... on UserGroup {
                name
                id
                users {
                  total
                  page
                  limit
                  hasNextPage
                  items { id }
                }
              }
            }
          }
        }
      }
    }
  }
}
```

Raw: [`AssetsCustomMetadataPropertyPermissionsCustom.sdl`](../examples/AssetsCustomMetadataPropertyPermissionsCustom.sdl)

### `asset › customMetadata › property › permissions › custom`

```graphql
query AssetCustomMetadataPropertyPermissionsCustom {
  asset(id: "…") {
    customMetadata {
      property {
        permissions {
          custom {
            __typename
            permissionLevel
            subject {
              __typename
              ... on AccountUser {
                avatar
                name
                id
                email
              }
              ... on UserGroup {
                name
                id
                users {
                  total
                  page
                  limit
                  hasNextPage
                  items { id }
                }
              }
            }
          }
        }
      }
    }
  }
}
```

Raw: [`AssetCustomMetadataPropertyPermissionsCustom.sdl`](../examples/AssetCustomMetadataPropertyPermissionsCustom.sdl)
