sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

React MTG SPX component not showing all people in SPFX webpart - SharePoint Online

Open teresahoes opened this issue 3 years ago • 4 comments

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?

teresahoes avatar Dec 15 '22 18:12 teresahoes

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Dec 15 '22 18:12 ghost

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 avatar Dec 15 '22 19:12 teresahoes

@teresahoes - this question is related to MGT itself, not SharePoint Dev. Please, ask this question in MGT Repo

AJIXuMuK avatar Dec 15 '22 19:12 AJIXuMuK

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

ghost avatar Dec 23 '22 00:12 ghost