Skip to content

How to filter a PeoplePicker #1657

Closed
@cardinalpipkin

Description

@cardinalpipkin

Category

[ ] Enhancement

[ ] Bug

[/] Question

├── @fluentui/react-components@9.31.0
├── @microsoft/teamsfx-cli@1.2.6
├── @pnp/logging@3.18.0
├── @pnp/sp@3.18.0
├── @pnp/spfx-controls-react@3.15.0
└── react-icons@4.11.0
Version

Please specify what version of the library you are using: [ 3.15.0 ]

Question
I am trying to filter an sp pnp people picker:
PeoplePicker - @pnp/spfx-controls-react
I want to filter based on whether the users found have a certain @domain.com
Is there an out of the box solution that comes with the control or is it something I will have build around it?
It's been suggested I use

import { PeoplePickerFilter } from '@pnp/spfx-controls-react';

but I get an error saying it doesn't exist on @pnp/spfx-controls-react:
image

How to filter it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:fixedIssue fixed in current or prior release.type:enhancementNew feature or enhancement of existing capabilitytype:question

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions