Error 403 : Not Authorized to access this resource/api

Hi All,

The idea is to get the list of groups which are associated with the specific user. I am trying to do this with Google Workspace node. But I couldn’t get the stats. And in the Google console API & Service, I have provided the necessary scopes as well. Please help me on this

https://www.googleapis.com/auth/admin.directory.user
https://www.googleapis.com/auth/admin.directory.user.readonly
https://www.googleapis.com/auth/admin.directory.group
https://www.googleapis.com/auth/admin.directory.user
https://www.googleapis.com/auth/admin.directory.domain.readonly
https://www.googleapis.com/auth/admin.directory.userschema.readonly

Reference Link : Method : Users.get

Error,

ERROR: Forbidden - perhaps check your credentials?
403 - {"error":{"code":403,"message":"Not Authorized to access this resource/api","errors":[{"message":"Not Authorized to access this resource/api","domain":"global","reason":"forbidden"}]}} - Not Authorized to access this resource/api

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @n8n ,

  • n8n version: Version 1.19.0
  • Database (default: SQLite): -
  • n8n EXECUTIONS_PROCESS setting (default: own, main): own
  • Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
  • Operating system: -

Hey @Asuwini_P,

It looks like Google is saying the account that you have authenticated with against Google Workplace doesn’t have permission to do what you are trying.

I take it the account authenticated is an admin or has rights in Google to get the account and the username being used is in your org and not another.

2 Likes

After authenticating with Admin account, I can get the details

Thank you @Jon

2 Likes

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