React MTG SPX component not showing all people in SPFX webpart - SharePoint Online
What type of issue is this?
Question
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Target SharePoint environment
SharePoint Online
What browser(s) / client(s) have you tested
- [X] 💥 Internet Explorer
- [ ] 💥 Microsoft Edge
- [ ] 💥 Google Chrome
- [ ] 💥 FireFox
- [ ] 💥 Safari
- [ ] mobile (iOS/iPadOS)
- [ ] mobile (Android)
- [ ] not applicable
- [ ] other (enter in the "Additional environment details" area below)
Additional environment details
- browser version - Version 108.0.1462.46 (Official build) (64-bit)
- SPFx version - 1.13.0
- @microsoft/mgt-react: 2.5.2 -@microsoft/mgt-spfx: 2.5.2
- Node.js version - 16.x
Issue description
Hello,
I am using the @microsoft/mgt-react/dist/es6/spfx component in a webpart on Sharepoint online. Searching does not find some people who are active members of the associated Active Directory. Here is component code in the webpart.
<PeoplePicker
type={PersonType.person}
selectionMode="single"
selectionChanged={handleSupervisorChanged}
selectedPeople={selectedPeople}
/>
My question is - how does the component determine who should show up when searching and what might cause people to NOT show up?
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Im wondering if its excluding them because its a 'relevant' search - when i inspect the query its performing and then do that same query in the graph explorer, i do not get any results. I see from the documenation that 'search' does a relevant search to me. How can we get it to search all people?
https://graph.microsoft.com/v1.0/me/people?$search="moossa"&$top=6&$filter=personType/class eq 'Person'
@teresahoes - this question is related to MGT itself, not SharePoint Dev. Please, ask this question in MGT Repo
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues