Forum Discussion

EMIL_K_DIT's avatar
EMIL_K_DIT
Copper Contributor
Nov 28, 2022

PnP Query template to hide all inactive/blocked users?

We're building a People directory, but I can't hit the right query to hide users that are no longer with the company. 

I have several ways I can filter this;

1. If the user is part of a group

2. If the users sign-in is blocked

I have tried to target the following: 
user.isActive:"True"

user.Group:"INSERT ALL_GROUP FROM AAD HERE". 

 

None of these seems to work - any hints here? 

Any help appreciated, thanks! 

No RepliesBe the first to reply

Resources