-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Office UI Fabric People Picker Not Supporting Sharepoint group #161
Comments
Category I'm also have this issue. Version 1.10.0 After short investigation I can suppose that '/_api/web/siteusers' with filter (PrincipalType eq 8) which used inside '_thisLoadUsers' method in PeoplePickerComponent does not return any SharePoint Group. Using additional call with '/_api/web/sitegroups' (in case if SharePoint Group should be retrieved) can fix issue. Thanks |
Probably connected: in version 1.11.0 beta, specifying the Example: From what I can see, the underlying call to |
Seems to be indeed a limitation in the I just did an update to the library to always use the |
It occurred to me overnight that it might not be working for me because I didn't specify the |
Investigated the actual calls that are done in SharePoint lists itself, and using the same logic now. Makes more sense to call one API, instead of three different ones. |
I installed the latest, and I'm still seeing everyone in the picker, even when I include:
Did you push your changes to @pnp/spfx-controls-react@next? |
Changes are indeed available on the latest. Normally you should now see a call happening to the Try by installing it like this: |
Just tested it in a new project that I create to be sure it was working correctly. Also created the same group and added one user to it. <PeoplePicker context={this.props.context}
titleText='People Picker searching in "Shipping & Logistics Team Members"'
groupName="Shipping & Logistics Team Members"
ensureUser={true}
principalTypes={[PrincipalType.User]}
selectedItems={(items) => console.log(items)} /> |
Yup, working for me, too. The dread "developer error". Thanks for the help! |
Thank @sympmarc for testing! Will release the new version tomorrow. |
Thanks, @estruyf. Now that I'm finally using these controls, they are really awesome. I hope to be able to contribute more as we go along. |
Hi all. And how about selecting SharePoint groups in this control? Thanks Vladyslav |
@vlad-nvs should work as well right now. If you pass |
This has been released with the latest |
<PeoplePicker context={this.props.webpartContext}
titleText="Author's" personSelectionLimit={3}
groupName={""} // Leave this blank in case you want to filter from all users
showtooltip={true}
selectedItems={this._getPeoplePickerItems}
showHiddenInUI={false}
principleTypes={[PrincipalType.User,PrincipalType.SharePointGroup]} />
[ ] Question
I am not able to get the Sharepoint groups using the ,PrincipalType.SharePointGroup.
Thanks!
Vaishali
The text was updated successfully, but these errors were encountered: