角色和權限
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
SAS 入口網站 API 有多個角色 (定義如下),每個角色都授予使用者進行特定 API 呼叫的權限。角色會指派給使用者的 Google 帳戶。
SAS 客戶機構的第一位使用者是管理員,系統會在註冊程序中自動新增管理員。管理員接著就能新增其他使用者並指派角色,包括管理員角色。
使用者角色
您可以指派給使用者的角色有兩種:
role_admin
這個角色對獲授權的父項資源下的所有子項資源,都具有完整的管理權限。他們會在 SAS 入口網站中設定機構的結構,並管理使用者存取權。
role_cpi
這項角色適用於認證專業安裝人員 (CPI)。如要聲明擁有這個角色,使用者必須證明自己持有有效的 CPI 認證。他們使用 ValidateInstaller()
方法執行這項操作。只有具備經過驗證的 role_cpi
角色,才能使用 SignDevice()
方法提交需要 CPI 安裝的 CBSD 安裝參數。
方法
下表顯示哪些角色可以使用各類型的方法:
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-25 (世界標準時間)。"],[[["The SAS Portal API uses roles to control user permissions, with `role_admin` for administrative tasks and `role_cpi` for Certified Professional Installers."],["Initially, an Admin user is automatically assigned during sign-up and can manage other users and their roles."],["CPI users need to validate their certification using the `ValidateInstaller()` method to utilize the `SignDevice()` method for CBSD installations."],["Both `role_admin` and `role_cpi` have access to a range of methods like `GetCustomer()`, `ListDevices()`, and `UpdateDevice()`, while `SignDevice()` is exclusive to validated `role_cpi` users."],["Currently, user role assignment is handled by the SAS API Support team, and requests should be sent to [sas-api-support@google.com](mailto:sas-api-support@google.com)."]]],["The SAS Portal API assigns roles to users' Google Accounts to manage API access. The initial Admin role is established during signup, and admins can manage user roles. Currently, role assignment is handled by the SAS API Support team via request. Two roles exist: `role_admin` with full administrative control and `role_cpi` for Certified Professional Installers who must validate their certification using `ValidateInstaller()` to use `SignDevice()`. Both roles share access to other core methods, such as `GetCustomer()` and `CreateDevice()`.\n"]]