cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dave8
Impactful Individual
Impactful Individual

How to pull list of all office 365 users list in PowerApps?

Hello,

 

I want to display list of all office 365 users in dropdown list by default.

 

I have tried, following formula, but it only displays the list of user having "John" character, how can I by default pull list of all Office 365 user?

 

Office365Users.SearchUser({searchTerm:"John"}).Mail

 

How can I achieve that?

 

Thanks

3 REPLIES 3
VijayTailor
Resident Rockstar
Resident Rockstar

Hi Dave,

you can use formula Like below also.


Filter(Office365Users.SearchUser(), OfficeLocation <>Blank())

Hope it will resolve your issue.

VijayTailor_0-1600683219519.png

 

dave8
Impactful Individual
Impactful Individual

Hi @VijayTailor 

 

This still doesn't shows all users as it only shows based on search criteria. I require to have list of all default O365 users which could be more than 10K+ users considering that canvas app has 2000 records limitations to fetch.

 

Thanks,

 

 

 

 

 

 

VijayTailor
Resident Rockstar
Resident Rockstar

Hi,
Hope this below solution help you to resolve your issue.

This is the Code Used for that - 
Filter(Office365Users.SearchUser({searchTerm:TextInput3.Text, top:999}), OfficeLocation <>Blank())

VijayTailor_1-1600688239245.png

 



Please Find the below link for Demo.


https://drive.google.com/file/d/1QeM2qp9qTWGFqSuTMb7_OHYbneAjF8yz/view

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (30,526)