[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-27。"],[],[],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)"]]