Skip to content

User

user

Functions and classes for working with users in Notion.

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 property

Return the avatar URL of this user.

email: str | None property

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

id 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 property

Return the name of this user.

workspace_info: dict[str, str | int] | None property

Return the workspace info of this bot, if available.

__eq__(other: object) -> bool

__hash__() -> int

__repr__() -> str

__str__()

wrap_obj_ref(obj_ref: objs.User) -> User classmethod