【问题标题】:Creating Alias Via Admin SDK API for secondary domain通过 Admin SDK API 为辅助域创建别名
【发布时间】:2021-04-21 05:18:20
【问题描述】:

使用以下内容运行 POST:

https://www.googleapis.com/admin/directory/v1/users/{{userid}}/aliases/

以下内容作为 JSON 中的正文

{
    "alias":"person@gsuite.company.com"
}

我只是收到以下错误

{
    "error": {
        "code": 400,
        "message": "Invalid Input: alias_email",
        "errors": [
            {
                "message": "Invalid Input: alias_email",
                "domain": "global",
                "reason": "invalid"
            }
        ]
    }
}

我希望得到一些帮助,因为它变得超级令人沮丧

Google 支持页面 https://developers.google.com/admin-sdk/directory/v1/guides/manage-user-aliases

【问题讨论】:

  • 你在请求 URL 中为 {{userid}} 使用了什么?
  • 用户 ID 是一个变量,其中只有一个二级域中的电子邮件,其中 gsuite 部分列在正文中
  • 二级域名是什么意思?
  • Google Workplace 环境中的辅助域。看起来你不能通过这种方式通过 API 添加任何别名,错误是它不能这样做不是有语法错误。我已经向主域添加了一个别名,并且 gsuite.company.com 域别名自动出现.请务必在 Google Workplace 中为您的辅助域指定主域的别名。

标签: alias google-admin-sdk


【解决方案1】:

请参见上面的 cmets,但始终为您在 Google Workplace 中的辅助域指定主域的别名,然后域别名就会出现

【讨论】:

    猜你喜欢
    • 2016-05-30
    • 1970-01-01
    • 2015-05-29
    • 2014-10-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-10-19
    • 2018-10-05
    相关资源
    最近更新 更多