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
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
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. Revoking roles assigned to a function

Revoking roles assigned to a function

Written by
Yandex Cloud
Updated at May 5, 2025
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 revoke a role for a function, run this command:

  • User:
    yc serverless function remove-access-binding \
      --id <function_ID> \
      --user-account-id <user_ID> \
      --role <role>
    
    Result:
    done (1s)
    
  • Service account:
    yc serverless function remove-access-binding \
      --id <function_ID> \
      --service-account-id <service_account_ID> \
      --role <role>
    
    Result:
    done (1s)
    
  • All authorized users (the All authenticated users public group):
    yc serverless function remove-access-binding \
      --id <function_ID> \
      --all-authenticated-users \
      --role <role>
    
    Result:
    done (1s)
    

To revoke function roles, use the updateAccessBindings REST API method for the Function resource or the FunctionService/UpdateAccessBindings gRPC API call.

Was the article helpful?

Previous
Assigning roles to a function
Next
Creating a function
© 2025 Direct Cursus Technology L.L.C.