What I need:
Get access to the Internet Message Id for an email related incident via the Microsoft Graph Security API
My problem:
I used Outlook's reporting module and marked an email that was in my inbox as Phishing. This then created an event in https://security.microsoft.com. See the below image. Incident ID 16.
I put together a webhook that is able to pull alerts via the Microsoft Graph Security API. From this call I managed to retrieve the alert's ID. I then used that ID to get more information about the alert by using this call: (https://graph.microsoft.com/v1.0/security/alerts/{alert_id})
In the JSON body of the response there's a property called messageSecurityStates that is always empty. I found this link to Javadoc.io where the object's properties are described and it looks like this property should contain the Internet Message Id. But when querying the Microsoft Graph Security API, the object is always empty.
Question:
What do I need to do to ensure that my email related alerts that are queried via the MS Graph Security API have email related information such as Internet Message Id?
Related
I am using Microsoft Graph client to get outlook email details like read email using message id, subject.
But need help to get selected outlook email message message id using graph client in C#.
Graph does not deal with selected messages - that is purely client-side functionality only accessible through the Outlook Object Model: use Application.ActiveExplorer.Selection collection.
You can translate the MAPI entry id (MailItem.EntryID property) to a Graph id using translateExchangeIds endpoint, but I am not sure why you'd want to: Outlook Object Model will let you retrieve any information available through Graph.
You can play with both in OutlookSpy (I am its author).
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 using the Microsoft msgraph api to sync messages from my office365 mailbox to my application.
The problem I'm experiencing is that the ids of the messages are not unique. I have messages in my mailbox that are in the same folder and have the same exact id.
I verified the response of the requests I was sending in the graph explorer. I receive totally different messages with the same ids.
Could this be a bug in the msgraph api ? Or are message ids not unique ?
I'm talking to the following endpoint:
/me/mailFolders/[id_of_folder]/messages/delta
I'm using the php sdk provided by Microsoft but since the double ids are also visible in the graph explorer is doesn't seem to be a bug in the SDK.
The ids returned by Microsoft Graph, specifically, for Exchange Online Workload are case sensitive. Please compare with case sensitive comparators.
We have an internal web app used by staff members of the company, and are in the process of integrating it with Microsoft Outlook via the Microsoft Graph API.
We are using the Graph API to subscribe to notifications for Outlook mail messages with a specific category (via webhooks).
We are also using Graph to send mail from within our application (using the sendMail endpoint). Messages sent this way are given the same specific category, so that it is automatically imported via the notifications.
Given this usage, we would like to see all incoming replies to messages originally sent via the API to also receive the category, so that we can receive notifications for and import them as well. But this is not the case - replies arrive without the category we are looking for.
The strange thing is, manually applying a category to a sent message via the Office 365 Outlook web application UI does result in incoming replies adopting the same category. What is the difference? Is the web UI maybe applying the category to the conversation as a whole, whereas the API is applying it only to a single message? Are we able to replicate the behaviour the UI creates, via the API?
Update - some clarification:
We use the API to send mail on behalf of A, and give it a category in A's mailbox. In our case, A is a staff member, and we want to bring their mail (when appropriately categorised) into our web app. B could be anyone - possibly (even likely) not using Outlook for their mail. When using the Outlook web app, if A categorises a message they just sent, then incoming replies from B also automatically receive that category when they arrive in A's mailbox. When we send a message on A's behalf via the API and also give it the same category, replies from B arrive uncategorised.
In a recent post (How to retrieve ItemAttachment contents from Office 365 REST API?) API mentioned to retrieve attachments from within an attached EML is in plans. Is such API already available?
In case of mail flow rule to send a message to a moderator. Approval mail is sent to an approver with the original mail attached as eml. Is there an API to approve/reject the message, similarly to the web buttons approve/reject?
Thank you very much.
We were also looking for an answer to (2), but even now, apparently this is not possible via the REST API. There's one SO link that has a powershell script that claims to do this - see Approve email message via exchange EWS API, however, I don't see a clean solution yet.