Access control with IAM
Service Usage uses Identity and Access Management (IAM) to
control access to services. This page explains the IAM roles and
permissions related to Service Usage and how to use them to control
access.
Resource model
For Service Usage, there are three relevant resources:
The service you are using.
The project from which you are using the service.
The operation or long-running operation returned by certain methods.
Each Service Usage method requires a permission on one or more of these
resources.
IAM permissions
The following table shows the required permissions for each
Service Usage API method. You can also find this information in the
API reference.
IAM roles
With IAM, you give users permission by granting them a role. The
following tables list IAM basic and predefined roles, and the
permissions related to Service Usage that those roles include.
For more information about roles, see
Understanding roles.
Basic roles
| Name |
Title |
Permissions |
roles/viewer |
Viewer |
serviceusage.services.get
serviceusage.services.list
serviceusage.quotas.get
|
|
roles/editor
roles/owner
|
Editor
Owner
|
serviceusage.services.get
serviceusage.services.list
serviceusage.services.disable
serviceusage.services.enable
serviceusage.services.use
serviceusage.quotas.get
serviceusage.quotas.update
|
Predefined roles
| Role |
Permissions |
API Keys Admin
(roles/serviceusage.apiKeysAdmin)
Ability to create, delete, update, get and list API keys for a project.
|
apikeys.*
apikeys.keys.create
apikeys.keys.delete
apikeys.keys.get
apikeys.keys.getKeyString
apikeys.keys.list
apikeys.keys.lookup
apikeys.keys.undelete
apikeys.keys.update
orgpolicy.policy.get
serviceusage.apiKeys.*
serviceusage.apiKeys.regenerate
serviceusage.apiKeys.revert
serviceusage.operations.get
|
API Keys Viewer
(roles/serviceusage.apiKeysViewer)
Ability to get and list API keys for a project.
|
apikeys.keys.get
apikeys.keys.getKeyString
apikeys.keys.list
apikeys.keys.lookup
|
Service Usage Admin
(roles/serviceusage.serviceUsageAdmin)
Ability to enable, disable, and inspect service states, inspect operations, and consume quota and billing for a consumer project.
|
monitoring.timeSeries.list
serviceusage.consumerpolicy.*
serviceusage.consumerpolicy.analyze
serviceusage.consumerpolicy.get
serviceusage.consumerpolicy.update
serviceusage.effectivepolicy.get
serviceusage.groups.*
serviceusage.groups.list
serviceusage.groups.listExpandedMembers
serviceusage.groups.listMembers
serviceusage.operations.get
serviceusage.quotas.*
serviceusage.quotas.get
serviceusage.quotas.update
serviceusage.services.*
serviceusage.services.disable
serviceusage.services.enable
serviceusage.services.get
serviceusage.services.list
serviceusage.services.use
serviceusage.values.test
|
Service Usage Consumer
(roles/serviceusage.serviceUsageConsumer)
Ability to inspect service states and operations, and consume quota and billing for a consumer project.
|
monitoring.timeSeries.list
serviceusage.consumerpolicy.analyze
serviceusage.consumerpolicy.get
serviceusage.effectivepolicy.get
serviceusage.groups.*
serviceusage.groups.list
serviceusage.groups.listExpandedMembers
serviceusage.groups.listMembers
serviceusage.operations.get
serviceusage.quotas.get
serviceusage.services.get
serviceusage.services.list
serviceusage.services.use
serviceusage.values.test
|
Service Usage Viewer
(roles/serviceusage.serviceUsageViewer)
Ability to inspect service states and operations for a consumer project.
|
monitoring.timeSeries.list
serviceusage.consumerpolicy.analyze
serviceusage.consumerpolicy.get
serviceusage.effectivepolicy.get
serviceusage.groups.*
serviceusage.groups.list
serviceusage.groups.listExpandedMembers
serviceusage.groups.listMembers
serviceusage.operations.get
serviceusage.quotas.get
serviceusage.services.get
serviceusage.services.list
serviceusage.values.test
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-11-12 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-11-12 UTC."],[],[]]