#GMAIL_GET_PEOPLE: Proper scopes not attached to OAuth token

1 messages · Page 1 of 1 (latest)

lyric cipher
#

I am using the GMAIL_GET_PEOPLE action and I'm getting the following error:

The caller does not have permission to request "people/me". Request requires one of the following scopes: [profile].

I'm running composio-core v0.6.7. Maybe the requested scopes for GMail integration are not quite enough?

rugged sapphire
lyric cipher
#

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?

lyric cipher
#

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:

https://www.googleapis.com/auth/userinfo.profile

Can you confirm that Composio is adding this scope when it creates a GMail connection?

lyric cipher
#

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?

obsidian crater
#

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.

rugged sapphire
#

Is it working for you now @lyric cipher ??

lyric cipher
#

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.