Is Explicitly Allowed • AI Agent SDK
is_explicitly_allowed: Whether a user is explicitly allow-listed.
is_explicitly_allowed
Method
</div>
This is a method of the BotConfig class in the 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
def is_explicitly_allowed(user_id: str) -> boolParameters
ParamField
strNo description available.
Returns
ResponseField
boolThe result of the operation.
Source
View on GitHubpraisonaiagents/bots/config.py at line 232