Forum Discussion
Alert for New Added User
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.
- Hello, you can use the "legacy" activity alerts https://compliance.microsoft.com/managealerts
- pvanberloSteel ContributorThere are no "out of the box" alerts around new user creation unfortunately. What you could do is leverage the Graph API and subscriptions to monitor user changes, or alternatively you can use the audit log to search for any activities for new user creation during a specific period. The latter would be a manual action, and the first would be complex to do unfortunately.
- HappyterCopper ContributorThanks for your reply, I will be going with the manual action for now as I'm still new with the admin center.
- pvanberloSteel Contributor
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.
- Hello, you can use the "legacy" activity alerts https://compliance.microsoft.com/managealerts
- pvanberloSteel Contributor
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 🙂
- Yeah the portals and all the moving around is quite a mess really 🙂 I'm pretty sure there's work in progress though.
- HappyterCopper Contributor
ChristianJBergstrom Thank you for your reply, I've proceed and created the rule, hope it works well.
- Let me know if it fits your business needs and if so please "mark as best response" to close the conversation. Thanks.
- maryhudson2225Copper ContributorHello, you can use the "legacy" activity alerts https://compliance.microsoft.com/managealerts
- Jeff12190Copper Contributor
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