> ## 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.

# Is Explicitly Allowed • AI Agent SDK

> is_explicitly_allowed: Whether a user is explicitly allow-listed.

# is\_explicitly\_allowed

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**BotConfig**](../classes/BotConfig) class in the [**config**](../modules/config) module.

Whether a user is explicitly allow-listed.

Unlike :meth:`is_user_allowed`, an empty `allowed_users` returns
`False` here — the inbound pipeline then defers to
`unknown_user_policy`. This is the check the security pipeline
should use to decide whether to bypass the unknown-user handler.

## Signature

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

## Parameters

<ParamField query="user_id" type="str" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="bool">
  The result of the operation.
</ResponseField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/bots/config.py#L205">
  `praisonaiagents/bots/config.py` at line 205
</Card>
