web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Use Office365Users.Dir...
Power Apps
Answered

Use Office365Users.DirectReportsV2 to get only enabled users?

(0) ShareShare
ReportReport
Posted on by 834

hi, 

i want to use the Office365Users.DirectReportsV2 but get only enabled accounts, how do i do that? I would assume to use filter but its a bit tricky...

here my example (in this case i am pulling UPN from people picker, thats why the substitute)... this way i get the enabled accounts but it displays me, quite logically only status true, instead of display name...

Filter((Office365Users.DirectReports(Substitute(user.Selected.Claims,"i:0#.f|membership|","")).AccountEnabled), AccountEnabled = true)

 

Categories:
I have the same question (0)
  • Verified answer
    CU-18081211-6 Profile Picture
    9,272 Moderator on at

    Hi @Sifu,

     

    Can you try to see if this formula help you to achieve your goals?

     

    Filter((Office365Users.DirectReportsV2(Substitute(user.Selected.Claims,"i:0#.f|membership|","")).value), accountEnabled )

     

     Hope it helps !

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 316 Most Valuable Professional

#2
11manish Profile Picture

11manish 242

#3
Valantis Profile Picture

Valantis 198

Last 30 days Overall leaderboard