Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Cloud Functions
  • Comparison with other Yandex Cloud services
    • All guides
    • Using functions to get an IAM token for a service account
    • Connecting to managed databases from functions
      • Making a function public
      • Making a function private
      • Viewing roles assigned to a function
      • Assigning roles to a function
      • Revoking roles assigned to a function
    • Viewing operations with service resources
  • Tools
  • Pricing policy
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • FAQ
  1. Step-by-step guides
  2. Managing function access permissions
  3. Viewing roles assigned to a function

Viewing roles assigned to a function

Written by
Yandex Cloud
Updated at May 5, 2025

Note

A function automatically inherits roles assigned for a folder, cloud, or organization. However, they do not appear in the list of assigned roles. You can learn more about viewing roles here.

CLI
API

If you do not have the Yandex Cloud CLI yet, install and initialize it.

The folder specified when creating the CLI profile is used by default. To change the default folder, use the yc config set folder-id <folder_ID> command. You can specify a different folder using the --folder-name or --folder-id parameter.

To view roles assigned to a function, run this command:

yc serverless function list-access-bindings <function_name>

Result:

+------------------------------+--------------+-----------------------+
|           ROLE ID            | SUBJECT TYPE |       SUBJECT ID      |
+------------------------------+--------------+-----------------------+
| functions.functionInvoker    | system       | allAuthenticatedUsers |
+------------------------------+--------------+-----------------------+

To view function roles, use the listAccessBindings REST API method for the Function resource or the FunctionService/ListAccessBindings gRPC API call.

Was the article helpful?

Previous
Making a function private
Next
Assigning roles to a function
Yandex project
© 2025 Yandex.Cloud LLC