Alert on Privileged Role Account Creation Crate
What does the Alert on Privileged Role Account Creation Crate do?
Our Alert on Privileged Role Account Creation Crate helps identify newly created administrator accounts in your Microsoft 365 environment. By monitoring specific admin roles and comparing them against a configurable audit window, this Crate provides timely alerts via PSA tickets and helps catch unauthorized or unexpected account creations early on.
The Alert on Privileged Role Account Creation Crate only reports newly created admin accounts. It does not perform any deletion actions.
How the Crate works
Lists users from Microsoft Graph, then filtered by the specified admin role names
Compares account creation dates against the defined audit window to identify newly created admin accounts
Generates PSA tickets that detail the new admin accounts detected during the audit window
The Crate workflow is triggered by a cron trigger based on the configured schedule.
Crate prerequisites
The Microsoft Cloud Integration Bundle must be set up before unpacking this Crate.
Your PSA must be successfully integrated with Rewst.
Workflow breakdown
The workflow begins with the START task using the noop action, which serves as the entry point and initializes the monitoring process for new administrator accounts.
The get_audit_logs task executes the Microsoft Graph API Get Audit Logs action to retrieve recent audit log entries from Microsoft 365 that contain administrative role assignments and account creations.
The filter_admin_events task uses the Filter List action to identify events specifically related to new administrator account creations or role assignments within the specified time period.
The check_for_new_admins task runs the conditional logic action to determine if any new administrator accounts have been created or if existing accounts have been granted administrative privileges.
The validate_admin_changes task executes the Microsoft Graph API Get User action to retrieve detailed information about the newly created or modified administrator accounts.
The assess_risk_level task uses the Set Variable action to evaluate the risk level of the new administrator accounts based on factors like creation time, assigned roles, and account properties.
The generate_alert_data task runs the Transform Data action to compile comprehensive information about the new administrator accounts including user details, assigned roles, and creation timestamps.
The create_psa_ticket task executes the PSA Create Ticket action to generate a security alert ticket documenting the new administrator account creation for review and approval.
The send_notification task uses the Send Email action to notify security personnel and administrators about the new administrator account creation via email alert.
The workflow concludes with the END task using the noop action, completing the monitoring and alerting process for new Microsoft 365 administrator accounts.
Unpack the Alert on Privileged Role Account Creation Crate
Navigate to Crates > Crate Marketplace in the left side menu Rewst platform.
Search for
Alert on Privileged Role Account Creation.
Click on the Crate tile to begin unpacking.
Click Unpack Crate.
Click Continue.
Ensure that Enabled is toggled on for Cron Job under Configure Triggers. Note that you have the option under the accordion menu of the trigger to activate the Crate for all future organizations in addition to the current one. You may also set the trigger criteria or integration overrides.
Click Unpack.
Test the Crate
To test this Crate, you'll need to adjust the cron trigger's schedule to a few minutes in the future, then adjust it back to your regular schedule after the test. Alternatively, you could wait until the regularly scheduled run occurs and check your result, which would not require you to update the cron trigger schedule.
Navigate to Automations > Workflows in the left side menu of your Rewst platform.
Search for
[REWST - PROC] Alert on Users Without MFA Enforced.
Click on the workflow to view it in the Workflow Builder.

Adjust the cron trigger's schedule to five minutes from your current time. The workflow will run on its own. Check in your PSA's portal to ensure that the workflow is able to detail the new admin accounts detected during the audit window as expected.
Update the cron trigger schedule
The Crate runs on a cron trigger, and will execute the workflow to generate the ticket at the same time each day. You can adjust the chosen time for execution in the workflow itself. Edit a cron trigger in the workflow to change the timing of when it will routinely run.
Navigate to Automations > Workflows.
Search for
[REWST - CRATE] M365: Alert on New Admin Accounts.Click on the workflow to open it in the Workflow Builder.
Click
to open the edit trigger menu.

Update the timing of the cron trigger as desired in the fields under Trigger Parameters. Note that when entering the time into the Cron Schedule field, the correct format is minutes followed by hour. For example, 18 3, not 3 18.
Click Submit.
Last updated
Was this helpful?

