角色和权限
SAS Portal API 具有多个角色,其中的每个角色都授予用户进行某些 API 调用的权限。系统会将角色分配给用户的 Google 帐号。
SAS 客户组织中的第一个用户是管理员,其在注册过程中会自动添加。然后,管理员可以添加其他用户,并为其分配角色,包括管理员角色。
用户角色
可向用户分配以下两种角色:
角色_管理员
此角色对其获得访问权限的父资源下的所有子资源拥有完整的管理权限。他们在 SAS 门户中设置组织结构,并管理用户访问权限。
role_cpi
此角色适用于获得认证的专业安装人员 (CPI) 用户。如需获得此角色,用户需要证明他们具有有效的 CPI 认证。为此,他们使用 ValidateInstaller()
方法。只有具有经过验证的 role_cpi
角色的用户才能使用 SignDevice()
方法提交需要安装 CPI 的 CBSD 的安装参数。
方法
下表显示了哪些角色可以使用每种方法:
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2022-09-26。
[null,null,["最后更新时间 (UTC):2022-09-26。"],[[["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"]]