# LibraryUserPermissions

> Type in domain **Users**

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

## Fields

- `canCreateAssets`: `Boolean!` — Check if current `User` has `Asset` creation permissions in a specific `Library`.
- `canViewCollaborators`: `Boolean!` — Check if current `User` has `Collaborator` view permissions in a specific `Library`.
- `canCreateCollections`: `Boolean!` — Check if current `User` has `Collection` creation permissions in a specific `Library`.

## Reach via

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

### `library › currentUserPermissions`

```graphql
query LibraryCurrentUserPermissions {
  library(id: "…") {
    currentUserPermissions {
      __typename
      canCreateAssets
      canCreateCollections
      canViewCollaborators
    }
  }
}
```

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

### `brand › libraries › currentUserPermissions`

```graphql
query BrandLibrariesCurrentUserPermissions {
  brand(id: "…") {
    libraries(limit: 25, page: 1) {
      items {
        currentUserPermissions {
          __typename
          canCreateAssets
          canCreateCollections
          canViewCollaborators
        }
      }
    }
  }
}
```

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

### `webhooks › project › currentUserPermissions`

```graphql
query WebhooksProjectCurrentUserPermissions {
  webhooks(limit: 25, page: 1) {
    items {
      ... on ProjectWebhook {
        project {
          ... on DocumentLibrary {
            currentUserPermissions {
              __typename
              canCreateAssets
              canCreateCollections
              canViewCollaborators
            }
          }
        }
      }
    }
  }
}
```

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

### `brands › libraries › currentUserPermissions`

```graphql
query BrandsLibrariesCurrentUserPermissions {
  brands {
    libraries(limit: 25, page: 1) {
      items {
        currentUserPermissions {
          __typename
          canCreateAssets
          canCreateCollections
          canViewCollaborators
        }
      }
    }
  }
}
```

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