In this blog, you will know How to Update Organizational Units (OU) Based on Departments. When managing a large team, it is a common practice to shift team members from one department to another if needed. IT Admins use Google Admin to update the departments and organizational units of Google Workspace users. Foresight has introduced a new feature to update users' OU based on their department information. Thus, it includes a new trigger named User department changed.
Why Do You Need to Update the Organizational Units Based on Departments?
The Organizational Units and department are two different concepts. Both of them help to categorize the users within a smaller unit. The department is a directory field of organization. In contrast, the Admin uses the OU field to enforce different administrative policies. Admin has to work with these two fields simultaneously to manage their policies. However, when a user moves from one department to another, it creates data inconsistency. Thus, the Admin needs to update their OU based on the updated department information.
Update Organizational Units Based on Departments with Foresight
Foresight helps you to automate and streamline your regular business workflows and Google Workspace workflows systematically. As a Google Cloud partner, it also provides automated solutions for Google Workspace operations. Its cost-effective, time-saving, and productive functionalities empower the Good Admin and users to perform their tasks effortlessly.
Admin can update OU based upon the organizational unit through the Google Admin console by creating users’ CSV files. However, there is no specific feature in the Admin Console regarding this. So, Foresight has created this feature for the Admin and automates this process to save more time and manage administrative policies efficiently for the Admin.
Video Demo
Instruction
Rule 1: Bulk update users’ OU based on their department information. This rule exports users with a CSV file having two columns: the primary email and the department.
Rule 2: Automate the process of updating users' organizational units when their department information changes.
Rule Creation
Sign in to Foresight and click the New Rule (+) button.
Select the Manual trigger.
Select the Listusers action.
Select the Email and the Department columns. Leave the rest of the fields as default. Click Review.
Give the Rule Name [Rule1 (A): Bulk OU updates on user department information]. Click Create. It was the first part of Rule 1.
Now, trigger this rule to download the CSV file.
You can check the notification through the bell icon about the successful rule creation. Also, you will see the result from the Logs page.
Click here to Download the CSV file.
Next, create the second part of Rule 1. So, click the + button and start working on the rule.
Select the Data uploaded trigger and upload the same CSV file. Click Next.
Select the If action.
Select Department as variable type and Text contains as operator. Then, give a name for your OU. Here, give the name Digital Marketing.
Click Add Next Action. So, select the Move user to organizational unit action.
14. Enter the Email in the User's primary email and /Social Media into the New organizational unit field. 15. Now, you need to add a Fallback branch in your If action. So, Add Next Action. Again, select the Move user to organizational unit action. Repeat the same step – enter Email in the User primary email and /Social Media into the New organizational unit field. Click Review.
16. Give a Rule Name [Rule 1(B): Bulk OU update based on user department information]. Click Create. Now, the rule has been created.17. Upload the same CSV file. Wait for the CSV to become uploaded.
18. Verify rule execution in the Logs page.
19. Now, go to the second rule. After clicking the + button, select the User department changed trigger. Leave the user primary field as default. Click Next.
20. Select the Get user info action.
21. Enter the User Primary email in the Primary email field.
22. Click Add Next Action. Select the If action.
23. Again, select Department as the variable type and Text contains as the operator. Give a name for your organizational unit – Social Media.24. Click Add Next Action. Select the Move organizational unit action.
25. Enter /Social Media in the Organizational unit path and /Digital Marketing in the Move to field.
26. Then, add the Fallback branch. So, click Add Next Action. Select the Move organizational unit action.
27. Again enter /Social Media in the Organizational unit path and /Digital Marketing in the Move to field. Click Review.
28. Give a Rule Name (Rule 2: Updated automatically on user department changes). Click "Create" to make the rule.
Rule Triggering
Before triggering the rule, you have to change the user information from the Admin Console. So, give a name for the Department and Save it. Then, trigger the rule.
Verifying the Result
You will get a notification about successful rule execution. The Action history will show the status as – Moved organizational unit /Digital marketing to /Social Media. This rule updates user information when the department changes automatically.
Conclusion
This is all about updating organizational units based on the department information of Google Workspace users. To save time for the Administrator, Foresight reduces the complexity of performing several administrative tasks. It automates the whole process, thereby increasing admin efficiency. Check out Foresight's other automation tools and learn more about it. Try a 14-day free trial of it. Read other topics related to this one – How To Bulk Reset Users Password In Google Workspace, etc.
We use cookies to give you the best experience, as detailed in our privacy policy. By continuing to use this website, you consent to the use of cookies. Accept
Privacy & Cookies Policy
Privacy Overview
This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Cookie
Duration
Description
_ga
2 years
This cookie is installed by Google Analytics. The cookie is used to calculate visitor, session, campaign data and keep track of site usage for the site’s analytics report. The cookies store information anonymously and assigns a randomly generated number to identify unique visitors. This cookie is installed the first time a visitor enters the website through a browser. When the visitor comes back to the website through the same browser, the cookie will consider them to be the same visitor. Only in the event that the visitor changes browser, will they be deemed to be a different visitor.
_gat_gtag-###
1 minute
This cookie is installed by Google Analytics. It is used to analyze visitor browsing habits, flow, source and other information.
_gid
1 day
This cookie is installed by Google Analytics. The cookie is used to store information of how visitors use a website and helps in creating an analytics report of how the website is doing. The data collected includes the number of visitors, the source where they have come from, and the pages visited in an anonymous form.
CONSENT
2 years
YouTube sets this cookie via embedded youtube-videos and registers anonymous statistical data.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Cookie
Duration
Description
__Secure-1PAPISID
2 years
Used by for targeting purposes to build a profile of the website visitor's interests in order to show relevant & personalized Google advertising
__Secure-1PSID
2 years
Used by for targeting purposes to build a profile of the website visitor's interests in order to show relevant & personalized Google advertising.
__Secure-3PAPISID
2 years
Used by for targeting purposes to build a profile of the website visitor's interests in order to show relevant & personalized Google advertising.
__Secure-3PSID
2 years
Used by for targeting purposes to build a profile of the website visitor's interests in order to show relevant & personalized Google advertising.
_gcl_au
3 months
This cookie is set by Google Analytics to take information in advert clicks and store it in a 1st party cookie so that conversions can be attributed outside of the landing page.
1P_JAR
1 month
This cookie is installed by Google Ads. This cookie is used to collect site statistics and track conversion rates.
APISID
2 years
This cookie is used by Google to store user preferences and information while viewing Youtube videos on this site.
HSID
2 years
This cookie contains digitally signed and encrypted records of a user’s Google Account ID and most recent sign-in time. Google uses security cookies to authenticate users, prevent fraudulent use of login credentials, and protect user data from unauthorized parties.
LOGIN_INFO
2 years
This cookie is used by YouTube (Google) for storing user preferences and other unspecified purposes.
NID
6 months
NID cookie, set by Google, is used for advertising purposes; to limit the number of times the user sees an ad, to mute unwanted ads, and to measure the effectiveness of ads.
PREF
2 years
This cookie is used by YouTube (Google) for storing user preferences and other unspecified purposes.
SID
2 years
This cookie contains digitally signed and encrypted records of a user’s Google Account ID and most recent sign-in time. Google uses security cookies to authenticate users, prevent fraudulent use of login credentials, and protect user data from unauthorized parties.
SIDCC
1 year
This cookie carries out information about how the end user uses the website and any advertising that the end user may have seen before visiting the said website.
SSID
2 years
This cookie is used to save the user's preferences and other information.
test_cookie
15 minutes
The test_cookie is set by doubleclick.net and is used to determine if the user's browser supports cookies.
VISITOR_INFO1_LIVE
6 months
A cookie set by YouTube to measure bandwidth that determines whether the user gets the new or old player interface.
YSC
session
This cookie is used by YouTube to remember user input and associate a user’s actions. This cookie lasts for as long as the user keeps their browser open.
yt-remote-connected-devices
never
YouTube sets this cookie to store the video preferences of the user using embedded YouTube video.
yt-remote-device-id
never
YouTube sets this cookie to store the video preferences of the user using embedded YouTube video.
yt.innertube::nextId
never
This cookie, set by YouTube, registers a unique ID to store data on what videos from YouTube the user has seen.
yt.innertube::requests
never
This cookie, set by YouTube, registers a unique ID to store data on what videos from YouTube the user has seen.