管理账号和营业地点的管理员
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
在 My Business Account Management API 中,负责管理商家账号和营业地点的用户称为“管理员”。如要详细了解管理员如何管理账号和营业地点,请参阅商家资料账号和营业地点组以及管理商家信息详情。
账号和营业地点的管理员由以下集合表示:
管理员的资源路径如下所示:
accounts/{accountId}/admins/{adminId}
locations/{locationId}/admins/{adminId}
您可以执行以下操作:
列出某个账号或营业地点的管理员
列出指定账号或营业地点的管理员。
列出某个账号的管理员
GET
https://mybusiness.googleapis.com/v1/accounts/{accountId}/admins
列出某个营业地点的管理员
GET
https://mybusinessaccountmanagement.googleapis.com/v1/locations/{locationId}/admins
为某个账号或营业地点添加管理员
邀请他人担任某个账号或营业地点的管理员。您必须将邀请对象的电子邮件地址与 Google 账号相关联。邀请对象使用其 Google 账号登录商家资料时,系统会提示他们同意相应的条款及条件,同意后方能进行更改。
邀请用户担任账号管理员
POST
https://mybusinessaccountmanagement.googleapis.com/v1/accounts/{accountId}/admins
邀请用户担任营业地点管理员
POST
https://mybusinessaccountmanagement.googleapis.com/v1/locations/{locationId}/admins
{
"role": "MANAGER",
"adminName": "example@example.com"
}
邀请营业地点组担任营业地点管理员
POST
https://mybusinessaccountmanagement.googleapis.com/v1/locations/{locationId}/admins
{
"account": "LocationGroupID",
"role": "MANAGER"
}
移除某个账号或营业地点的管理员
移除指定账号或营业地点的管理员。
移除某个账号的管理员
DELETE
https://mybusinessaccountmanagement.googleapis.com/v1/accounts/{accountId}/admins/{adminId}
移除某个营业地点的管理员
DELETE
https://mybusinessaccountmanagement.googleapis.com/v1/accounts/locations/{locationId}/admins/{adminId}
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-05-08。
[[["易于理解","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"]],["最后更新时间 (UTC):2025-05-08。"],[[["The My Business Account Management API uses the term \"admins\" to refer to managers of business accounts and locations, providing tools to manage accounts, locations, and listing details."],["Admins can be managed through dedicated collections and resource paths, allowing for operations like listing, adding, and removing admins for specific accounts or locations."],["API endpoints facilitate listing existing admins, inviting new admins (users or LocationGroups) by associating their email with a Google Account, and removing admin access."],["Admins can be assigned roles and permissions using the API, ensuring appropriate levels of access for managing business accounts and locations."],["All admin management operations, including adding, listing, and removing, are performed using standard HTTP methods (GET, POST, DELETE) against specific API endpoints."]]],[]]