GMAIL_GET_PEOPLE: Proper scopes not attached to OAuth token
I am using the
GMAIL_GET_PEOPLE
action and I'm getting the following error:
I'm running composio-core v0.6.7. Maybe the requested scopes for GMail integration are not quite enough?8 Replies
adverse-sapphire•2mo ago
Have you given the required permissions??
foreign-sapphireOP•2mo ago
When I go through the OAuth process when creating the GMail connection in the Composio dashboard, there is a single option to grant the access that Composio is requesting. But I don't have fine-grain control over the individual scopes that Composio is adding to its request. In my Google 3rd-party access controls, I see that Composio has access to view my contacts, but that's all it says.
Is there something else I need to do?
In the Google People API, in order to access the logged in user's contact info (via the
people/me
resource), you must have the following scope in your OAuth request:
Can you confirm that Composio is adding this scope when it creates a GMail connection?
Now that I know how, I manually added the scope to my GMail connection. However, the response returned by that particular API doesn't seem to have any of my contacts in it -- it just has information about me. So it is possible that the people/me
resource is not the right one. I know Composio is waiting for official access to the People API from Google. Maybe the Google People API deserves it's own integration, rather than being bundled with GMail?Yes, we are creating a seperate application for the People API and planning to not bundle it with gmail. The current bundling is only due to not having official API access.
Also, we added
GMAIL_GET_PEOPLE
can you try this action please.
But yes, we are adding search contacts action now. Again it will be eventually moved to the people application but for now it will be useful if you can get that custom scope in your gmail application.
you should see contacts like this in paginated manner.
adverse-sapphire•2mo ago
Is it working for you now @G-Rage ??
foreign-sapphireOP•2mo ago
I haven't had a chance to try yet. I had to pivot and just store the email address I needed as a memory so the assistant could retrieve it that way. I'll try this out later in the week.
adverse-sapphire•2mo ago
Sure and let us know, will help you if you get any issue