cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
harvinb
Level: Powered On

How to display all users from Office365

How to display all users from Office365 connector to a Gallery or Collection?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: How to display all users from Office365

Hi @harvinb,

 

Symptom confirmed.

 

It should be a current configuration (Max count hardcoded) for the searchuser function.

 

I will submit this as a content feedback, to suggest updating this information under the following page:

Office 365 Users

 

In addition to this function, please take a try with the Azure AD connection, take use of the Getgroupmembers() function, if this still can't meet the requirements, then you may consider build up your own custom API;

https://outlook.office.com/api/beta/me/people/?$top=1000&$Select=DisplayName

API reference:

Outlook People REST API reference(Preview)

Register and use custom connectors in PowerApps

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
11 REPLIES 11
Community Support Team
Community Support Team

Re: How to display all users from Office365

Hi @harvinb,

 

Take a try with the Office365Users.SearchUser() function, under the items property of the Gallery control, copy and paste the following:

Office365Users.SearchUser({searchTerm:""})

Which should be able to display an Office 365 User List.

72.PNG

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
harvinb
Level: Powered On

Re: How to display all users from Office365

@v-micsh-msftThanks for that.

I have tried that and it only gives me 100 items.

I actually need to display all users that are member of a certain CompanyName.

I did tried Filter(Office365.SearchUser({searchTerm:""}), CompanyName="Company").

But it only grab users that are in that company based on the result of the 100 items I get from SearchUser.

Community Support Team
Community Support Team

Re: How to display all users from Office365

Hi @harvinb,

 

Symptom confirmed.

 

It should be a current configuration (Max count hardcoded) for the searchuser function.

 

I will submit this as a content feedback, to suggest updating this information under the following page:

Office 365 Users

 

In addition to this function, please take a try with the Azure AD connection, take use of the Getgroupmembers() function, if this still can't meet the requirements, then you may consider build up your own custom API;

https://outlook.office.com/api/beta/me/people/?$top=1000&$Select=DisplayName

API reference:

Outlook People REST API reference(Preview)

Register and use custom connectors in PowerApps

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
harvinb
Level: Powered On

Re: How to display all users from Office365

@v-micsh-msftThanks for that.

I will give that Azure connector a try.

Anonymous
Not applicable

Re: How to display all users from Office365

Has anyone figured out how to get more than 100 records?

johnmacabar
Level: Power Up

Re: How to display all users from Office365

Have you sorted this out yet harvinb?

 

Same issue here.

harvinb
Level: Powered On

Re: How to display all users from Office365

Hi @johnmacabar I used Azure connector and that solved the issue with the search.

sips1
Level: Powered On

Re: How to display all users from Office365

Hi @harvinb , it would be great if you could give further details on the formula you used to return a list of all users as I have the same requirement.

 

Was it the Azure AD connector?

 

Thanks!

Ptiwari
Level: Powered On

Re: How to display all users from Office365

We are trying to find the solution for:

How to count all users from Office 365?

Any help is much appreciated.

Thanks