When I write the “Impersonate a User” the n8n get fail to connect an Service account.
All permissions are ok in google workspace.
I tried with python and the result is OK.
Idk what is hapenning but I think this toggle is broken.
Hey @Renan_Rez, while you wait for a response, here are some things that might help:
Automatically matched to your question.
Docs:
Forum:
@StoneCat, @anon61017519, @mohamed3nan - you’ve helped with similar issues before, can you take a look?
Automatically suggested by n8n’s community bot. It’s a pilot - please share feedback here.
Hi @Renan_Rez
When you enable “Impersonate a User,” you also need to configure Domain-Wide Delegation in your Google Workspace Admin Console. This allows the service account to act on behalf of users in your domain.
Check this doc
Also, check that the impersonated email address is actually a real Workspace user (not a group/alias) and that your Private Key includes full headers and valid line breaks.
Hi @Renan_Rez Welcome!
The save-time credential test is what is failing, not the credential itself. Your screenshot shows it saved, and the Python run confirms the service account and the delegation are correct. n8n’s test asks Google for a different scope set than the one you authorized against that Client ID, so it gets rejected, while a node call sends its own scope and goes through.
Leave it saved and run it in the node you actually need instead of trusting the banner.
See this: