Overview
This guide explains how to remove the changes that the Defend deployment made to your Google Workspace tenant if you do not plan to reinstate Defend. The deployment created a domain-wide delegation entry for the KnowBe4 Client ID, a dedicated Deploy User, and a custom admin role assigned to that user. The deployment also recorded OAuth consent for the Defend application and created a SAML application for Defend admin sign-in.
Complete the steps in the order shown below. Removing the delegation entry first ends Defend's access to your mailboxes.
Prerequisites
To complete the removal process, make sure that you have the following:
- Super Administrator role in Google Workspace. Removing domain-wide delegation, admin roles, and users all require this role.
- The email address of the Deploy User created during setup. The recommended address is knowbe4-defend-deploy-user@[your domain], but your organization may have chosen a different address.
- The KnowBe4 Client ID entered during deployment. The ID depends on your hosting region:
| Hosting region | KnowBe4 Client ID |
|---|---|
| United States (US) | 109293526518461352273 |
| United Kingdom (UK) | 114087228058169173853 |
| Australia (AUS) | 104554863372218348325 |
Step 1: Remove the Domain-Wide Delegation Entry
This step ends Defend's access to your mailboxes and directory data. During deployment, a Super Administrator added a domain-wide delegation entry for the KnowBe4 Client ID and authorized nine fixed OAuth scopes:
- https://mail.google.com/
- https://www.googleapis.com/auth/gmail.labels
- https://www.googleapis.com/auth/gmail.settings.basic
- https://www.googleapis.com/auth/gmail.settings.sharing
- https://www.googleapis.com/auth/admin.directory.user.readonly
- https://www.googleapis.com/auth/admin.directory.domain.readonly
- https://www.googleapis.com/auth/admin.directory.customer.readonly
- https://www.googleapis.com/auth/admin.directory.group
- https://www.googleapis.com/auth/admin.directory.group.member
To remove the entry:
- Sign in to the Google Admin console at admin.google.com with a Super Administrator account.
- Navigate to Security > Access and data control > API controls.
-
Under Domain-wide delegation, select Manage Domain Wide Delegation.
-
Locate the entry whose Client ID matches the KnowBe4 Client ID for your hosting region. To confirm the match, select View details and compare the scope list to the one above.
-
Hover over the entry, select Delete, and confirm.
Step 2: Delete the Custom Admin Role
Deployment created a custom admin role named KnowBe4 Defend Deploy Role with these privileges: Domain Management, Groups (Read), Organizational Units (Read), and Users (Read). The role was assigned to the Deploy User. Google does not allow a role to be deleted while it still has members, so the role must be unassigned before deletion.
- In the Admin console, navigate to Account > Admin roles.
-
In the KnowBe4 Defend Deploy Role row, select the Actions button and select Delete role.
Step 3: Delete the Deploy User
The Deploy User (first name KnowBe4 Defend, last name Deploy User) operated on behalf of your organization through domain-wide delegation. The Deploy User account uses a Google Workspace license and has no remaining purpose after you remove the delegation entry and admin role. Suspend the account first to confirm that nothing else depended on the account, and then delete the account.
Suspend the Deploy User
- In the Admin console, navigate to Directory > Users.
- Find knowbe4-defend-deploy-user@[your domain] (or your custom address) in the user list.
- Hover over the user and select More options.
- Select Suspend user.
Delete the Deploy User
- In the Admin console, navigate to Directory > Users.
- Find knowbe4-defend-deploy-user@[your domain] (or your custom address) in the user list.
- Hover over the user and select More options.
- When Google asks whether to transfer the user's data, select the option to skip the transfer. The Deploy User account holds no business data.
- Select Delete user to confirm the deletion.
Step 4: Revoke Third-Party App (OAuth) Access
During deployment, a Super Administrator signed in to the Defend deployment center and granted Google Workspace permissions. Google recorded an OAuth consent for the Defend application. In Google, the application is named Egress Software Technologies. Setting the application's access to Blocked revokes its OAuth access to your Google data.










