An Azure service that automates the access and use of data across clouds without writing code.
Hello Logan Rosen,
No — currently you cannot restrict the Gmail Logic Apps connector (even with BYOA) to gmail.readonly. This is a known limitation of the managed connector, not a configuration issue on your side.
Workaround:
Use an Azure Functions service that directly calls the Gmail API with the gmail.readonly scope.
Typical pattern:
- Logic App triggers on schedule or webhook.
- Logic App calls an HTTP endpoint (Azure Function).
- Azure Function:
- Authenticates with Google using OAuth
- Uses
gmail.readonly- Calls Gmail API (
users.messages.list,users.messages.get)
- Function returns message metadata/content to the Logic App.
- Calls Gmail API (
- Uses
- Authenticates with Google using OAuth
Benefits:
- True least-privilege access
- Full control over OAuth scopes
- Avoids connector limitations
- Works with restricted Gmail environments
Alternative option
If you only need new mail notifications, another pattern is:
- Gmail → Pub/Sub push notifications
- Pub/Sub → webhook
- Webhook → Logic App
Please accept as answer and do a Thumbs-up to upvote this response if you are satisfied with the community help. Your upvote will be beneficial for the community users facing similar issues.