GWS_GRANT_ROLE
Summary
FSProtect ACL Alias
GWS_GRANT_ROLE
GCP Alias
IAM & Hierarchy Control
Affected Object Types
Users
Exploitation Certainty
Certain
Granting Roles
Google Workspace Super Admin
Description
GWS_GRANT_ROLE indicates that a Google Workspace identity can assign admin roles to other users in the Google Workspace directory. Admin roles in Google Workspace grant access to the Admin Console, Google Workspace APIs, and can control user accounts, groups, devices, and organizational settings.
An attacker with this edge can escalate privileges by granting a Super Admin role (or any other privileged role) to an attacker-controlled account, effectively taking full control of the Workspace organization.
Key abuse scenarios:
Grant Super Admin to an attacker-controlled account → full control of the Workspace directory.
Grant User Management Admin → ability to reset passwords and impersonate any non-admin user.
Grant Groups Admin → modify group memberships that inherit GCP IAM roles via
GWS_IN_GROUP.
Identification
GCP Console
Open Google Admin Console (
admin.google.com) → Account → Admin roles.Click
Super Adminrole → Admins tab to see who holds the role.
gcloud CLI
Exploitation
gcloud CLI
Compound path: GWS_GRANT_ROLE → grant Super Admin → GWS_RESET_PASSWORD on any user → account takeover → access Gmail, Drive, and all GCP resources the target user manages.
Mitigation
Restrict admin role assignment to Super Admins only — prevent delegated admins from assigning roles above their own privilege level.
Enforce phishing-resistant MFA (passkeys/security keys) on all admin accounts.
Use least-privilege admin roles — avoid granting Super Admin when a more limited role suffices.
Audit admin role assignments regularly via Admin Console reports or the Admin SDK.
Detection
Admin Activity
ASSIGN_ROLE
Admin audit log, ROLE_NAME, USER_EMAIL
Alert on:
New Super Admin role assignments.
Admin role assignments made outside of change management workflows.
Role assignments to accounts not in the organization's primary domain.
References
https://knowledge.workspace.google.com/admin/users/create-edit-and-delete-custom-admin-roles
https://developers.google.com/admin-sdk/directory/v1/guides/manage-roles
Last updated
Was this helpful?