# Configuring Recording Storage using Google (Cloud Storage with a Service Account or Google Drive with a Personal Account)

Storing files in Google Drive can be done in two ways: using a Service Account (when you have Google Workspace) or using a Personal Account (when you have the normal @gmail.com email)

### Cloud Storage using a Service Account

From within your Gmail workspace admin account, access the [http://console.cloud.google.com/](http://console.cloud.google.com/)

Choose your project and enable the Cloud Storage API

[![image.png](https://manual.mirtapbx.com/uploads/images/gallery/2026-07/scaled-1680-/z06image.png)](https://manual.mirtapbx.com/uploads/images/gallery/2026-07/z06image.png)

In the credentials page, create a service account and store the json file in your configuration.

The service account has an email associated, like <recording@my-pbx-499816.iam.gserviceaccount.com>

Use you Google Drive to share the directory you identify for storing your recording with this email. Take note of the directory ID from the URL and configure it

[![image.png](https://manual.mirtapbx.com/uploads/images/gallery/2026-07/scaled-1680-/XO3image.png)](https://manual.mirtapbx.com/uploads/images/gallery/2026-07/XO3image.png)

[![image.png](https://manual.mirtapbx.com/uploads/images/gallery/2026-07/scaled-1680-/yMcimage.png)](https://manual.mirtapbx.com/uploads/images/gallery/2026-07/yMcimage.png)

### Google Drive using a Personal Account

From within your Gmail account, access the [http://console.cloud.google.com/](http://console.cloud.google.com/)

Choose your project and enable the Google Drive API

[![image.png](https://manual.mirtapbx.com/uploads/images/gallery/2026-07/scaled-1680-/image.png)](https://manual.mirtapbx.com/uploads/images/gallery/2026-07/image.png)

Move to the Credentials page and create a OAuth 2.0 Client IDs

[![image.png](https://manual.mirtapbx.com/uploads/images/gallery/2026-07/scaled-1680-/yCFimage.png)](https://manual.mirtapbx.com/uploads/images/gallery/2026-07/yCFimage.png)

When you create the secret, you can download the json file only once. That will be used inside the Settings page:

[![image.png](https://manual.mirtapbx.com/uploads/images/gallery/2026-07/scaled-1680-/UNHimage.png)](https://manual.mirtapbx.com/uploads/images/gallery/2026-07/UNHimage.png)

Configure the Authorize JavaScript origins based on your website and set the Authorized redirect URIs as follows:

[![image.png](https://manual.mirtapbx.com/uploads/images/gallery/2026-07/scaled-1680-/hg6image.png)](https://manual.mirtapbx.com/uploads/images/gallery/2026-07/hg6image.png)

Authorized redirect URIs: https://devel.mirtapbx.com/mirtapbx/googledriveoauth.php?action=callback

From the Google Drive create a directory and enter it to get the Recording ID in the address bar

[![image.png](https://manual.mirtapbx.com/uploads/images/gallery/2026-07/scaled-1680-/AN4image.png)](https://manual.mirtapbx.com/uploads/images/gallery/2026-07/AN4image.png)

That will be used in the Settings page as above

Connect with the OAuth process. Currently the credentials needs to be used once every 6 months or will be disabled