Baris dalam tampilan ini difilter berdasarkan hak istimewa peran database saat ini
pada model. Hal ini memastikan bahwa akun utama hanya dapat melihat
peran, hak istimewa, dan model yang dapat diaksesnya.
Pemfilteran baris juga berlaku untuk tampilan terkait model berikut:
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-17 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)"]]