As linhas nessa visualização são filtradas com base nos privilégios da função do banco de dados atual nos modelos. Isso garante que os participantes possam acessar apenas as
funções, os privilégios e os modelos a que têm acesso.
A filtragem de linhas também se aplica às seguintes visualizações relacionadas ao modelo:
[[["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-05 UTC."],[],[],null,["# Fine-grained access control for models\n\nThis page explains how [fine-grained access control](/spanner/docs/fgac-about) works with Spanner\nmodels.\n\nFor fine-grained access control users, you can control access to MODEL entities\nwith the following privilege:\n\n- Grant `EXECUTE` on the model to allow [machine learning functions](/spanner/docs/reference/standard-sql/ml-functions) to use it.\n\n ### GoogleSQL\n\n ```\n GRANT EXECUTE ON MODEL MODEL_NAME TO ROLE ROLE_NAME;\n ```\n\n`INFORMATION_SCHEMA` views for models\n-------------------------------------\n\nThe following views show the database roles and privileges information for models:\n\n- GoogleSQL-dialect databases: [`INFORMATION_SCHEMA.MODEL_PRIVILEGES`](/spanner/docs/information-schema#model-privileges)\n\nThe rows in this view are filtered based on the current database role's\nprivileges on models. This ensures that principals can view only the\nroles, privileges, and models that they have access to.\n\nRow filtering also applies to the following model-related views: \n\n### GoogleSQL\n\n- [`INFORMATION_SCHEMA.MODELS`](/spanner/docs/information-schema#models)\n- [`INFORMATION_SCHEMA.MODEL_OPTIONS`](/spanner/docs/information-schema#model-options)\n- [`INFORMATION_SCHEMA.MODEL_COLUMNS`](/spanner/docs/information-schema#model-columns)\n- [`INFORMATION_SCHEMA.MODEL_COLUMN_OPTIONS`](/spanner/docs/information-schema#model-column-options)\n\nThe system role `spanner_info_reader` and its members always see an unfiltered\n`INFORMATION_SCHEMA`.\n\nMore information\n----------------\n\n- [About models](/spanner/docs/ml)\n- [Create and manage models](/spanner/docs/ml-tutorial)\n- [About fine-grained access control](/spanner/docs/fgac-about)"]]