> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Has Scope Policy • AI Agent SDK

> has_scope_policy: Whether an operator scope policy is configured.

# has\_scope\_policy

Method

> This is a method of the [**GatewayConfig**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/GatewayConfig.md) class in the [**config**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/config.md) module.

Whether an operator scope policy is configured.

When False (the default), every authenticated client is granted all
scopes — preserving the original binary auth behaviour.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def has_scope_policy() -> bool
```

### Returns

**Returns** `bool`

The result of the operation.

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/config.py#L1301)
>
> `praisonaiagents/gateway/config.py` at line 1301


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.