REST Resource: accounts.admins
资源:Admin
JSON 表示法 |
{
"name": string,
"admin": string,
"account": string,
"role": enum (AdminRole ),
"pendingInvitation": boolean
} |
字段 |
name |
string
不可变。资源名称。 对于账号管理员,其格式为:accounts/{account_id}/admins/{admin_id} 对于营业地点管理员,其格式为:locations/{locationId}/admins/{admin_id} 如果在管理员创建过程中设置了此字段,系统会忽略此字段。
|
admin |
string
可选。管理员的姓名。发出初始邀请时,这是邀请对象的电子邮件地址。调用 GET 时,如果邀请仍处于待处理状态,则返回用户的电子邮件地址。否则,它包含用户的名字和姓氏。 只有在创建管理员期间才需要设置此字段。
|
account |
string
不可变。此管理员所指的账号资源的名称。在调用 locations.admins.create 以邀请营业地点组作为管理员时使用。 如果在 CREATE 请求中同时设置了此字段和 admin ,则此字段的优先级更高,admin 中的电子邮件地址将被忽略。 格式:accounts/{account} 。
|
role |
enum (AdminRole )
必需。指定此管理员在指定账号或位置使用的角色。
|
pendingInvitation |
boolean
仅限输出。指明此管理员是否有对指定资源的待处理邀请。
|
AdminRole
表示管理员拥有的访问权限级别。如需了解详情,请参阅帮助中心文章
枚举 |
ADMIN_ROLE_UNSPECIFIED |
未指定。 |
PRIMARY_OWNER |
管理员拥有所有者级别的访问权限,并且是主要所有者。(在界面中显示为“主要所有者”)。 |
OWNER |
管理员拥有所有者级别的访问权限。(在界面中显示为“所有者”)。 |
MANAGER |
管理员拥有管理权限。 |
SITE_MANAGER |
管理员可以管理社交 (Google+) 信息页。(在界面中显示为“网站管理员”)。此 API 不允许创建具有 SITE_MANAGER 角色的账号管理员。 |
方法 |
|
邀请指定用户担任指定账号的管理员。 |
|
从指定账号中移除指定管理员。 |
|
列出指定账号的管理员。 |
|
更新指定账号管理员的管理员。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-21。
[null,null,["最后更新时间 (UTC):2024-08-21。"],[[["An Admin is an administrator of an Account or a location with different access levels defined by `AdminRole`."],["Admins can have roles like Primary Owner, Owner, Manager, and Site Manager, each with varying permissions."],["You can manage Admins by inviting, removing, listing, and updating them using the provided methods."],["Admin details include name, role, account association, and pending invitation status, represented in JSON format."],["The `AdminRole` enum defines the access level of an admin, impacting their capabilities within the account or location."]]],["Account and location administrators, identified by a resource name, have roles like `PRIMARY_OWNER`, `OWNER`, `MANAGER`, or `SITE_MANAGER`. Admins can be created by inviting a user via email, and roles are set during creation. The `pendingInvitation` field shows if an invite is pending. Available actions include: creating, deleting, listing, and updating admin access. `Admin` field contains the invitee's email address initially or user details after accepting.\n"]]