Introduction
In this article, you will learn how to bulk suspend users by Google Groups or Organizational Units (OU) in Google Workspace. As a Google Workspace administrator, you may find yourself needing to bulk suspend users by groups or OU, whenever any department has been closed, or any contractors complete their short term contract project as a group.
Since natively suspending google groups users in bulk can be a tedious job, xFanatical Foresight can bulk suspend users by groups or OU in Google Workspace within some clicks, while maintaining data integrity and security.Illustration of bulk suspending users by group or OU with xFanatical Foresight Automation
Introducing xFanatical Foresight Automation
xFanatical Foresight is an enterprise-grade platform which helps automate and streamlines the Google Workspace workflows. In today’s fast paced business environment, efficiency is the key. xFanatical Foresight automation permits administrators and users to create intricate business workflows, which consumes a lot more time doing it natively. It simplifies the process of suspending users by group or OU in Google Workspace, so you can take care of more important tasks.
Automation Setup Instructions
Here we divided this blog in two separate sections to distinguish between Group member suspension and OU member suspension. You can take the look as per your organization needs, Set up automation for Group User Suspension and Set up automation for OU user suspension.
Suspend Users by Group
Supported plans: xFanatical Foresight Elite and Professional (Legacy).
In this workflow, admins first find out the users in a Google Group, and then suspend the users in the list by bulk with xFanatical Foresight.
Set up Automation
The workflow needs 2 rules.
- Rule 1 lists and exports members by google group to a CSV file, including the Member email, Group email and Member type. Using this rule, admins can keep only the rows they want to suspend members in the CSV file, and delete the rest.
- Rule 2 takes the extracted and edited CSV file from Rule 1 as input, and bulk suspends the members listed in the file.
Rule 1: Export group members
- Sign into xFanatical Foresight with your Google Admin account.
- Go to the Rules page, and click the
button.
- In the Select a trigger screen, select Manual Trigger.
- Click Next.
- In the Select an action screen, select the List group members action.
- In the Edit actions > List group members screen,
- If you’re using this action for the first time, you will see Sign in with Google button. Click on it, and authorize xFanatical Foresight the necessary permissions to automate on behalf of your Google account.
- In the Group email field, select the group, from which users will be suspended.
- Click Review.
- If you’re using this action for the first time, you will see Sign in with Google button. Click on it, and authorize xFanatical Foresight the necessary permissions to automate on behalf of your Google account.
- In the Review screen,
- Customize the Rule name.
- Click Create.
- Customize the Rule name.
- The first automation rule is created.
xFanatical Foresight workflow for exporting group members in Google Workspace.
Rule 2: Bulk suspend users by group
Before moving to the automation setup, download the Sample CSV file for the bulk suspend users by group automation rule creation process. Learn more about editing a CSV File in Google Sheets.
- Go to the Rules page, and click the
button.
- In the Select a trigger screen, select the Data uploaded trigger.
- In the Edit trigger > Data uploaded screen,
- Click Choose a CSV file or drop it here to get started.
- Select the downloaded CSV file.
- Wait for the CSV file to be analyzed.
- Click Next.
- Click Choose a CSV file or drop it here to get started.
- In the Select an action screen, select the Suspend user action.
- In Edit actions > Suspend user screen,
- If you’re using this action for the first time, you will see Sign in with Google button. Click on it, and authorize xFanatical Foresight the necessary permissions to automate on behalf of your Google account.
- In the Primary email field, select the Member email variable from the Data uploaded trigger.
- Click Review.
- If you’re using this action for the first time, you will see Sign in with Google button. Click on it, and authorize xFanatical Foresight the necessary permissions to automate on behalf of your Google account.
- In the Review screen,
- Customize the Rule name.
- Click Create.
- Customize the Rule name.
- The second automation rule is created.
xFanatical Foresight workflow for bulk suspending users by group in Google Workspace.
Verify Automation
To ensure that your rule setup automates as expected, it’s essential to conduct a simple test. The following instructions demonstrate how to bulk suspend users by groups using xFanatical Foresight in Google Workspace.
Before moving to verification, let’s check the group members in Google Admin Console groups page. All the group members are active.
Group settings page on Google Admin Console showing group members.
User settings page on Google Admin Console showing the user is active.
- Go to the Rules page.
- Find the Rule 1: Export group members, and click the
button.
- Wait momentarily, and you will get a notification on the top right of xFanatical Foresight. In the notification message, click View log.
- In the Logs > Log details screen, click here to download the CSV file.
- Verify the group members in the CSV file using Google Sheets.
- Go back to the Rules page.
- Find the Rule 2: Bulk suspend users by group, and click the
button.
- Select the CSV file downloaded in Step 4.
- Wait momentarily, and you will get a notification on the top right of xFanatical Foresight. In the notification message, click View log.
- In the Logs > Log details screen, confirm the CSV file name, group email, and suspended member email.
- Go back to the user’s settings page, and confirm that the user has been suspended.
Suspend Users by Organizational Unit
Supported plans: xFanatical Foresight Elite and Professional (Legacy).
In this workflow, admins first find out the users in an organizational unit, and then suspend the users in the list by bulk with xFanatical Foresight.
Set up Automation
The workflow needs 2 rules.
- Rule 1 lists and exports members by organisational unit to a CSV file, including the Email, First name and Last name. Admins can keep only the rows they want to suspend members in the CSV file, and delete the rest.
- Rule 2 takes the extracted and edited CSV file from Rule 1 as input, and bulk suspends the members listed in the file.
Rule 1: Export users in an organizational unit
- Sign into xFanatical Foresight with your Google Admin account.
- Go to the Rules page, and click the
button.
- In the Select a trigger screen, select Manual Trigger.
- Click Next.
- In the Select an action screen, select List users action.
- In the Edit actions > List users screen,
- If you’re using this action for the first time, you will see Sign in with Google button. Click on it, and authorize xFanatical Foresight the necessary permissions to automate on behalf of your Google account.
- In the Organizational unit, select the organizational unit, from which users will be suspended.
- Click Review.
- If you’re using this action for the first time, you will see Sign in with Google button. Click on it, and authorize xFanatical Foresight the necessary permissions to automate on behalf of your Google account.
- In the Review screen,
- Customize the Rule name.
- Click Create.
- Customize the Rule name.
- The first automation rule is created.
xFanatical Foresight workflow for exporting organization unit members in Google Workspace.
Rule 2: Bulk suspend users by Organizational Unit
Before moving to the automation setup, download the Sample CSV file for the bulk suspend users by organizational unit automation rule creation process. Learn more about editing a CSV File in Google Sheets.
- Go to the Rules page, and click the
button.
- In the Select a trigger screen, select the Data uploaded trigger.
- In the Edit trigger > Data uploaded screen,
- Click Choose a CSV file or drop it here to get started.
- Select the downloaded CSV file.
- Wait for the CSV file to be analyzed.
- Click Next.
- Click Choose a CSV file or drop it here to get started.
- In the Select an action screen, select the Suspend user action.
- In Edit actions > Suspend user screen,
- If you’re using this action for the first time, you will see Sign in with Google button. Click on it, and authorize xFanatical Foresight the necessary permissions to automate on behalf of your Google account.
- In the Primary email field, select the Email variable from the Data uploaded trigger.
- Click Review.
- If you’re using this action for the first time, you will see Sign in with Google button. Click on it, and authorize xFanatical Foresight the necessary permissions to automate on behalf of your Google account.
- In the Review screen,
- Customize the Rule name.
- Click Create.
- Customize the Rule name.
- The second automation rule is created.
xFanatical Foresight workflow for bulk suspending users by organization unit in Google Workspace.
Verify Automation
To ensure that your rule setup automates as expected, it’s essential to conduct a simple test. The following instructions demonstrate how to bulk suspend users by OU using xFanatical Foresight in Google Workspace.
Before moving to verification, let’s check the OU member in Google Admin Console. Go to the user settings page, who belongs to the specified OU. Confirms that the user is active.
- Go to the Rules page.
- Find the Export organizational unit members rule, and click the button.
- Wait momentarily, and you will get a notification on the top right of xFanatical Foresight. In the notification message, click View log.
- In the Logs > Log details screen, click here to download the CSV file.
- Go back to the Rules page.
- Find the Bulk suspend users by OU rule, and click the
button.
- Select the CSV file downloaded in Step 4. Learn more about Editing CSV Files in Google Sheets.
- Wait momentarily, and you will get a notification on the top right of xFanatical Foresight. In the notification message, click View log.
- In the log screen, confirm the CSV file name, and user email.
- Go back to the user’s settings page, and confirm that the user has been suspended.
Conclusion
xFanatical Foresight streamlines the process of suspending users by group or OU in Google Workspace. A step-by-step guide is available to ensure data integrity and security are maintained during the suspension process. Using xFanatical Foresight, you can effortlessly manage and organize your group members, and invest valuable time for more important tasks.
If you have yet to install xFanatical Foresight, check out this quick start.
Try a 14-day free trial with xFanatical Foresight and manage your tasks.