KNotionUsers

interface KNotionUsers

Interface for managing Notion users through the Notion API. This interface provides methods to retrieve information about users in your Notion workspace, including the current user, workspace members, and bots.

Example usage:

// Retrieve a specific user by ID
val user = client.users.getUser("user-id")

// List all users in the workspace
val users = client.users.getUserList()

Functions

Link copied to clipboard
abstract suspend fun getUser(id: UuidString): User

Retrieves a user by their ID. This method fetches information about a specific user, such as their name, type, and avatar.

Link copied to clipboard
abstract suspend fun getUserList(pagination: Pagination = Pagination()): ResultPage<User>

Lists all users in the workspace that have been shared with your integration. This method returns a paginated list of users, including people and bots.