User objects — the public-facing profile type. Unlike AuthUser, User omits private fields such as email, secureMetadata, isVerified, isActive, and lastActive.
Hooks
useFetchUser
Fetch a user’s public profile by their Sublay user ID.
useFetchUserByForeignId
Fetch a user’s public profile by their foreign ID (from your own system).
useFetchUserByUsername
Fetch a user’s public profile by their username.
useFetchUserSuggestions
Search for users by a query string. Useful for autocomplete and user lookup.
useCheckUsernameAvailability
Check whether a username is available before setting it.
useUserMentions
Full mention flow: detects
@ triggers, fetches suggestions, inserts the username into content, and tracks mentioned users.The include Parameter
Several hooks accept an optional include parameter. Passing "files" (or ["files"]) instructs the server to populate the user’s avatarFile and bannerFile fields with full File objects instead of returning only the IDs.
User vs AuthUser
See the User data model for the complete field reference.

