For AI agents: this page in Markdown: https://www.pubnub.com/docs/sdks/asyncio/api-reference/access-manager-legacy.md. Documentation index: https://www.pubnub.com/llms-full.txt.
Access Manager API: spaces and users scopes that are not recommended for Python-Asyncio SDK
This page documents the spaces scope, the User class, and the authorized_user() builder method of grant_token() in the PubNub Python-Asyncio SDK. The SDK source does not tag them as deprecated, but their use is not recommended. Access Manager v3 is a current API, and these are an older way to call it. They remain for apps that already use them. New apps use channels, uuids, and authorized_user_id, described in Grant token.
- Grant token - spaces & users (not recommended) covers the
spacesscope and theusersscope.
A builder sends its request when you await its future(). A request that fails, or fails validation, does not raise an exception. future() resolves with a PubNubAsyncioException whose result is None and whose status holds the error. Call is_error() on the awaited value before you read result.