cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Prodigy
Post Prodigy

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
Highlighted
Memorable Member
Memorable Member

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

Hi Dave,

you can use formula Like below also.


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

Hope it will resolve your issue.

VijayTailor_0-1600683219519.png

 

Highlighted
Post Prodigy
Post Prodigy

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

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,

 

 

 

 

 

 

Highlighted
Memorable Member
Memorable Member

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

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
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,702)