Tài liệu này chứa thông tin xác thực và uỷ quyền dành riêng cho API Google Vault. Trước khi đọc tài liệu này, hãy nhớ đọc thông tin chung về việc xác thực và uỷ quyền của Google Workspace tại bài viết Tìm hiểu về việc xác thực và uỷ quyền.
Để xác định cấp truy cập được cấp cho ứng dụng, bạn cần xác định và khai báo phạm vi uỷ quyền. Phạm vi uỷ quyền là một chuỗi URI OAuth 2.0 chứa tên ứng dụng Google Workspace, loại dữ liệu mà ứng dụng truy cập và cấp truy cập. Phạm vi là các yêu cầu của ứng dụng để xử lý dữ liệu Google Workspace, bao gồm cả dữ liệu Tài khoản Google của người dùng.
Khi cài đặt ứng dụng, người dùng sẽ được yêu cầu xác thực các phạm vi mà ứng dụng sử dụng. Nhìn chung, bạn nên chọn phạm vi tập trung hẹp nhất có thể và tránh yêu cầu các phạm vi mà ứng dụng không yêu cầu. Người dùng sẵn sàng cấp quyền truy cập vào các phạm vi bị giới hạn và được mô tả rõ ràng hơn.
[null,null,["Cập nhật lần gần đây nhất: 2024-12-21 UTC."],[[["This document provides Google Vault API-specific authorization and authentication details, requiring prior understanding of Google Workspace's general authentication and authorization."],["You need to configure the OAuth consent screen, choose scopes, and register your app for authorization using OAuth 2.0."],["Vault API uses specific scopes defining the level of access granted to your application to Google Workspace data, requiring careful selection to ensure user privacy."],["The two key scopes for Vault API are `https://www.googleapis.com/auth/ediscovery` for managing eDiscovery data and `https://www.googleapis.com/auth/ediscovery.readonly` for viewing it."]]],["The Google Vault API utilizes OAuth 2.0 for authorization, requiring the configuration of an OAuth consent screen and scope selection. Scopes define the app's access level to Google Workspace data, and users must validate these scopes during app installation. Applications should request the most narrowly focused scopes possible. Public applications using specific scopes must undergo a verification process to avoid being flagged as \"unverified.\" The Vault API offers two scopes: `ediscovery` (manage eDiscovery data) and `ediscovery.readonly` (view eDiscovery data).\n"]]