1. Resources
  2. Identity Threats
  3. Google Workspace

Google Workspace Admin Role Assignment Abuse

Also known as: Workspace admin role abuse, Super Admin role assignment, Workspace custom role privilege escalation, Delegated admin OU abuse

An attacker with a Google Workspace administrator session grants Super Admin, widens a custom role, or moves a user into a delegated admin's organizational unit to gain or keep control.

Platform
Google Workspace
Impact
Critical
Last updated
Attack difficulty
Low
Detection difficulty
Medium
Privileges required: Tier 0 or tenant admin
A super administrator session or token for role changes. The organizational unit variant needs only a delegated admin with user management rights and someone who can move users.
What the attacker gains
A second super administrator, a harmless-looking role that carries administrator privileges, or delegated authority over users that were outside the admin's scope.

How it works

Google Workspace uses role-based access control for administration. A role is a named set of privileges. An assignment gives a role to a user, a security group or a service account, either for the whole customer or for selected organizational units (OUs). Effective authority is always the product of three things: what the role contains, who it is assigned to, and where the target object sits in the OU tree.

Super Admin is the role with every privilege, and it always applies to the whole organization. Below it are prebuilt roles such as User Management Admin and custom roles that a super administrator composes from individual privileges.

Each of the three factors can be changed on its own, which gives the attack its variants:

  • Grant Super Admin or another role. With a super administrator session, the attacker assigns Super Admin to an account they control, or assigns a narrower role that is enough for their goal (user management to reset passwords, security settings to change single sign-on). Roles can also be given to a service account, which never signs in interactively.
  • Widen a custom role. Adding a privilege to an existing custom role upgrades everyone who already holds it. The list of administrators and their role names looks the same before and after. An account that holds such a role is a shadow admin.
  • Move the target into scope. Google lets user management privileges be limited to specific OUs. Moving a user into an OU where a compromised delegated admin has reach extends that admin's authority without touching any role. The same move can also take a user out of an OU with stricter security settings.
  • Use a role-bearing group. Security groups can hold any role except Super Admin and Reseller Admin. Adding a member to such a group is a role assignment in effect, covered in Google group membership privilege escalation.
  • Rely on what was never removed. A direct role that stays after a team change, or a group-derived role that survives the removal of a direct one, is standing access nobody is watching.

This is the Workspace counterpart of Entra ID directory role assignment abuse.

Prerequisites

  • For role assignments and role edits: a super administrator's session, or an OAuth token or domain-wide delegation that acts with a super administrator's authority.
  • For the OU variant: control of a delegated admin whose role includes user management privileges (for example password reset) for some OU, plus the ability to move the target user there. Moving users is a user management sub-privilege of its own; the move can also come from a second compromised admin or from a directory synchronization rule that places users by an attribute.
  • On the target side: no multi-party approval for sensitive actions. Where it is turned on, another super administrator has to approve role changes.

Attack steps

For authorized security testing and lab use only. Run these steps against systems you own or have written permission to assess.

1. Map roles, privileges and assignments

# All roles, with their privileges
gam print adminroles privileges

# Who holds what, and for which organizational unit
gam print admins

# The same through the Directory API
curl -s -H "Authorization: Bearer $ACCESS_TOKEN" \
  "https://admin.googleapis.com/admin/directory/v1/customer/my_customer/roles"
curl -s -H "Authorization: Bearer $ACCESS_TOKEN" \
  "https://admin.googleapis.com/admin/directory/v1/customer/my_customer/roleassignments"

2. Variant A: grant a role

The shortest path makes a controlled user a super administrator:

curl -s -X POST "https://admin.googleapis.com/admin/directory/v1/users/mallory@corp.example.com/makeAdmin" \
  -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" \
  -d '{"status": true}'

A specific role is assigned with a role assignment. assignedTo is the unique ID of the user, group or service account, and scopeType is CUSTOMER or ORG_UNIT (with orgUnitId):

curl -s -X POST "https://admin.googleapis.com/admin/directory/v1/customer/my_customer/roleassignments" \
  -H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" \
  -d '{"roleId": "<ROLE_ID>", "assignedTo": "<USER_UNIQUE_ID>", "scopeType": "CUSTOMER"}'

The same with GAM:

gam create admin mallory@corp.example.com id:<ROLE_ID> customer
gam create admin mallory@corp.example.com id:<ROLE_ID> org_unit "/Support"

3. Variant B: widen a role that someone already holds

# See what the role contains today
gam info adminrole "Helpdesk Tier 1" privileges

# Replace its privilege list with a wider one
gam update adminrole "Helpdesk Tier 1" privileges "USERS_ALL,USER_SECURITY_ALL,GROUPS_ALL"

Or create a new role with a quiet name and assign it:

gam create adminrole "Reporting Viewer" description "Read-only reports" privileges "USERS_ALL,SECURITY_SETTINGS"

4. Variant C: move a user into a delegated admin's OU

# Move the target into the OU that the compromised delegated admin manages
gam update org "/Support" move user alice@corp.example.com

# As the delegated admin: set a new password and sign in as the user
gam update user alice@corp.example.com password "<NEW_PASSWORD>"

Impact

A super administrator controls every user, group, setting and piece of data in the organization: password resets, 2-Step Verification settings, single sign-on, domain-wide delegation, data export. Where the same identities sign in to Google Cloud, the super administrator can also take control of the Google Cloud organization. A second super administrator that the defenders do not know about is durable persistence, and it is privilege escalation for anyone who started from a narrower token.

A widened custom role gives the same kinds of power to accounts that no review flags as administrators.

The OU variant gives account takeover of chosen users through password reset. An OU move can also change which security settings apply to the user, because settings such as 2-Step Verification enforcement are applied per OU.

Changes can take up to 24 hours to take effect, though Google notes they usually happen sooner.

OPSEC and artifacts

  • Choosing a narrower role over Super Admin. Super Admin assignments are the first thing reviewers look for. A role with user management or security settings privileges does most of what an attacker needs and draws less attention. It still writes an ASSIGN_ROLE event with the role name, the assignee and the OU (assignRole in Cloud Logging).
  • Editing instead of assigning. Widening a role writes no assignment event. It writes ADD_PRIVILEGE with the privilege and role name (addPrivilege), and creating a role writes CREATE_ROLE (createRole). A rename is its own event, RENAME_ROLE, with the old and new names.
  • Assigning to a service account or group. The assignee does not appear in a list of human administrators. The assignment event is the same.
  • Splitting the OU variant across two actors. The move and the later password reset can come from different administrators and hours apart. The move is MOVE_USER_TO_ORG_UNIT with the user, the old OU and the new OU (moveUserToOrgUnit); the reset is a CHANGE_PASSWORD event by the delegated admin.
  • makeAdmin. A user who becomes a super administrator shows up as a grant of admin privileges (GRANT_ADMIN_PRIVILEGE, grantAdminPrivilege) or as an assignment of the Super Admin role. Monitor both events.
  • Cleaning up. Removing the role afterwards writes UNASSIGN_ROLE or REMOVE_PRIVILEGE. The original events stay in the admin audit log for its retention period.

Detection

Role changes are rare in most organizations, so every one of them can be reviewed.

  • Assignments. The admin role assigned rules match role assignments and grants of admin privileges. Treat Super Admin, assignments to service accounts, and assignments made outside change windows as high priority.
  • Role definitions. The custom admin role rules match role creation and added privileges. For each ADD_PRIVILEGE, list who already holds the role: they are the accounts that were just promoted.
  • OU moves before admin actions. The organizational unit move rules match the move. Correlate a move with a password reset by an admin on the same user within the following hours, and reconstruct the user's OU on both sides of the move rather than reading the current placement.
  • Removals. The role unassigned rules show cleanup and also attacks on other administrators.

A Cloud Logging filter for the role events of the shared Workspace admin audit log:

logName="organizations/000000000000/logs/cloudaudit.googleapis.com%2Factivity"
protoPayload.serviceName="admin.googleapis.com"
protoPayload.methodName=("google.admin.AdminService.assignRole" OR
  "google.admin.AdminService.grantAdminPrivilege" OR
  "google.admin.AdminService.addPrivilege" OR
  "google.admin.AdminService.createRole" OR
  "google.admin.AdminService.updateRole")

The same events are available from the Reports API with applicationName=admin and eventName=ASSIGN_ROLE, ADD_PRIVILEGE or CREATE_ROLE. Keep a dated snapshot of roles, privileges and assignments (gam print adminroles privileges, gam print admins) so that each event can be compared with the state before it.

Mitigation

  • Keep the super administrator population small and separate. Google recommends more than one super administrator, each a dedicated account that is not used for daily work, with 2-Step Verification and security keys.
  • Turn on multi-party approval for sensitive actions where the edition offers it, so that a single compromised super administrator cannot change roles alone.
  • Delegate with least privilege. Use prebuilt or custom roles limited to the OUs they are needed for, and check for each privilege whether it can be limited to an OU at all. Privileges for groups, domains and reports cannot.
  • Review role definitions, not only assignments. Compare the privilege set of every custom role with an approved baseline on a schedule, and after every ADD_PRIVILEGE event.
  • Control OU moves. Limit the Move users privilege, keep sensitive accounts in OUs that no delegated admin manages, and review moves of users into delegated OUs.
  • Protect role-bearing groups. Restrict who can manage the membership of any security group that holds an admin role.
  • Use expiring assignments. Role assignments can be given an end date of up to one year; use it for temporary work instead of standing access.
  • Tie access reviews to job changes, and check both direct and group-derived roles when removing an administrator.

Detection rules for this attack

Log events to collect

FAQ

Who can assign admin roles in Google Workspace?

Assigning roles from the Admin roles page requires a super administrator. A role can go to a user, a security group or a service account, for the whole organization or, for roles that support it, for selected organizational units. Groups can't hold Super Admin, and service accounts can hold any role except Super Admin.

Why is editing a custom role as dangerous as assigning one?

Authority is the role definition and the assignment together. If a privilege is added to a custom role, every existing assignee gains it at once, and no assignment event is written. A review that only lists who holds which role name misses the change.

How does moving a user between organizational units change who controls the account?

User management privileges can be limited to specific organizational units. A delegated admin scoped to one unit can reset passwords there. When a user is moved into that unit, the delegated admin gains the same power over the new arrival, although the admin's own assignment never changed.

Can a delegated admin reset a super administrator's password?

No. Google states that only super administrators can change another administrator's settings. The organizational unit variant therefore works against ordinary users, including service and shared accounts with broad data access, not against other administrators.

References

Techniques, tactics and threat groups: MITRE ATT&CK® Enterprise v20.1. © The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. Last updated 2026-11-29.

Does this attack work in your environment?

Forestall maps every identity and the attack paths between them across Active Directory, Entra ID and cloud, read-only and agentless.