Home > Back-end >  Google Workspace - Create Space - Google Apps Script
Google Workspace - Create Space - Google Apps Script

Time:10-28

Upon a Google Form being submitted, I want to cause a 'trigger' that creates a 'space' in google workspace.

enter image description here

I cannot find any documentation within GAS (Google Apps Script) that documents Google Workspaces.

Source: https://developers.google.com/apps-script/overview

Due to the naming of the product google searches get confused when trying to create a 'space' within the recently re-named, google 'WorkSpace'.

Is there currently no support with Apps Script & 'Spaces'?

If there is, can you please link the documentation.. Perhaps it's listed in the documentation under a legacy name?

Thank you.

CodePudding user response:

As per Google's Blog update on 8th September 2021:

In June 2021, we announced that ‘Rooms’ in Google Chat would evolve to become ‘Spaces’. As part of that evolution, starting on September 8, 2021, any user who has enabled Chat in their Gmail settings will start to see the term ‘Rooms’ automatically updated to ‘Spaces’.

So to create a Space, one would need to create a Room in Google Chat; but unfortunately at the moment, the Google Chat API doesn't allow creating Rooms/Spaces.

As Google Apps Script uses the Workspace APIs in its native functions, they are limited by the functionality of what the APIs can do too.

There is a feature request to add creation of Rooms/Spaces to the API which you can find here, giving it a star can help boost its priority. It does seem like it's on the way, but as pointed out in this answer it poses modes of abuse to may only come as a limited feature.

I know this is generally bad news, but I hope this is helpful to you!

  • Related