Skip to content
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

PeoplePicker Group could not be found. #1853

Open
Ofer-Gal opened this issue Jul 13, 2024 · 1 comment
Open

PeoplePicker Group could not be found. #1853

Ofer-Gal opened this issue Jul 13, 2024 · 1 comment

Comments

@Ofer-Gal
Copy link

Category

[X] Bug ?

Version

Please specify what version of the library you are using: ["@pnp/spfx-controls-react": "^3.18.1" ]

Expected / Desired Behavior / Question

My 365 group "DPC Department" is a valid group so I should use:

	<PeoplePicker 
		    context={context as any} 
		    personSelectionLimit={1}
		    groupName={"DPC Department"} 
		    showtooltip={true}                
		    onChange={getPeoplePickerItems} 
		    principalTypes={[PrincipalType.User]}
		    resolveDelay={2000} 
	/>

Observed Behavior

the control is disabled and shows "Group could not be found."
I also tried the Guid of the group and the SharePoint group. got same results

Steps to Reproduce

Use code like above.

not sure if related, but Typescript did not like peoplePickerContext for PeoplePicker context
so I used context={context as any} //from props

image

Thanks!

@EA12
Copy link

EA12 commented Aug 7, 2024

Seems like a compatibility issue: I described it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants