Skip to content

User

user

Functions and classes for working with users in Notion.

U_co = TypeVar('U_co', bound=(objs.User), default=(objs.User), covariant=True) module-attribute

Bot(*args: Any, **kwargs: Any)

A user that represents a bot.

is_bot: bool property

workspace_info: WorkSpaceInfo property

Return the workspace info of this bot, if available.

Person(*args: Any, **kwargs: Any)

A user that represents a person.

email: str | None property

Return the e-mail address of this user, if available.

is_person: bool property

UnknownUser(*args: Any, **kwargs: Any)

A user that is unknown, i.e. no longer part of the workspace.

is_unknown: bool property

__str__() -> str

User(*args: Any, **kwargs: Any)

User object for persons, bots and unknown users.

Unknown users are users, which no longer participate in the workspace or were revoked access. They are represented by their ID and have the name Unknown User.

avatar_url: str | None property

Return the avatar URL of this user.

id: UUID property

Return the ID of this user.

is_bot: bool property

Return True if this user is a bot.

is_person: bool property

Return True if this user is a person.

is_unknown: bool property

Return True if this user is an unknown user.

name: str | None property

Return the name of this user.

__eq__(other: object) -> bool

__hash__() -> int

__repr__() -> str

__str__() -> str

WorkSpaceInfo

Workspace information for a bot user.

name: str instance-attribute