-
Notifications
You must be signed in to change notification settings - Fork 284
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
[BUG] Can't filter groups in PeoplePicker #1471
Comments
Hello brucelane, thank you for opening an issue with us! I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌 |
Are you getting the "no matches found result" or is it actually hanging/causing a page error? Here is a sample of the behavior, this user has no searachable users available for distribution or security, but you'll see unified and mailenabledsecurity will have group results. https://stackblitz.com/edit/mgt-react-login-hkpwzh?file=src%2FApp.js Are you able to get users for the other group types? |
Yes, I used to get "no matches found result" until today. |
So this used to work @brucelane? You were using userIds but the ids in there were group ids? |
groupId filters for one group and works fine. |
@sebastienlevert "no matches found result" is when I set userIds attribute(with groupIds!), nevermind! |
We've made improvements in the latest 2.4 releast where you can pre-filter groups (users and people also). Mind validating if this would solve your issues? Thanks! |
Thanks! I got this error since I'm now using mgt-msal2-provider
I then did the app registration migration to SPA. The Azure was hinting clearly to update from Web to SPA, it fixed the error. If I put
I got a "not found" list whatever I type, even if don't type anything. |
Hello @brucelane this will not work because you set a type of |
Thanks @musale |
Describe the bug
Can't filter groups in PeoplePicker
To Reproduce
Steps to reproduce the behavior:
Using the mgt-react module
Expected behavior
Should filter the results for the userIds array. I get a "not found" result list instead
It works fine with users though...
Environment (please complete the following information):
OS: windows
Browser chrome
Framework react typescript
Context Web (Ionic framework)
Version
"@microsoft/mgt-element": "^2.3.1",
"@microsoft/mgt-msal-provider": "^2.3.1",
"@microsoft/mgt-react": "^2.3.1",
Provider :
``
export const config = {
clientId: "ac85...",
scopes: ['User.Read', 'openid', 'profile', 'People.Read', 'User.ReadBasic.All', 'Group.Read.All', 'GroupMember.Read.All', 'User.Read.All'],
authority: "https://login.microsoftonline.com/6c20...",
redirectUri: "http://localhost:3000",
dbUrl: "https://....azurewebsites.net",
apiUrl: "https://.../",
signalRUrl: "https://.../api",
locationsUrl: "https://.../api/locations-get",
};
The text was updated successfully, but these errors were encountered: