
Hi
I am trying to filter Enabled Accounts only with Office365Users.DirectReports
I am currently using
Items = Office365Users.DirectReports(UserEmail.Text)
I not applied any filters
The Report shows all colleagues I Line Manager including disabled accounts, I only which to see Enabled Accounts
Hello,
I know you can filter on AccountEnabled for users accounts. So when you get back the list of direct reports, my guess is you can iterate through and or filter the returned list itself based on the property AccountEnabled. You might even be able to have a filter for AccountEnabled on the quer you are running.
That or worse can you would need to do searches for each user to see if they are enabled.
Office 365 Users - Connectors | Microsoft Learn
Cheers
If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
Thank You
Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
https://gernaeysoftware.com
LinkedIn: https://www.linkedin.com/in/michaelgernaey