I have a use case where I need to read emails sent to a Google group.
Is this possible via the Gmail API?
I have created a google dev account and attempted this with no luck.
Related
Using the following endpoint returns all mail (both sent and received) for a work account:
GET /me/messages
However it doesn't return all received mail for personal/family accounts. Both the v1.0 and beta versions display this behaviour.
Is there a way of retrieving all received mail for personal/family accounts?
returns some or returns error? did you give the api access permissions to those accounts?
make sure to check this official document.
The documentation says you can get up to only 1000 emails at once. And from permissions section, it seems only possible to get all emails from within an application given the permission Mail.ReadBasic.All even for work account.
I don't have a work account thus I tested sending an email to myself on my personal account and tested the query on graph-explorer test page here. The first 2 results are those freshly received and freshly sent ones. with this I will say a work and personal/family accounts are no different on getting emails since you said you can get both received and sent mails from a work account.
so in short, you can get up to 1000 emails unless you use an application with permission to read all but with limited properties because Mail.ReadBasic
allows the app to read email in the signed-in user's mailbox except body, previewBody, attachments and any extended properties, and hence I deduce Mail.ReadBasic.All does the same
I want to send an email to an Office365 Group using Graph API. My issue is that all the emails are sent from the user I am using to generate the token. This is expected as the API endpoint only supports User tokens (Delegated permissions) as described here.
https://learn.microsoft.com/en-us/graph/api/conversation-post-threads?view=graph-rest-1.0&tabs=csharp
Is there any way I can use Graph API to send an email to an O365 Group as another user? I know this is possible when sending an email to a regular user (https://learn.microsoft.com/en-us/graph/outlook-send-mail-from-other-user), but not sure how to do it with O365 Groups.
Thanks!
I guess this is not possible, unfortunately. You have to use EWS.
What I am trying to achieve -
When I call message API, it returns the group address to which mail is sent, I want to get the members of the group, And for that I believe I need group Id, so I am using the groups API mentioned below https://graph.microsoft.com/v1.0/groups
But this API returns an empty list to me.
Note: email I using is #outlook.com, not xyz.com.
The Microsoft graph API doesn't support personal accounts as you can see the below image. You should have a Work account to get the group details. You were able to get the messages because it supports personal accounts to read messages from your mailbox.
I'm trying to create an app to monitor employee's file attachments using Google's APIs.
I know that I could download all the emails from the audited user list using Mail Audit API and run scripts on the mails but would there be a better way to get sender's email address with attached file names?
Unfortunately, the only options available are the ones you have already suggested.
However, what you can do is to file a feature request on Google's Issue Tracker here and provide all the necessary details about your use-case and what is it that you want to achieve.
i want to develop office app and i want to sync email from outlook to Google account.
then,
which scope i use?
how to pass email data to URL and on which URL?
if possible to give me example
i use this two scope for authentication or to get user info.
https://www.googleapis.com/auth/userinfo.profile
https://www.googleapis.com/auth/userinfo.email
i refer this stack overflow link :
link
another question is i can migrate email to example#gmail.com(gmail account)?
i use a Google playground to check email migrate scope then it give error to invalid access of API and it proper work if i use example#domain.com to migrate email.
If you are trying to migrate emails from outlook to GApps, you should use the email migration API scope:
https://apps-apis.google.com/a/feeds/migration/
Google also has an official tool that you can use to sync Outlook to GApps. https://tools.google.com/dlpage/gappssync <- check it out.
Old topic, but might be useful for someone else..
to #gmail accounts - Mail Fetcher
https://www.youtube.com/watch?v=gphzjf6sLRc
However this does not preserve folder structure.
Options like GAMMO (https://tools.google.com/dlpage/outlookmigration) and GAMME(https://tools.google.com/dlpage/exchangemigration) work only for migrations TO a business Google For Work account, not to personal gmail. GAMME also migrates between IMAP servers.
Another option is to export your PST file, put it in Outlook, sync your #gmail.com and drag/drop emails to your gmail PST which will sync up to the server. There is a chance of losing data though!