Zum Inhalt springen
Search the hub

← All suppliers

Workplace

Google Workspace

Workspace: user/OU, Drive/Calendar/Gmail meta, login reports — Admin/Reports API; no mail/file bodies.

Templates only — grain, filters, custom fields and ownership are firm-specific.

Copy formulas into the KPI Definition Card, then adapt grain and filters.

Example

Active users

How many non-suspended users are there (snapshot)?

COUNT(*) FROM user WHERE suspended = false
Grain
Active directory user
Fields
User.id, User.suspended, User.orgUnitPath, User.organizations[0].department
Dimensions
org_unit, department

suspended=false; treat archived/deleted users separately.

Adapt: Activity-based: users with login in period (Reports API).

Example

Drive files created

How many Drive files were created in the period?

COUNT(*) FROM drive_file_meta WHERE createdTime IN period
Grain
Drive file meta
Fields
DriveFile.id, DriveFile.createdTime, DriveFile.mimeType
Dimensions
org_unit, department, file_type

Drive API meta or Reports drive usage — never load content.

Adapt: Separate shared drives vs My Drive.

Meet minutes

How many Meet minutes were consumed in the period (Reports)?

SUM(meet_minutes) FROM reports_meet_usage WHERE date IN period
Grain
Meet usage (Reports)
Fields
LoginActivity.time, User.orgUnitPath
Dimensions
org_unit, department, event_type

Via Admin Reports / Meet usage — do not derive from recordings.

Adapt: If Reports field missing: calendar Meet event duration as proxy (weak).

Login failures

How many failed logins occurred in the period?

COUNT(*) FROM login_activity WHERE eventName = 'login_failure' AND time IN period
Grain
Failed login event
Fields
LoginActivity.eventName, LoginActivity.time, LoginActivity.actor.email
Dimensions
org_unit, department, event_type

Reports API login events; aggregate at high volume.

Adapt: Separate suspicious login vs plain failure when available.

Groups count

How many groups exist in the directory?

COUNT(*) FROM group
Grain
Group
Fields
Group.id, Group.email, Group.directMembersCount
Dimensions
org_unit, department

Directory Groups API; clarify dynamic vs security groups in definition.

Adapt: Only groups with members > 0 or with mail traffic.

Formula overview

Same formulas as a table — copy into KPI cards or SQL drafts.

Label Formula Grain Fields
Active users COUNT(*) FROM user WHERE suspended = false Active directory user User.id, User.suspended, User.orgUnitPath, User.organizations[0].department
Drive files created COUNT(*) FROM drive_file_meta WHERE createdTime IN period Drive file meta DriveFile.id, DriveFile.createdTime, DriveFile.mimeType
Meet minutes SUM(meet_minutes) FROM reports_meet_usage WHERE date IN period Meet usage (Reports) LoginActivity.time, User.orgUnitPath
Login failures COUNT(*) FROM login_activity WHERE eventName = 'login_failure' AND time IN period Failed login event LoginActivity.eventName, LoginActivity.time, LoginActivity.actor.email
Groups count COUNT(*) FROM group Group Group.id, Group.email, Group.directMembersCount

Tour