Search code examples
google-hangouts

Trying to enable my apps script bot for whole domain


I am trying to enable my bot for "Everyone in your own domain". An getting this error.

If I enable it via "Specific people and group in your domain" - it works.

Does anybody have an idea what I missed?

Trying to enable my bot for whole domain


Solution

  • When using the HEAD deployment, Apps script bots cannot be shared across an entire domain.

    Though subtle, it is mentioned in the docs at https://developers.google.com/hangouts/chat/how-tos/bots-apps-script.

    Image of description here

    To fix this you can just create a new deployment and it should run just fine.

    1. Go back to your Apps Script project
    2. Click on Publish > Deploy from Manifiest
    3. Click "Create"
    4. Use the new Deployment ID for your project.