{"id":4573,"date":"2022-08-30T13:24:31","date_gmt":"2022-08-30T12:24:31","guid":{"rendered":"https:\/\/gatlabs.com\/knowledge\/?post_type=docs&#038;p=4573"},"modified":"2023-08-01T14:50:04","modified_gmt":"2023-08-01T13:50:04","password":"","slug":"conditional-flow-advanced","status":"publish","type":"docs","link":"https:\/\/gatlabs.com\/knowledge\/tech-tips\/conditional-flow-advanced\/","title":{"rendered":"Conditional Workflow: Complex Use Cases in GAT Flow"},"content":{"rendered":"<p>GAT Flow is the user management tool for <a href=\"https:\/\/workspace.google.com\/\">Google Workspace<\/a> Admins to<strong> create workflows to take a single or bulk action to Onboard (create), Offboard (delete), or Modify (update)<\/strong> user accounts.<\/p>\n<p>Flow can also handle conditional use cases.<\/p>\n<p>This article will demonstrate how a more complex conditional case can be handled.<\/p>\n<h2>Objective<\/h2>\n<p><strong>Consider the following example<\/strong><\/p>\n<p><em>A new Employee has been hired by your company. He is being put into the position of <strong>Manager<\/strong> of the <strong>Accounts department. <\/strong>\u00a0The new manager has been onboarded already, though the employees need to be introduced to the new hire. Before leaving, the <strong>old accounts manager<\/strong> started a project but didn&#8217;t pass the project to the rest of his team. The Accounting team needs access to this folder. The old accounts manager has been suspended.<\/em><\/p>\n<p>You as the admin have been tasked with the following:<\/p>\n<ol>\n<li><strong>Introduce everyone in the company to the new hire<\/strong><\/li>\n<li><strong>Allow everyone to see the new hire&#8217;s calendar as a &#8216;free\/busy reader&#8217;, except the CEO.<\/strong><\/li>\n<li><strong>Ask the company CEO to introduce the new hire to the accounts department and let him know you removed the old manager.<\/strong><\/li>\n<\/ol>\n<p>And for the people in the accounts department:<\/p>\n<ol>\n<li><strong>Set the new hire as Manager for everyone in the accounts department<\/strong><\/li>\n<li><strong>Allow &#8216;write&#8217; access to the new manager&#8217;s calendar for the accounts department<\/strong><\/li>\n<li><strong>Transfer a project folder from the old accounts manager to the rest of the accounts department<\/strong><\/li>\n<li><strong>Remove access to all folders from the old accounts manager and wipe his old devices<\/strong><\/li>\n<\/ol>\n<p>We will use GAT Flow to do all of this in one fell swoop!<\/p>\n<h2>Set up a Conditional Workflow<\/h2>\n<p>Firstly, launch GAT Flow, select &#8216;Create workflow&#8217; and <strong>switch on<\/strong> the slider for <strong>Conditional Flow<\/strong>.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone wp-image-4587 size-full\" style=\"font-style: inherit; font-weight: inherit;\" src=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-24.png\" alt=\"Setting up a Conditional Workflow\" width=\"1917\" height=\"632\" srcset=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-24.png 1917w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-24-300x99.png 300w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-24-1024x338.png 1024w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-24-768x253.png 768w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-24-1536x506.png 1536w\" sizes=\"(max-width: 1917px) 100vw, 1917px\" \/><\/p>\n<p>Everyone in the company is going to be affected by this workflow, as we need to introduce them to the new hire, so we will filter by OU, select the root OU <strong>(\/)<\/strong> and click <strong>&#8216;Recursive&#8217;<\/strong> to include all child OU&#8217;s below that and users within them.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-4608 size-full\" src=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-17.45.44-1.png\" alt=\"Set up a Conditional Workflow\" width=\"1919\" height=\"605\" srcset=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-17.45.44-1.png 1919w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-17.45.44-1-300x95.png 300w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-17.45.44-1-1024x323.png 1024w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-17.45.44-1-768x242.png 768w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-17.45.44-1-1536x484.png 1536w\" sizes=\"(max-width: 1919px) 100vw, 1919px\" \/><\/p>\n<p>The next screen will display all the users on your domain, you can deselect some if you want, though, for this case, we are using them all.<\/p>\n<p>When you are finished selecting the users, click <strong>&#8216;Add&#8217;<\/strong>.<\/p>\n<p>Click <strong>&#8216;Next&#8217;<\/strong> to continue to the workflow.<\/p>\n<p>The full workflow we are going to create is outlined below. We will break this down in the next section.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-4607 size-full\" style=\"font-weight: inherit;\" src=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-13.40.49.png\" alt=\"full workflow \" width=\"1651\" height=\"716\" srcset=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-13.40.49.png 1651w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-13.40.49-300x130.png 300w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-13.40.49-1024x444.png 1024w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-13.40.49-768x333.png 768w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-13.40.49-1536x666.png 1536w\" sizes=\"(max-width: 1651px) 100vw, 1651px\" \/><\/p>\n<h3>Setting up the workflow<\/h3>\n<p>First off, we have two sets of actions to achieve, one set of actions has to deal with the <strong>accounts<\/strong> department, and the other is for <strong>everyone else<\/strong>, so we will start with a condition.<\/p>\n<p>Hover over the <strong>&#8216;Start&#8217;<\/strong> button with your mouse, and the <strong>&#8216;Add Condition&#8217;<\/strong> button will appear.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4610 size-full\" style=\"font-weight: inherit;\" src=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-25.png\" alt=\"adding condition when creating workflow\" width=\"367\" height=\"115\" srcset=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-25.png 367w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-25-300x94.png 300w\" sizes=\"(max-width: 367px) 100vw, 367px\" \/><\/p>\n<p>Click the button and another box will appear connected to the start button.<\/p>\n<p>We have a different set of tasks for the Accounts department, so select <strong>&#8216;Department&#8217;<\/strong> from the dropdown menu and type<strong> &#8216;Accounts&#8217;<\/strong> into the field below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4611 size-full\" src=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-26.png\" alt=\"adding actions to create workflow\" width=\"571\" height=\"361\" srcset=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-26.png 571w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-26-300x190.png 300w\" sizes=\"(max-width: 571px) 100vw, 571px\" \/><\/p>\n<h3>The &#8216;No&#8217; side<\/h3>\n<p>The first task is to introduce<strong> everyone else<\/strong> to the new manager, we will do this by sending an email. Click the<strong> &#8216;Add action in case of NO&#8217;<\/strong> button. (ie. the users that are not in the accounts department)<\/p>\n<p>We want to send the users an email. So choose<strong> &#8216;send an email&#8217;<\/strong> from the list of actions that appears.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4600 size-full\" src=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-13.45.01.png\" alt=\"adding the 'no' conditions\" width=\"1561\" height=\"873\" srcset=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-13.45.01.png 1561w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-13.45.01-300x168.png 300w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-13.45.01-1024x573.png 1024w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-13.45.01-768x430.png 768w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-13.45.01-1536x859.png 1536w\" sizes=\"(max-width: 1561px) 100vw, 1561px\" \/><\/p>\n<p>Daisy-chaining from the <strong>&#8216;Send email&#8217;<\/strong> box we need to <strong>add another <strong style=\"font-size: 16px;\">condition<\/strong><\/strong><span style=\"font-size: 16px;\"> to differentiate<\/span><span style=\"font-size: 16px;\">\u00a0the <\/span><strong><strong style=\"font-size: 16px;\">CEO<\/strong><\/strong><span style=\"font-size: 16px;\"> from <\/span><strong><strong style=\"font-size: 16px;\">everyone else.<\/strong><\/strong><\/p>\n<p>Hover over the Send email box and click <strong>&#8216;Add condition&#8217;<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4613 size-full\" style=\"font-weight: inherit;\" src=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-27.png\" alt=\"Adding actions in the 'no' condition\" width=\"609\" height=\"458\" srcset=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-27.png 609w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-27-300x226.png 300w\" sizes=\"(max-width: 609px) 100vw, 609px\" \/><\/p>\n<p>This time we are going to select <strong>&#8216;Title&#8217;<\/strong> from the dropdown menu and enter <strong>&#8216;CEO&#8217;<\/strong> in the field below, as is his job title.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4614 size-full\" src=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-28.png\" alt=\"adding conditions\" width=\"681\" height=\"448\" srcset=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-28.png 681w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-28-300x197.png 300w\" sizes=\"(max-width: 681px) 100vw, 681px\" \/><\/p>\n<p>Now we can<strong> add an action<\/strong> for the CEO only.<\/p>\n<p>We want to send the CEO an email, so click the <strong>&#8216;Add action in case of YES&#8217;\u00a0<\/strong>button and select <strong>&#8216;send email&#8217;<\/strong> again.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4615 size-full\" src=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-20.00.12.png\" alt=\"setting up emails\" width=\"1320\" height=\"827\" srcset=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-20.00.12.png 1320w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-20.00.12-300x188.png 300w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-20.00.12-1024x642.png 1024w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-20.00.12-768x481.png 768w\" sizes=\"(max-width: 1320px) 100vw, 1320px\" \/><\/p>\n<p>That&#8217;s all we need to do on the CEO side, but we need to put an end to the workflow so that it knows to stop there.<\/p>\n<p>On the bottom right corner of the &#8216;Send email&#8217; box, you will see the <strong>&#8216;End graph here&#8217; <\/strong>button. Click that button to <strong>end<\/strong> that part of the workflow.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4617 size-full\" src=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-29.png\" alt=\"Set up a Conditional Workflow\" width=\"615\" height=\"288\" srcset=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-29.png 615w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-29-300x140.png 300w\" sizes=\"(max-width: 615px) 100vw, 615px\" \/><\/p>\n<p>We still need to add <strong>everyone else <\/strong>to the new managers&#8217; calendar.<\/p>\n<p>Go to the previous condition box and <strong>&#8216;Add action in case of NO&#8217;.<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4618 size-full\" src=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-30.png\" alt=\"Set up a Conditional Workflow\" width=\"582\" height=\"352\" srcset=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-30.png 582w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-30-300x181.png 300w\" sizes=\"(max-width: 582px) 100vw, 582px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Select <strong>&#8216;Add user to calendars&#8217;<\/strong> from the list. Choose <strong>&#8216;free\/busy reader&#8217;<\/strong>.<\/p>\n<p>We have finished with this part of the workflow now too, so click the<strong> &#8216;End graph here&#8217;<\/strong> button again, this time on the <strong>&#8216;Add user to calendars&#8217;<\/strong> box.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4680\" src=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-34.png\" alt=\"\" width=\"1658\" height=\"640\" srcset=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-34.png 1658w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-34-300x116.png 300w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-34-1024x395.png 1024w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-34-768x296.png 768w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-34-1536x593.png 1536w\" sizes=\"(max-width: 1658px) 100vw, 1658px\" \/><\/p>\n<p>What we have now is as follows:<\/p>\n<p><strong>If a user is<em> not<\/em> in the accounts department, one set of actions will be triggered for those users.<\/strong> (The &#8216;No&#8217; side)<\/p>\n<p>This set of actions is outlined in the screenshot below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4590\" src=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-22.png\" alt=\"\" width=\"1670\" height=\"722\" srcset=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-22.png 1670w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-22-300x130.png 300w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-22-1024x443.png 1024w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-22-768x332.png 768w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-22-1536x664.png 1536w\" sizes=\"(max-width: 1670px) 100vw, 1670px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>The &#8216;Yes&#8217; side<\/h3>\n<p>Moving onto the second part of the workflow.<\/p>\n<p><em>For the people in the accounts department:<\/em><\/p>\n<ol>\n<li><em>Set the new hire as Manager for everyone in the accounts department<\/em><\/li>\n<li><em>Allow &#8216;write&#8217; access to the new managers&#8217; calendar for the accounts department<\/em><\/li>\n<li><em>Transfer a project folder from the old accounts manager to the rest of the accounts department<\/em><\/li>\n<li><em>Remove access to all folders from the old accounts manager and wipe his old devices<\/em><\/li>\n<\/ol>\n<p>We will work on the first three tasks first, they are outlined in the yellow box below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4681\" src=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-33.png\" alt=\"\" width=\"1652\" height=\"644\" srcset=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-33.png 1652w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-33-300x117.png 300w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-33-1024x399.png 1024w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-33-768x299.png 768w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-33-1536x599.png 1536w\" sizes=\"(max-width: 1652px) 100vw, 1652px\" \/><\/p>\n<p>To start the second set of actions for the accounts department.<\/p>\n<p>Click the <strong>&#8216;Add action in case of &#8216;YES&#8217;<\/strong> button closest to the &#8216;yes&#8217; side of the<strong> first conditional box (<\/strong>Department equal Accounts).<\/p>\n<p>Click &#8216;Set user manager&#8217;.<\/p>\n<p>Click the <strong>&#8216;edit&#8217; <\/strong>button, for this example, we will choose adam@gedudemobsn.com and click outside the dialogue box to &#8216;save&#8217; and go back to the workflow.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4709\" src=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-29-18.42.34.png\" alt=\"\" width=\"894\" height=\"471\" srcset=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-29-18.42.34.png 894w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-29-18.42.34-300x158.png 300w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-29-18.42.34-768x405.png 768w\" sizes=\"(max-width: 894px) 100vw, 894px\" \/><\/p>\n<p>From the <strong>Set user manager<\/strong> box, click the<strong> &#8216;Add action&#8217;<\/strong> button, and select<strong> &#8216;Add user to calendars&#8217;<\/strong>.<\/p>\n<p>Again, we will type adam@gedudemobsn.com in the <strong>&#8216;Add to&#8217;<\/strong> box for this example and select <strong>&#8216;writer&#8217;<\/strong> from the dropdown menu.<\/p>\n<p>The rest of the Accounts department still needs access to the Project folder from the objective<\/p>\n<p>Following on from the<strong> &#8216;Add user to calendars&#8217;<\/strong> box, click <strong>&#8216;Add action&#8217;.<\/strong><\/p>\n<p>Select <strong>&#8216;Copy folder to selected users&#8217;<\/strong>.<\/p>\n<p>In this example, we are copying the folder from the old manager (paul@gedudemobsn.com).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4586\" style=\"font-weight: inherit;\" src=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-13.55.06.png\" alt=\"\" width=\"1374\" height=\"249\" srcset=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-13.55.06.png 1374w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-13.55.06-300x54.png 300w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-13.55.06-1024x186.png 1024w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-13.55.06-768x139.png 768w\" sizes=\"(max-width: 1374px) 100vw, 1374px\" \/><\/p>\n<p>Clicking outside the dialogue box will save the settings and bring us back to the workflow.<\/p>\n<h3>The Last Part<\/h3>\n<p>We have one final step to achieve.<\/p>\n<p><em>Remove access to all folders from the old accounts manager and wipe his old devices.<\/em><\/p>\n<p>As the old manager is the only suspended user in the Accounts department, we will continue with this same workflow.<\/p>\n<p>Click the <strong>&#8216;Add condition&#8217;<\/strong> button, this time on the <strong>Copy folder to selected<\/strong> users box.<\/p>\n<p>We will add a condition for <strong>Suspended<\/strong>\u00a0users. Click the dropdown menu and choose <strong>&#8216;Suspended&#8217;<\/strong><\/p>\n<p>The final part of the workflow is outlined in the yellow box below.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4682\" src=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-32.png\" alt=\"\" width=\"1604\" height=\"620\" srcset=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-32.png 1604w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-32-300x116.png 300w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-32-1024x396.png 1024w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-32-768x297.png 768w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-32-1536x594.png 1536w\" sizes=\"(max-width: 1604px) 100vw, 1604px\" \/><\/p>\n<p>We have no other actions to take on the rest of the accounts department, so on the &#8216;No&#8217; side of the condition click the <strong>&#8216;End graph here&#8217;<\/strong> button. The <strong>active<\/strong> users in the accounts department will not be affected.<\/p>\n<p>On the <strong>Yes<\/strong> side of the condition select<strong> &#8216;Add action&#8217; <\/strong>and<strong> &#8216;Wipe mobile devices&#8217;.\u00a0<\/strong>For this assignment, we will choose <strong>&#8216;Remote wipe&#8217;<\/strong> and click outside the dialogue box to save the settings.<\/p>\n<ul>\n<li>Next, click <strong>&#8216;Add action&#8217;<\/strong> and choose <strong>&#8216;Folder, Shared Drive permission change&#8217;.<\/strong><\/li>\n<li>For the <strong>&#8216;Type&#8217; <\/strong>field select<strong> &#8216;remove&#8217;<\/strong> from the dropdown menu.<\/li>\n<li>Select <strong>&#8216;Folder&#8217;<\/strong> from the file type dropdown menu.<\/li>\n<\/ul>\n<p>We are removing all permissions, so click each scope from the dropdown menu (<strong>Viewer, Commenter, Editor<\/strong>).<\/p>\n<p>Enter the old manager&#8217;s email address (paul@gedudemobsn.com).<\/p>\n<p>You can then select the individual folders you&#8217;d like to remove permissions from. Though for this example we will be removing them all with the <strong>&#8216;select all&#8217;<\/strong> button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4721\" src=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-6.png\" alt=\"\" width=\"644\" height=\"455\" srcset=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-6.png 644w, https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow-6-300x212.png 300w\" sizes=\"(max-width: 644px) 100vw, 644px\" \/><\/p>\n<p>We have come to the very end of the workflow, so click the <strong>&#8216;End graph here&#8217;<\/strong> button from the last action box to finish it off.<\/p>\n<p>Click <strong>&#8216;Send approval request&#8217;<\/strong> and a request will be sent to the security officer for approval via email.<\/p>\n<p><strong>NOTE:<\/strong> The last part of this example works because the old manager is the <strong>only<\/strong> suspended user in the accounts department, so it singles him out. If there were other suspended users, these actions would be executed on them also.<\/p>\n<p>Always be careful with more complex workflows and read over what is going to happen.<\/p>\n<p>Ensure that your workflow makes sense and will have the desired results.<\/p>\n<p><strong>There is no &#8216;Undo&#8217; button and workflows cannot always easily be reversed!<\/strong><\/p>\n<h2>Related Posts<\/h2>\n<ul>\n<li class=\"betterdocs-breadcrumb-item item-current item-4084 current\"><a href=\"https:\/\/gatlabs.com\/knowledge\/tech-tips\/creating-a-workflow\/\">Creating a Workflow<\/a><\/li>\n<li><a href=\"https:\/\/gatlabs.com\/knowledge\/tech-tips\/conditional-workflows\/\">GAT Flow: Conditional Workflows for Google Workspace<\/a><\/li>\n<li><a href=\"https:\/\/gatlabs.com\/knowledge\/tech-tips\/workflow-triggered-by-an-event-on-users\/\">Event-Triggered Workflows<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>GAT Flow is the user management tool for Google Workspace Admins to create workflows to take a single or bulk action to Onboard (create), Offboard (delete), or Modify (update) user accounts. Flow can also handle conditional use cases. This article will demonstrate how a more complex conditional case can be handled. Objective Consider the following [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":4501,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[49],"glossaries":[],"doc_tag":[27],"class_list":["post-4573","docs","type-docs","status-publish","has-post-thumbnail","hentry","doc_category-on-boarding-off-boarding-modifying","doc_tag-gat-flow"],"year_month":"2026-04","word_count":1433,"total_views":"1255","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"jgrimes","author_nicename":"jgrimes","author_url":"https:\/\/gatlabs.com\/knowledge\/author\/jgrimes\/"},"doc_category_info":[{"term_name":"On-boarding, Off-boarding &amp; Modifying","term_url":"https:\/\/gatlabs.com\/knowledge\/tech-tips-category\/users-management\/on-boarding-off-boarding-modifying\/"}],"doc_tag_info":[{"term_name":"GAT Flow","term_url":"https:\/\/gatlabs.com\/knowledge\/tech-tips-tag\/gat-flow\/"}],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Conditional Workflow: Complex Use Cases in GAT Flow - GAT Knowledge Base<\/title>\n<meta name=\"description\" content=\"With GAT Flow Admins can\u00a0take create complex workflows to Onboard, Offboard, or Modify\u00a0user accounts in the Google Workspace.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gatlabs.com\/knowledge\/tech-tips\/conditional-flow-advanced\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Conditional Workflow: Complex Use Cases in GAT Flow\" \/>\n<meta property=\"og:description\" content=\"With GAT Flow Admins can\u00a0take create complex workflows to Onboard, Offboard, or Modify\u00a0user accounts in the Google Workspace.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gatlabs.com\/knowledge\/tech-tips\/conditional-flow-advanced\/\" \/>\n<meta property=\"og:site_name\" content=\"GAT Knowledge Base\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-01T13:50:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/gatlabs.com\\\/knowledge\\\/tech-tips\\\/conditional-flow-advanced\\\/\",\"url\":\"https:\\\/\\\/gatlabs.com\\\/knowledge\\\/tech-tips\\\/conditional-flow-advanced\\\/\",\"name\":\"Conditional Workflow: Complex Use Cases in GAT Flow - GAT Knowledge Base\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gatlabs.com\\\/knowledge\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/gatlabs.com\\\/knowledge\\\/tech-tips\\\/conditional-flow-advanced\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/gatlabs.com\\\/knowledge\\\/tech-tips\\\/conditional-flow-advanced\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/gatlabs.com\\\/knowledge\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/GAT-Flow.jpg\",\"datePublished\":\"2022-08-30T12:24:31+00:00\",\"dateModified\":\"2023-08-01T13:50:04+00:00\",\"description\":\"With GAT Flow Admins can\u00a0take create complex workflows to Onboard, Offboard, or Modify\u00a0user accounts in the Google Workspace.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gatlabs.com\\\/knowledge\\\/tech-tips\\\/conditional-flow-advanced\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gatlabs.com\\\/knowledge\\\/tech-tips\\\/conditional-flow-advanced\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/gatlabs.com\\\/knowledge\\\/tech-tips\\\/conditional-flow-advanced\\\/#primaryimage\",\"url\":\"https:\\\/\\\/gatlabs.com\\\/knowledge\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/GAT-Flow.jpg\",\"contentUrl\":\"https:\\\/\\\/gatlabs.com\\\/knowledge\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/GAT-Flow.jpg\",\"width\":1200,\"height\":600},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gatlabs.com\\\/knowledge\\\/tech-tips\\\/conditional-flow-advanced\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gatlabs.com\\\/knowledge\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tech Tips\",\"item\":\"https:\\\/\\\/gatlabs.com\\\/knowledge\\\/tech-tips\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Conditional Workflow: Complex Use Cases in GAT Flow\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/gatlabs.com\\\/knowledge\\\/#website\",\"url\":\"https:\\\/\\\/gatlabs.com\\\/knowledge\\\/\",\"name\":\"GAT Knowledge Base\",\"description\":\"Your source of all things GAT\",\"publisher\":{\"@id\":\"https:\\\/\\\/gatlabs.com\\\/knowledge\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/gatlabs.com\\\/knowledge\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/gatlabs.com\\\/knowledge\\\/#organization\",\"name\":\"GAT Labs Knowledge Base\",\"url\":\"https:\\\/\\\/gatlabs.com\\\/knowledge\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/gatlabs.com\\\/knowledge\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/gatlabs.com\\\/knowledge\\\/wp-content\\\/uploads\\\/2021\\\/11\\\/Group-1159.svg\",\"contentUrl\":\"https:\\\/\\\/gatlabs.com\\\/knowledge\\\/wp-content\\\/uploads\\\/2021\\\/11\\\/Group-1159.svg\",\"width\":361,\"height\":97,\"caption\":\"GAT Labs Knowledge Base\"},\"image\":{\"@id\":\"https:\\\/\\\/gatlabs.com\\\/knowledge\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Conditional Workflow: Complex Use Cases in GAT Flow - GAT Knowledge Base","description":"With GAT Flow Admins can\u00a0take create complex workflows to Onboard, Offboard, or Modify\u00a0user accounts in the Google Workspace.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/gatlabs.com\/knowledge\/tech-tips\/conditional-flow-advanced\/","og_locale":"en_GB","og_type":"article","og_title":"Conditional Workflow: Complex Use Cases in GAT Flow","og_description":"With GAT Flow Admins can\u00a0take create complex workflows to Onboard, Offboard, or Modify\u00a0user accounts in the Google Workspace.","og_url":"https:\/\/gatlabs.com\/knowledge\/tech-tips\/conditional-flow-advanced\/","og_site_name":"GAT Knowledge Base","article_modified_time":"2023-08-01T13:50:04+00:00","og_image":[{"width":1200,"height":600,"url":"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/gatlabs.com\/knowledge\/tech-tips\/conditional-flow-advanced\/","url":"https:\/\/gatlabs.com\/knowledge\/tech-tips\/conditional-flow-advanced\/","name":"Conditional Workflow: Complex Use Cases in GAT Flow - GAT Knowledge Base","isPartOf":{"@id":"https:\/\/gatlabs.com\/knowledge\/#website"},"primaryImageOfPage":{"@id":"https:\/\/gatlabs.com\/knowledge\/tech-tips\/conditional-flow-advanced\/#primaryimage"},"image":{"@id":"https:\/\/gatlabs.com\/knowledge\/tech-tips\/conditional-flow-advanced\/#primaryimage"},"thumbnailUrl":"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow.jpg","datePublished":"2022-08-30T12:24:31+00:00","dateModified":"2023-08-01T13:50:04+00:00","description":"With GAT Flow Admins can\u00a0take create complex workflows to Onboard, Offboard, or Modify\u00a0user accounts in the Google Workspace.","breadcrumb":{"@id":"https:\/\/gatlabs.com\/knowledge\/tech-tips\/conditional-flow-advanced\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gatlabs.com\/knowledge\/tech-tips\/conditional-flow-advanced\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/gatlabs.com\/knowledge\/tech-tips\/conditional-flow-advanced\/#primaryimage","url":"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow.jpg","contentUrl":"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2022\/08\/GAT-Flow.jpg","width":1200,"height":600},{"@type":"BreadcrumbList","@id":"https:\/\/gatlabs.com\/knowledge\/tech-tips\/conditional-flow-advanced\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gatlabs.com\/knowledge\/"},{"@type":"ListItem","position":2,"name":"Tech Tips","item":"https:\/\/gatlabs.com\/knowledge\/tech-tips\/"},{"@type":"ListItem","position":3,"name":"Conditional Workflow: Complex Use Cases in GAT Flow"}]},{"@type":"WebSite","@id":"https:\/\/gatlabs.com\/knowledge\/#website","url":"https:\/\/gatlabs.com\/knowledge\/","name":"GAT Knowledge Base","description":"Your source of all things GAT","publisher":{"@id":"https:\/\/gatlabs.com\/knowledge\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gatlabs.com\/knowledge\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/gatlabs.com\/knowledge\/#organization","name":"GAT Labs Knowledge Base","url":"https:\/\/gatlabs.com\/knowledge\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/gatlabs.com\/knowledge\/#\/schema\/logo\/image\/","url":"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2021\/11\/Group-1159.svg","contentUrl":"https:\/\/gatlabs.com\/knowledge\/wp-content\/uploads\/2021\/11\/Group-1159.svg","width":361,"height":97,"caption":"GAT Labs Knowledge Base"},"image":{"@id":"https:\/\/gatlabs.com\/knowledge\/#\/schema\/logo\/image\/"}}]}},"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/gatlabs.com\/knowledge\/wp-json\/wp\/v2\/docs\/4573","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gatlabs.com\/knowledge\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/gatlabs.com\/knowledge\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/gatlabs.com\/knowledge\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/gatlabs.com\/knowledge\/wp-json\/wp\/v2\/comments?post=4573"}],"version-history":[{"count":21,"href":"https:\/\/gatlabs.com\/knowledge\/wp-json\/wp\/v2\/docs\/4573\/revisions"}],"predecessor-version":[{"id":4807,"href":"https:\/\/gatlabs.com\/knowledge\/wp-json\/wp\/v2\/docs\/4573\/revisions\/4807"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gatlabs.com\/knowledge\/wp-json\/wp\/v2\/media\/4501"}],"wp:attachment":[{"href":"https:\/\/gatlabs.com\/knowledge\/wp-json\/wp\/v2\/media?parent=4573"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/gatlabs.com\/knowledge\/wp-json\/wp\/v2\/doc_category?post=4573"},{"taxonomy":"glossaries","embeddable":true,"href":"https:\/\/gatlabs.com\/knowledge\/wp-json\/wp\/v2\/glossaries?post=4573"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/gatlabs.com\/knowledge\/wp-json\/wp\/v2\/doc_tag?post=4573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}