Functions
get-user
fn (user-id: Str): Map
fn (user-id: Str, opts: Map): Map
GET /users/{id} - One user (person or bot). Requires a user-information capability; emails appear only with the include-email level.
Example
user ::notion::users/get-user("e79a0b74-3aba-4149-9f74-0bb5791a6ee6")
user.name
list-users
fn (): Map
fn (options: Map): Map
fn (options: Map, opts: Map): Map
GET /users - The workspace's users, paginated. options (1-arity)
supports page_size (max 100) and start_cursor; returns {results, has_more, next_cursor}. Requires a user-information capability.
Example
users ::notion::users/list-users({page_size: 50})
map(users.results, %.name)
users.next_cursor
me
fn (): Map
fn (opts: Map): Map
GET /users/me - The integration's own bot user. The cheapest way to smoke-test a token. Works with any user-capability level.
Example
bot ::notion::users/me()
bot.name