microsoftgraph / microsoft-graph-toolkit

Authentication Providers and UI components for Microsoft Graph 🦒
https://docs.microsoft.com/graph/toolkit/overview
Other
922 stars 285 forks source link

`mgt-people-picker` should support skipping the People search API #1470

Open sebastienlevert opened 2 years ago

sebastienlevert commented 2 years ago

Proposal: mgt-people-picker should support skipping the People search API

Description

In some scenarios (#1467), we want to skip the findPeople method to just emit a call to the /users API for privacy reasons. We should allow disabling the use of the findPeople function like we do with the useContactsApi.

Preferred Solution

We should provide a configuration opportunity for developers to disable the people API like this :

import { MgtPeoplePicker} from `@microsoft/mgt`;

MgtPeoplePicker.config.usePeopleApis= false;
ghost commented 2 years ago

Hello sebastienlevert, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌