People Picker is not working after publish
I am using mgt People picker to fetch users from Azure AD, however the people picker is not fetching any user from that tenant. When I check the Network tab on browser console I find out that the people picker is only sending request to graph/me/people?filter=startswith('A') where I checked the network tab for working solution it makes two request to graph api
- graph/me/people to fetch relevance contacts
- graph/me/contacts.
the only difference in both work and non working solution is that the solution where it is not working has two tenants 1 where App registration resides and 2nd where the resource group resides.
Hello kandari7, 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 🙌
Hi @kandari7
can you provide more details on this issue or a repro? We are unable to provide help with the information given.
@vogtn have updated the question.
Thanks @kandari7,
Just to confirm: The implementation of the people pickers in both instances are exactly the same, however your tenants (different tenants) are yielding different results of searched people. In this case no users are found at all.
The people-picker itself doesn't yield person searching results from the graph/me/contacts endpoint. That's probably the mgt-person component, which renders the person results, looking for photos.
Instead the people-picker by default uses:
-
findPeople with the me/people endpoint
Do the tenant in the non working case result in users in the graph explorer?
visit: https://developer.microsoft.com/en-us/graph/graph-explorer
sign in and run querys:
https://graph.microsoft.com/v1.0/me/people
https://graph.microsoft.com/v1.0/users
Thanks @vogtn ,
I've tried both the queries as suggested by you, please find the response below from the queries.
https://graph.microsoft.com/v1.0/me/people - this returns 2result one is logged in user and other all company
https://graph.microsoft.com/v1.0/users - this returns all the user in the tenant.
We're looking into how we can replicate this properly to silo the issue. Just to make sure the aad app itself is setup for mulitentant use:

any other information or replication info please update here. We'll update once we are able to replicate and determine a solution from there.
yes, the Supported account type is Any Azure AD directory - Multitenant. will it be possible to connect over a call?
Ok great just confirming the details.
On our own, we are able to setup an tenant[tenant-1] with Multitenant and login from another tenant[tenant-2] into the tenant-1 client id. With tenant-2 you can use the people-picker to pick the people from the tenant-2 's accessible users.
Yes we can connect over a call, feel free to search my profile for contact and then we can set up something, I think we'll need to gather more information either way. 😃
One more thing that I noticed is I am not able to fetch the users MS Teams. I've mailed you from my personal email address. Please let me know when can we connect.
@kandari7 and @vogtn, I encourage you to keep the conversation in the open here on GitHub so we can ensure it is helpful for others in the community.
@kandari7, it is not clear how you've setup your solution and we need your help to be able to reproduce this issue. What would help is for you to provide a step by step repro of your setup so we can replicate it in our own environment. Things like your auth code and use code of the components will go a long way here.
@nmetulev agree, will it be possible for you to share your email address, I will mail you the deployment document that I have created
You can send me files here
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.
Hi @nmetulev I've uploaded the document in the shared link.
Thanks @kandari7 - I appreciate that you shared your instructions. However, the instructions are very involved and require setting up several azure services and configurations - it would be a huge time investment for us. The instructions also don't include any code which makes it difficult to understand how the toolkit is used.
I need your help to reduce the issue to a simple and reproducible project that we can quickly run and validate. If that's not easy to do, then I need your help to debug the issue - are you able to call the graph yourself? what are the requests and responses you get from the components? how are you authenticating - are you able to sign in? can you make the same request in graph explorer, and do they work?
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.