GA/360:通过 API 的帐户用户访问时间

GA/360: Account User Access Time via API

是否可以通过 Google Analytics Management API(或其他相关 API)列出帐户用户上次访问 Analytics 的时间?我一直在仔细研究 documentation 但没有找到任何东西,尽管我肯定有可能错过了它,或者也许还有另一种获取信息的聪明方法。

我知道可以在360组织设置中查看,但如果我们可以通过API获得用户访问时间就更好了。

用例是自动化我们的 Analytics 权限流程的一部分,对于实际未使用 Analytics 的用户,在提醒电子邮件后一段时间不活动后撤销访问权限。我们有很多 Analytics 用户在多个位置使用多个属性,因此需要更自动化的权限流程。

遗憾的是,目前无法通过 APIs 实现。您说得对,管理层 API 是值得关注的地方。然而,API 返回的唯一用户信息是对 profiles/views, properties, and accounts 的用户引用。对于其中的每一个,返回的有关用户的唯一信息是:

  "userRef": {
    "kind": "analytics#userRef",
    "id": string,
    "email": string
  },

话虽如此,我邀请您关注管理 API,因为它会不时更新。

如果您想提出功能请求do it here

This is the place to report bugs or feature requests with the Google Analytics API. If that does not describe your use case, please review the other resources available here: https://developers.google.com/analytics/help/