---
lang: en
title: 'API docs: authorization.authorize.denyallexcept'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.authorization.authorize.denyallexcept.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/authorization](./authorization.md) &gt; [authorize](./authorization.authorize.md) &gt; [denyAllExcept](./authorization.authorize.denyallexcept.md)

## authorize.denyAllExcept variable

Deny all but the given roles

<b>Signature:</b>

```typescript
denyAllExcept: (...roles: string[]) => (target: any, method?: string | undefined, methodDescriptor?: TypedPropertyDescriptor<any> | undefined) => any
```

