Introduction
This blog explains how to schedule the bulk suspension of users in a specific organizational unit (OU) in Google Workspace using xFanatical Foresight as an administrator. In large organizations, managing account suspensions for hundreds or thousands of users can be a repetitive and time-consuming task, especially when the suspension needs to happen at a specific time. One key reason to automate bulk suspensions is to make sure accounts are turned off exactly when they should be, like when a project wraps up, a semester ends or a contractor’s work is finished. This keeps your workspace secure, blocks unauthorized access and ensures your user directory stays up to date.
With xFanatical Foresight, administrators can automate the scheduling of bulk user suspensions in an OU. By automating this process, IT teams can eliminate manual errors, save valuable time and maintain compliance with organizational security policies without constant oversight.
Illustration of how xFanatical Foresight automates scheduling bulk user suspension in an organizational unit.
Introducing xFanatical Foresight Automation
xFanatical Foresight is a powerful automation platform designed specifically for Google Workspace. It enables administrators to schedule the suspension of multiple Google Workspace users in a specific organizational unit effortlessly. Instead of manually suspending accounts one by one through the Google Admin Console, you execute bulk suspensions at a specific time. With xFanatical Foresight’s user-friendly interface and powerful automation, the entire process is fast, accurate and hassle-free, saving time and improving overall account management efficiency.
Automation Setup Instructions
In this section, we guide you through the automation setup in xFanatical Foresight. We have 2 ways to set up automation rules, Set up automation from a template and Set up automation from scratch. After completing the automation rule, verify whether the automation meets your requirements.
Set Up Automation From a Template
Supported plans: xFanatical Foresight Elite plan.
The template is designed with two rules to simplify and streamline the bulk suspension of users in a specific Organizational Unit (OU):
- Rule 1: This rule handles the suspension of users whose primary email addresses are listed in a CSV file. The CSV file is automatically generated by Rule 2, ensuring that the correct users are targeted without manual selection.
- Rule 2: This rule schedules the process by generating the CSV file of users in the selected OU and sending it to Rule 1 at the specified date and time.
Rule 1: Bulk suspend users in Google Workspace
- Sign into xFanatical Foresight with your Google Admin account.
- Go to the Templates page.
- Search for Schedule bulk user suspension in an organizational unit and click on it.
- In the Templates > Schedule bulk user suspension in an organizational unit page, click Copy Rule 1.
- For the first time use of the template rule, an dialog Action needed will display requesting necessary permissions required to copy the rule. Click Connect with Google and authorize the permissions.
- Upon authorization, a dialog titled Copy of bulk suspend users in Google Workspace will display.
- Click Next. No configurations required.
- Click Review.
- In the Review screen,
- In Rule name, customize the automation rule name.
- Click Create.
- The rule is created in the Rules page.
xFanatical Foresight rule graph for bulk suspending users in an organizational unit.
Rule 2: Schedule exporting all users in an OU
- In the Templates > Schedule bulk user suspension in an organizational unit page, click Copy Rule 2.
- In the Edit trigger> Time screen,
- In the Tigger time field, select the scheduled time to automatically retrieve users from the selected OU, generate a CSV file and suspend the listed users at the specified time.
- Click Next.
- In the Edit actions > List users screen,
- In the Organizational unit field, select the Organizational Unit (OU) containing the users you want to suspend.
- In the Edit actions > Upload data to rule screen,
- In the Rule field, select the previously copied Rule 1. If Rule 1 has not yet been copied, create it before proceeding.
- Click Review.
- In the Review screen,
- In Rule name, customize the automation rule name.
- Click Create.
- The rule is created in the Rules page.
xFanatical Foresight rule graph illustrating the scheduled automation of uploading user data to trigger the corresponding rule.
Set Up Automation From Scratch
Supported plans: xFanatical Foresight Elite and Professional (Legacy).
To automate bulk user suspension from scratch, you will configure three rules. First, a preliminary rule is used to generate the initial CSV file for setting up the suspension rule. Then, you will configure the primary automation rules: one for suspending users and another for scheduling the export and upload of user data to first rule.
Prerequisite rule: Generate sample user list CSV
- Sign into xFanatical Foresight with your Google Admin account.
- Go to the Rules page and click button.
- In the Select a trigger screen, select the Manual trigger.
- Click Next.
- In the Select an action screen, select the List users action.
- When using the action for the first time, you may not have the required access permissions. Click Sign in with Google and grant the necessary authorizations to proceed.
- In the Edit actions > List users screen,
- In the Columns field, select the required columns you want to export.
- In the Organizational unit field, select the Organizational Unit (OU) containing the users you want to suspend.
- Click Review.
- In the Review screen,
- In Rule name, customize the automation rule name.
- Click Create.
- The rule is created in the Rules page.
- Click on the
icon to trigger the rule and get the list of users.
- Once you receive the notification in the top-right corner of xFanatical Foresight, open the log and download the CSV file.
Rule 1: Bulk suspend users in Google Workspace
Next, configure a second rule to bulk suspend users in Google Workspace.
- Click the New Rule button.
- In the Select a trigger screen, select the Data uploaded trigger.
- In the Edit triggers > Data uploaded screen,
- Select the CSV file downloaded within Rule 1.
- Click Next.
- In the Select an action screen, select the Suspend user action.
- In the Edit actions > Suspend user screen,
- In the Primary email field, select Email variable from Data uploaded trigger.
- Click Review.
- In the Review screen,
- In Rule name, customize the automation rule name.
- Click Create.
- The rule is created in the Rules page.
xFanatical Foresight rule graph illustrates the bulk suspension of users in Google Workspace.
Rule 2: Schedule exporting all users in an OU and upload to Rule 1
Next, configure a third rule to automate the scheduled upload of data, triggering the specified rule at the designated time.
- Click the New Rule button.
- In the Select a trigger screen, select the Time trigger.
- In the Edit trigger>Time screen,
- In the Tigger time field, Select the exact date and time when the users in the specified Organizational Unit should be suspended from Google Workspace.
- Click Next.
- In the Select an action screen, select the List users action.
- In the Edit actions > List users action screen,
- In the Columns field, select the required columns you want to export.
- In the Organizational unit field, select the Organizational Unit (OU) containing the users you want to suspend.
- Click Add Next Action.
- In the Select an action screen, select the Upload data to rule action.
- In the Edit actions > Upload data to rule action screen,
- In the CSV file URL field, select users CSV download link variable from List users action.
- In the Rule field, select the rule Bulk suspend users in Google Workspace.
- Click Review.
- In the Review screen,
- In Rule name, enter a rule name.
- Click Create.
- The rule is created in the Rules page.
xFanatical Foresight rule graph for scheduling export of all the users in an OU.
Verify Automation
To ensure your rule setup automates as expected, it’s crucial to perform a simple test. The following instructions demonstrate how xFanatical Foresight automates the process of scheduling bulk user suspensions within a specific Organizational Unit (OU).
Before starting the automation, go to Google Admin Console > Users > {User Name}. Confirm that the selected user from the targeted OU is currently active and not suspended. This ensures you can clearly see the suspension change when the rule executes.
Note: For demonstration purposes, we set the Trigger time field in the Time Trigger to 15 minutes from now.
- Go to xFanatical Foresight.
- Go to the Rules page.
- At the scheduled time, Rule 2 will automatically execute and upload the CSV file to Rule 1 for further processing.
- Wait for the scheduled time and once Rule 2 is triggered, you’ll receive a notification in the top right corner of xFanatical Foresight. Click View log.
- In the Logs > Log details page, the Rule history section explains the automation history and task xFanatical Foresight has automated on behalf of your Google account.
- After Rule 2 completes execution, Rule 1 will automatically begin processing the uploaded CSV file.
- Wait until the CSV file is processed. You’ll receive another notification for Rule 1. Click View log to confirm successful execution.
- In the Logs > Log details page, the Rule history section explains the automation history and task xFanatical Foresight has automated on behalf of your Google account.
- Go to Google Admin Console > Users > {User Name}. Verify that the user from the specified Organizational Unit (OU) has been suspended by the automation.
Notes
- Once the automation rules are established, xFanatical Foresight will automatically suspend users in the selected Organizational Unit (OU) at the configured time.
- At each time a rule is executed, you will receive a notification in the app indicating what happened with your rules and whether the suspensions were carried out successfully.
- The rule execution and CSV processing may take a few minutes to complete as the system processes the file and updates account statuses efficiently.
- The workflow does not delete user accounts, it only suspends them, revoking their access while retaining their data in Google Workspace.
- The Rule 1: Bulk suspend users in an Organizational Unit must be created before Rule 2. Otherwise, Rule 2 cannot find Rule 1 to upload the CSV file.
Conclusion
In conclusion, automating bulk user suspensions in a Google Workspace Organizational Unit with xFanatical Foresight makes managing accounts faster, easier and more reliable. It takes the manual work out of suspending users, helping admins save time, avoid mistakes and stay on top of security and policy requirements. With this automation in place, you can be confident that user access is handled quickly, consistently and without the usual administrative hassle.
Try a 14-day free trial with xFanatical Foresight and manage your tasks.
Related Articles
- Suspend Google Workspace users by Schedule
- How to Bulk Suspend Users in Google Workspace
- Automatically Suspend Inactive Users in Google Workspace
For more article please visit our website: Articles