Introduction 

This blog explains how to automatically suspend or reactivate Google Workspace users based on changes to their Organizational Unit (OU) using xFanatical Foresight. Managing user access is an important part of Google Workspace administration, especially when employees change roles, leave the organization temporarily or require restricted access due to compliance or security requirements. While Organizational Units help organize users and apply policies, moving users between OUs does not automatically suspend or reactivate their accounts.

As a result, administrators must perform additional manual steps after every OU change. In organizations where users are frequently moved between departments, locations or policy groups, this process can become repetitive and prone to mistakes. Delays in suspending accounts may leave unnecessary access active, while delays in reactivating users can impact productivity and create support requests.

With xFanatical Foresight, administrators can automate user suspension and reactivation based on OU changes. When a user is moved into a designated suspension OU, the account is automatically suspended. When the user is moved out of that OU, the account is automatically reactivated. This automation reduces administrative effort, improves security and ensures user access changes happen immediately and consistently.

Auto Suspend/Reactivate Users by OU Changes with xFanatical Foresight

Illustration of how xFanatical Foresight automatically suspends and reactivates users based on Organizational Unit changes.

Introducing xFanatical Foresight Automation

xFanatical Foresight is a powerful automation platform designed specifically for Google Workspace. It enables administrators to automate user lifecycle management tasks without manual intervention. Instead of monitoring OU changes and manually updating account status, administrators can create automation rules that respond instantly whenever a user is moved between Organizational Units.

Using xFanatical Foresight, organizations can automatically suspend users moved into a designated suspension OU and automatically reactivate users moved out of that OU. 

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

Set Up Automation From a Template

Supported plans: xFanatical Foresight Elite plan.

The template is designed with two rules to automate user account status management based on Organizational Unit changes:

  1. Rule 1: Suspend user by changing OU – This rule automatically suspends a user when the user is moved into a designated suspension Organizational Unit.
  2. Rule 2: Reactivate user by changing OU – This rule automatically reactivates a suspended user when the user is moved out of the designated suspension Organizational Unit.


Rule 1: Suspend user by changing OU

  1. Sign into xFanatical Foresight with your Google Admin account. 
  2. Go to the Templates page.
  3. Search for Auto suspend/reactivate users by changing users’ OU and click on it.
    In the Templates > search for Auto suspend/reactivate users by changing users' OU.
  4. In the Templates > Auto suspend/reactivate users by changing users’ OU page, click Copy Rule 1.
    In the Templates > Auto suspend/reactivate users by changing users' OU, click the Copy rule to duplicate the automation in xFanatical Foresight.
  5. 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.
  6. Upon authorization, a dialog titled Copy of Suspend user by changing OU will display.
  7. In the Edit trigger > User’s organizational unit changed screen,
    Configure OU in User's organizational unit changed trigger of Rule 1.
    1. In the New organizational unit field, select the path of the OU where users should be suspended. This is the destination OU. For example – /Suspended Users
    2. Click Next.
  8. Click Review.
  9. In the Review screen,
    In the Review page, provide rule name and create the rule.
    1. In Rule name, customize the automation rule name.
    2. Click Create.
  10. The rule is created in the Rules page.
xFanatical Foresight rule graph automates the suspension of users based on OU.

xFanatical Foresight rule graph illustrating automatic suspension of users based on OU.

Rule 2: Reactivate user by changing OU

  1. In the Templates > Auto Suspend/Reactivate Users by Changing Users’ OU page, click Copy Rule 2.
    : In the Templates > Auto suspend/reactivate users by changing users' OU, click the Copy rule 2 to duplicate the automation in xFanatical Foresight.
  2. In the Edit trigger > User’s organizational unit changed screen,
    Configure OU in User's organizational unit changed trigger of Rule 2.
    1. In the Present organizational unit field, select the same Organizational Unit used for suspending users in Rule 1. For Example: /Suspended Users
    2. Click Next.
  3. Click Review.
  4. In the Review screen,
    In the Review page, provide rule name and create the rule to reactive users
    1. In Rule name, customize the automation rule name.
    2. Click Create.
  5. The rule is created in the Rules page.
 xFanatical Foresight rule graph automates the reactivation of users based on OU.

xFanatical Foresight rule graph illustrating automatic reactivation of users when moved out of a designated Organizational Unit.

Set Up Automation From Scratch

Set Up Automation From Scratch

Supported plans: xFanatical Foresight Elite and Professional (Legacy).

Rule 1: Suspend user by changing OU

  1. Sign into xFanatical Foresight with your Google Admin account. 
  2. Go to the Rules page. 
  3. Click the New Rule new rule button.
  4. Select User’s organizational unit changed trigger from the Select a trigger screen.
    Select User's organizational unit changed trigger from the Select a trigger screen.
  5. In the Edit trigger > User’s organizational unit changed screen,
    Configure OU in User's organizational unit changed trigger of Rule 1.
    1. In the New organizational unit field, select the path of the OU where users should be suspended. This is the destination OU. For example – /Suspended Users
    2. Click Next.
  6. In the Select an action screen, select Suspend user action.
     Select suspend user trigger from the Select a trigger screen
  7. In the Edit actions > Suspend user screen,
     Configure suspend user action.
    1. In the Primary email field, select the User primary email variable from the User’s organizational unit changed trigger.
    2. Click Review.
  8. In the Review screen,
     In the Review page, provide rule name and create the rule.
Show less
    1. In Rule name, give your rule a name for easy identification.
    2. Click Create.
  9.  The automation rule is created.

xFanatical Foresight rule graph automates the suspension of users based on OU.
xFanatical Foresight rule graph illustrating automatic suspension of users based on OU.

Rule 2: Reactivate user by changing OU

  1. Go back to the Rules page. 
  2. Click the New Rule new rule button.
  3. Select User’s organizational unit changed trigger from the Select a trigger screen.
    Select User's organizational unit changed trigger from the Select a trigger screen.
  4. In the Edit trigger > User’s organizational unit changed screen,
    Configure OU in User's organizational unit changed trigger of Rule 2.
    1. In the Present organizational unit field, select the same Organizational Unit used for suspending users in Rule 1, which indicates users moving out from a specific OU. For Example: /Suspended Users
    2. Click Next.
  5. In the Select an action screen, select Reactivate user action.
     Select reactivate user action.
  6. In the Edit actions > Reactivate user screen,
    Configure reactivate user action.
    1. In the Primary email field, select the User primary email variable from the User’s organizational unit changed trigger.
    2. Click Review.
  7. In the Review screen,
    In the Review page, provide rule name and create the rule to reactive users.
    1. In Rule name, customize the automation rule name.
    2. Click Create.
  8. The rule is created in the Rules page.
automatic reactivation of users when moved out of a designated Organizational Unit.

xFanatical Foresight rule graph illustrating automatic reactivation of users when moved out of a designated Organizational Unit.

Verify Automation

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 automatically suspends and reactivates users based on Organizational Unit changes.

Verify User Suspension 

Before starting the automation, go to Google Admin Console > Users > {User Name}. Confirm that the user is currently active and not suspended.
 Verify if the user is active and in different OU.

  1. Go to Google Admin Console and move the user into the Organizational Unit configured in Rule 1. For Example: Move the user from /IT to /Suspended Users.
  2. Wait a few moments for the trigger to detect the Organizational Unit change.
  3. You’ll receive a notification in the top right corner of xFanatical Foresight. Click View log.
    A notification on the completion of rule execution of suspend users.
  4. 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.
    Logs detailed page for suspending users based on OU change.
  5. Return to Google Admin Console > Users > {User Name}. Verify that the user from the specified Organizational Unit (OU) has been suspended by the automation.
    Verification image for suspending user based on OU

Verify User Reactivation

  1. In Google Admin Console, move the same user out of the suspension Organizational Unit. For Example: Move the user from /Suspended Users to /IT.
  2. Wait a few moments for the trigger to detect the Organizational Unit change.
  3. You will receive another notification from xFanatical Foresight. Click View log.
    A notification on the completion of rule execution of reactivate users.
  4. In the Logs > Log details page, review the Rule history to confirm successful execution.
     Logs detailed page for reactivation of users based on OU change.
  5. Return to Google Admin Console > Users > {User Name}.
  6. Verify that the user’s account has been reactivated and access has been restored.
    Verify if the user is active after OU change.

Notes

  • Once the automation rules are established, xFanatical Foresight automatically suspends users moved into the designated suspension Organizational Unit and reactivates users moved out of it.
  • The Present Organizational Unit used in Rule 2 should match the Organizational Unit configured in Rule 1.
  • Make sure the OU configured in Rule 2 is the same OU that was configured in Rule 1. 
  • Each time a rule executes, you will receive a notification in xFanatical Foresight indicating whether the action completed successfully.
  • Rule execution may take a few moments depending on synchronization and processing times.
  • User suspension revokes access to Google Workspace services but does not delete the user account or its associated data.
  • User reactivation restores access to Google Workspace services while retaining all existing account data and settings.
  • The user must leave the New organizational unit field in Rule 2 blank to reactivate the user when they moved from specified suspension OU to any other OU. For example - /Suspended users to /IT, /Suspended users to /HR etc.

Conclusion

In conclusion, automating user suspension and reactivation through Organizational Unit changes helps administrators manage access more efficiently and consistently. Instead of performing manual account updates after every OU move, xFanatical Foresight automatically handles the process in real time. This reduces administrative workload, minimizes mistakes and ensures access changes are applied immediately whenever users are moved between Organizational Units. 

Try a 14-day free trial with xFanatical Foresight and manage your tasks.


Related Articles

For more articles, please visit our website: Articles