cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Filtering Office365Users.Searchusers by organizational unit in Active Directory

Is there a way to Filter Office365Users.SearchUsers by organizational unit in Active Directory?

 

I want to limit my search to OU = Employees but adding this to the ??? doesn't work (see below)

 

Filter(Office365Users.SearchUser({searchTerm:TextInput_EmployeeName.Text}), AccountEnabled=true,???)

 

Any ideas?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Power Apps
Power Apps

Re: Filtering Office365Users.Searchusers by organizational unit in Active Directory

Hi @mgovatos,

The SearchUsers action can search against fields like display name, first name, email, etc, but organizational unit and department are not part of that.

 

Depending on your scenario, you can likely achieve this without needing to use the Office365Users connector.

 

For instance, if what you're trying to achieve is to get a list of multiple people from the organizational unit and they belong to the same Office Group, you could use the Office365Groups connector.

 

If they belong to the same Security Group, you could use the Azure AD connector to get members.

View solution in original post

1 REPLY 1
Highlighted
Power Apps
Power Apps

Re: Filtering Office365Users.Searchusers by organizational unit in Active Directory

Hi @mgovatos,

The SearchUsers action can search against fields like display name, first name, email, etc, but organizational unit and department are not part of that.

 

Depending on your scenario, you can likely achieve this without needing to use the Office365Users connector.

 

For instance, if what you're trying to achieve is to get a list of multiple people from the organizational unit and they belong to the same Office Group, you could use the Office365Groups connector.

 

If they belong to the same Security Group, you could use the Azure AD connector to get members.

View solution in original post

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,650)