Requested client not authorized

前端 未结 3 1883
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-22 04:16

I am trying to get google users from my domain using google service account.

But it throws error

Error:\"access_denied\", Description:\         


        
3条回答
  •  执念已碎
    2020-12-22 04:28

    The service account email address needs to have access the domain. Take the email and add it as a user just enough access that it can read should be good.

    Also did you change this for posting?

    "publickey.gserviceaccount.com"
    

    A service account email looks more like this:

    539621478854-imkdv94bgujcom228h3ea33kmkoefhil@developer.gserviceaccount.com
    

提交回复
热议问题