Forum Discussion
papagolf
Feb 18, 2022Copper Contributor
Looping through watchlists
I'm not sure if what I'm trying to do is feasible/possible, but I thought I'd ask. I have a KQL query that returns data (which is a first) SigninLogs
| where UserPrincipalName != ''
| lookup k...
papagolf
Feb 18, 2022Copper Contributor
Thanks for the suggestions,
The csv file is nothing more than a single column of email addresses.
As for why I chose this route, it’s more that I couldn’t figure out the best way to do it. I started with the external data, moved to a watchlist, read lots of blogs but nothing is quite giving me the data I’m expecting.
The goal here is to take the list of 300 users in the csv, query the IPs they’ve logged in from so that I can build a conditional access policy around those IPs.
The problem I’m having is I’m not getting back anywhere near the level of data I’m expecting.
The csv file is nothing more than a single column of email addresses.
As for why I chose this route, it’s more that I couldn’t figure out the best way to do it. I started with the external data, moved to a watchlist, read lots of blogs but nothing is quite giving me the data I’m expecting.
The goal here is to take the list of 300 users in the csv, query the IPs they’ve logged in from so that I can build a conditional access policy around those IPs.
The problem I’m having is I’m not getting back anywhere near the level of data I’m expecting.
GaryBushey
Feb 22, 2022Bronze Contributor
Try using a join instead of a lookup and see if that works better since the data coming from your Watchlist is a table.