Creating a group with Admin SDK Directory API in Google Apps Script - Error 403

纵饮孤独 提交于 2019-12-04 19:04:21

Figured it out:

  1. Went to Resources - Advanced Google Services...
  2. Clicked the link for the Google Developers Console
  3. Clicked on the Credentials section in the sidebar
  4. Clicked Create New Key under Public API access
  5. Clicked Browser Key
  6. Added "?key=" followed by the key that it generated to the end of the url string

So the complete url string looked like this:

var url = 'https://www.googleapis.com/admin/directory/v1/groups?key=XXXXXXXXXXX-XXXXXXXXXXXXX-XXXXXXXXXXXXX';
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!