PeopleSelector
Portal only
Works only inside an ONLYOFFICE Apps portal: it needs the portal's API client, stores and translations, and is not part of the public API.
PeopleSelector is a searchable, paginated selector for choosing users and groups from the ONLYOFFICE Apps system.
Features
- Live API mode — Fetches members, groups, and guests from the ONLYOFFICE Apps Search API with infinite scroll
- Tabs — Toggle Members, Groups, and Guests tabs via
withGroupsandwithGuests - Single / multi-select — Controlled by
isMultiSelect - Room scope — Pass
roomIdto filter users with access to a specific room - Access rights — Optional access-right dropdown via
withAccessRights - Current user — Highlights the current user with a "(Me)" label via
currentUserId - Exclusions — Hide or disable specific users via
excludeItems/disableInvitedUsers - Header / aside / cancel — Fully composable via
withHeader,useAside,withCancelButton
Default
A basic PeopleSelector with default settings.

import PeopleSelector from "@onlyoffice/apps-ui-kit/selectors/People";
<PeopleSelector
withHeader
headerProps={{ headerLabel: "Select Member", onCloseClick: () => setOpen(false) }}
onSubmit={(items) => console.log(items[0])}
/>