SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.26k stars 1.02k forks source link

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

Closed teresahoes closed 1 year ago

teresahoes commented 1 year ago

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

Additional environment details

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?

ghost commented 1 year ago

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

teresahoes commented 1 year ago

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'

AJIXuMuK commented 1 year ago

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

ghost commented 1 year ago

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