# CollectionUserPermissions

> Type in domain **Users**

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

## Fields

- `canAddAssets`: `Boolean!` — Check if the current user can add `Assets` in this `Collection`.
- `canRemoveAssets`: `Boolean!` — Check if the current user can remove `Assets` from this `Collection`.

## Reach via

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

### `library › collections › currentUserPermissions`

```graphql
query LibraryCollectionsCurrentUserPermissions {
  library(id: "…") {
    collections(limit: 25, page: 1) {
      items {
        currentUserPermissions {
          __typename
          canAddAssets
          canRemoveAssets
        }
      }
    }
  }
}
```

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

### `brand › libraries › collections › currentUserPermissions`

```graphql
query BrandLibrariesCollectionsCurrentUserPermissions {
  brand(id: "…") {
    libraries(limit: 25, page: 1) {
      items {
        collections(limit: 25, page: 1) {
          items {
            currentUserPermissions {
              __typename
              canAddAssets
              canRemoveAssets
            }
          }
        }
      }
    }
  }
}
```

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

### `webhooks › project › collections › currentUserPermissions`

```graphql
query WebhooksProjectCollectionsCurrentUserPermissions {
  webhooks(limit: 25, page: 1) {
    items {
      ... on ProjectWebhook {
        project {
          ... on DocumentLibrary {
            collections(limit: 25, page: 1) {
              items {
                currentUserPermissions {
                  __typename
                  canAddAssets
                  canRemoveAssets
                }
              }
            }
          }
        }
      }
    }
  }
}
```

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

### `brands › libraries › collections › currentUserPermissions`

```graphql
query BrandsLibrariesCollectionsCurrentUserPermissions {
  brands {
    libraries(limit: 25, page: 1) {
      items {
        collections(limit: 25, page: 1) {
          items {
            currentUserPermissions {
              __typename
              canAddAssets
              canRemoveAssets
            }
          }
        }
      }
    }
  }
}
```

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