Aug 15 2021 06:20 PM
I can't find any resources/guide to create/enable/turn-on an alert for newly added users. Is there such a thing in Office 365 admin center?. I want to monitor newly added user on my domain, and review it if it's valid or not.
Aug 15 2021 10:36 PM
Aug 16 2021 12:09 AM
Aug 16 2021 12:33 AM
SolutionAug 16 2021 12:33 AM
@Happyter Once you feel more comfortable with this, a simpler script and Graph API approach could be to use the Graph PowerShell module, the createdDateTime attribute of the user resource. This way you could script this, run the script in scheduled manner and get some kind of output.
Have a look at the Get-MgUser cmdlet. If you run it like:
$Date = (Get-Date).ToUniversalTime().AddMinutes(-15).ToString("yyyy-MM-ddTHH:mm:ssZ")
$NewUsers = Get-MgUser -Filter "createdDateTime ge $Date" -ConsistencyLevel eventual -CountVariable ResultCount
if ($ResultCount -gt 0) {
$NewUsers
}
Would return a list of all users created in the past 15 minutes. You could extend this to take some action like send an email, and schedule the script to run regularly.
Aug 16 2021 12:37 AM - edited Aug 16 2021 12:39 AM
Forgot about that page! Why on earth they removed the activity for "Added user" on the new policy page is beyond me 😞 Let's hope this is still "work in progress" and it'll re-appear someday 🙂
Aug 16 2021 12:47 AM
Aug 16 2021 02:28 AM
@ChristianJBergstrom Thank you for your reply, I've proceed and created the rule, hope it works well.
Aug 16 2021 03:18 AM
Aug 16 2021 07:53 AM - edited Aug 16 2021 07:59 AM
Apr 22 2023 02:00 PM
@Happyter I can't find any resources/guide to create/enable/turn-on an alert for newly added users. Is there such a thing in Office 365 admin center?. I want to monitor newly added user on my domain, and review it if it's valid or not. Download Blackmart for android latest version
Aug 16 2021 12:33 AM
Solution