404 Error when trying to connect Google Workspace

Require some help with this.

Describe the issue/error/question

Unable to connect to google oauth (Google Workspace Admin), throws 404 upon allowing permissions from google oauth

What is the error message (if any)?


Please share the workflow

Steps taken
1. Have Created a Google workspace Node on n8n desktop
2. Create Google oauth on Google Cloud
3. Added Admin SDK Scopes 
4. Created Oauth Credentials
5. Added Redirect URL into Google
6. Added Client ID and secret back to n8n node
7. Login and able to select google account, and approve permissions. 
8. Experience 404. 

(Select the nodes and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow respectively)
```{
  "meta": {
    "instanceId": "7287c68698d5c5c8d54569b7114e21d7eda8f9645d66d616878e798d50cbc6e1"
  },
  "nodes": [
    {
      "parameters": {
        "resource": "group",
        "additionalFields": {}
      },
      "id": "1b8bbb8b-8ea5-4cf9-8ef6-db07bcbd2b14",
      "name": "Google Workspace Admin",
      "type": "n8n-nodes-base.gSuiteAdmin",
      "typeVersion": 1,
      "position": [
        460,
        340
      ],
      "credentials": {
        "gSuiteAdminOAuth2Api": {
          "id": "6",
          "name": "Google Workspace Admin account"
        }
      }
    }
  ],
  "connections": {}
}

## Share the output returned by the last node
<!-- If you need help with transforming the data, please also share the expected output -->

## Information on your n8n setup
- **n8n version:**  1.8.0 Desktop
- **Database you're using (default: SQLite):**
- **Running n8n with the execution process [own(default), main]:**
- **Running n8n via [Docker, npm, n8n.cloud, desktop app]:** Desktop

Hey @noel,

Welcome to the community :raised_hands:

Can you restart n8n Desktop then update the URL in the Google API console to match the new URL? I suspect the tunnel had crashed which is why the 404 was appearing.

1 Like

Thanks @Jon, it works. Now on to other errors, when creating a user. It requested for a domain which i specify my domain as my organization domain. However it says that there’s a bad request.

I have change the domain in this instance to a generic one just for example.

I tried finding the ID for the domain as it says, but couldn’t find any.

{
  "meta": {
    "instanceId": "7287c68698d5c5c8d54569b7114e21d7eda8f9645d66d616878e798d50cbc6e1"
  },
  "nodes": [
    {
      "parameters": {
        "firstName": "john",
        "lastName": "doe",
        "password": "test12345@",
        "domain": "abc.com",
        "username": "[email protected]",
        "makeAdmin": "false",
        "additionalFields": {}
      },
      "id": "1b8bbb8b-8ea5-4cf9-8ef6-db07bcbd2b14",
      "name": "Google Workspace Admin",
      "type": "n8n-nodes-base.gSuiteAdmin",
      "typeVersion": 1,
      "position": [
        940,
        240
      ],
      "credentials": {
        "gSuiteAdminOAuth2Api": {
          "id": "10",
          "name": "Google Workspace Admin account"
        }
      }
    }
  ],
  "connections": {}
}
'

Hey @noel,

It appears to work ok for me if I select the domain from the dropdown list.

With the username you don’t need to specify the domain that is automatically added.

That’s odd, I don’t get any drop downlist in it. When I click refresh, it loads for a second and I could momentarily see the dropdown arrow, but disappears after a while and becomes a text field instead.

That is strange, If you click on the little dots above the field and select refresh does that change anything?

If you toggle it so it is an expression then type in the domain that also appears to work.

Thanks @Jon expression works well. Not too sure why the dropdown is not working for me. Tried on both Win 11 Machine and Mac

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.