
Provisioning a tenant the right way around
A Google Workspace deployment starts with the domain and the directory, and getting these right first prevents the most painful rework later. Verify every public domain the tenant will use, configure the primary and secondary domains, and decide the directory source of truth before you create a single user. The source of truth decision matters because Google Workspace is not a directory itself — it mirrors an authoritative directory, usually Active Directory or an HR system, through Google Cloud Directory Sync (GCDS).
GCDS runs on a schedule and pushes changes from the authoritative directory into Workspace, so identities, groups, and org units stay consistent. The trap is bidirectional sync: never let Workspace write back to the authoritative directory. One-way sync from the source of truth to Workspace keeps the model simple and prevents the divergence that bidirectional sync inevitably produces.
Directory sync with GCDS
Google Cloud Directory Sync reads the authoritative directory (typically Active Directory via LDAP), maps its objects to Workspace users, groups, and org units, and applies the changes as a scheduled push. The mapping rules determine how a user's attributes, group memberships, and org-unit placement translate, and these rules are where most sync problems originate — a changed UPN, a renamed OU, or a stale mapping that no longer matches the source directory's structure.
Run GCDS in dry-run mode after any mapping change to preview the diff before it is applied, and schedule the sync frequently enough that a joiner or leaver is reflected within your target window. For leavers, GCDS suspends rather than deletes the Workspace user by default, which is the safer choice — a suspended user keeps their data for recovery and audit, while a deleted user's data is gone after the retention period.
- Verify every public domain and configure primary and secondary domains first
- Use one-way sync from the authoritative directory to Workspace — never bidirectional
- Run GCDS in dry-run mode after any mapping change to preview the diff
- Suspend rather than delete leavers so their data is retained for recovery
Gmail security and mail-flow routing
Gmail security is configured through a combination of routing rules, content compliance filters, and the connection security settings for inbound and outbound mail. The most important baseline is to enforce TLS for inbound mail from your own domains and partners, and to publish SPF, DKIM, and DMARC records so receiving systems can authenticate mail sent from your domain. DMARC in particular should start in monitoring (p=none) mode, be tuned against the reports, and then be moved to quarantine and reject as spoofing drops to zero.
Content compliance filters catch data leaving the organisation — for example, credit-card patterns or patterns matching your internal project codenames — and can route, quarantine, or block the message. Pair these with an outbound routing rule that logs mail to a journaling address if your compliance regime requires it. Test every routing change on a small pilot group before applying it tenant-wide.
| Control | Purpose | Rollout approach |
|---|---|---|
| SPF + DKIM | Authenticate outbound mail | Publish records; verify before enforcing |
| DMARC | Reject spoofed mail from your domain | Start p=none, tune, then quarantine and reject |
| TLS enforcement | Encrypt mail in transit | Enforce for partners and own domains |
| Content compliance | Prevent data exfiltration by pattern | Pilot on a small group first |
Drive, sharing, and context-aware access
Google Drive sharing is powerful, which is exactly why it needs governance. Without controls, a user can share an entire Drive folder with anyone on the internet in two clicks. The governance levers are sharing settings at the org-unit level (who users can share with — anyone, domain only, or specific people), and Drive DLP rules that detect sensitive content in files and block external sharing of matching files.
Context-aware access adds an identity-plus-context gate: a user can access a sensitive document only from a trusted network or a managed device, even after they have authenticated. This is the Workspace equivalent of Conditional Access, and it is the right control for sensitive documents that must be reachable to the right people but not from an unmanaged device on an untrusted network.
# List files in a folder shared outside the domain
gam user ceo@contoso.com show filelist query "mimeType = 'application/vnd.google-apps.folder'"
# Set org-unit sharing restriction (domain only)
gam update org Engineering drivefilesharingsettings allowsharinginorganizationWritten by
Jamshed Alam
Global MSP & IT Infrastructure Consultant with 20 years across Exchange, Microsoft 365, Azure, security and automation. Available for project and contract work worldwide.