KNotion Users
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()Content copied to clipboard
Functions
Link copied to clipboard
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
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.