Para usar o Cloud Profiler em um projeto Google Cloud , você precisa ter as
permissões de IAM apropriadas nesse projeto.
As permissões não são concedidas diretamente aos usuários. em vez disso, são
concedidas indiretamente por meio de papéis, que agrupam permissões.
Para mais informações sobre esses conceitos, consulte a documentação do IAM sobre papéis, permissões e conceitos relacionados.
Permissões e papéis
Esta seção resume as permissões e os papéis que se aplicam ao Profiler.
Permissões
A tabela a seguir lista as permissões necessárias para as atividades de criação de perfil:
Activity
Permissões exigidas
Criar perfis
cloudprofiler.profiles.create
Listar perfis
cloudprofiler.profiles.list
Modificar perfis
cloudprofiler.profiles.update
Papéis
Os papéis do IAM incluem permissões e podem ser atribuídos a usuários,
grupos e contas de serviço. A tabela a seguir lista os papéis do
Profiler:
Role
Permissions
Cloud Profiler Agent
(roles/cloudprofiler.agent)
Cloud Profiler agents are allowed to register and provide the profiling data.
cloudprofiler.profiles.create
cloudprofiler.profiles.update
Cloud Profiler User
(roles/cloudprofiler.user)
Cloud Profiler users are allowed to query and view the profiling data.
cloudprofiler.profiles.list
resourcemanager.projects.get
resourcemanager.projects.list
serviceusage.quotas.get
serviceusage.services.get
serviceusage.services.list
Para saber como atribuir papéis de gerenciamento de identidade e acesso a um usuário ou conta de serviço, consulte Como gerenciar políticas.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-09-04 UTC."],[],[],null,["# Control access with IAM\n=======================\n\nCloud Profiler controls access to profiling activities\nin Google Cloud projects by using [Identity and Access Management (IAM)](/iam/docs/overview)\nroles and permissions.\n| **Note:** Cloud Profiler doesn't support [Workload identity federation](/iam/docs/workload-identity-federation). You can't use Cloud Profiler in an environment that relies exclusively on Workload identity federation for authentication.\n\nOverview\n--------\n\nTo use Cloud Profiler for a Google Cloud project, you must have the\nappropriate IAM permissions on that project.\n\nPermissions are not granted directly to users; permissions are instead\ngranted indirectly through roles, which group permissions.\nFor more information on these concepts, see the\nIAM documentation on [roles, permissions, and related\nconcepts](/iam/docs/overview#concepts_related_to_access_management).\n\nPermissions and roles\n---------------------\n\nThis section summarizes the permissions and roles that apply to\nProfiler.\n\n### Permissions\n\nThe following table lists the permissions required for profiling activities:\n\n### Roles\n\nIAM roles include permissions and can be assigned to users,\ngroups, and service accounts. The following table lists the roles for\nProfiler:\n\nTo learn how to assign Identity and Access Management roles to a user or service account, see\n[Managing Policies](/iam/docs/managing-policies)."]]