Questions tagged [microsoft-graph-mail]

Microsoft Graph Mail refers to the Outlook Mail APIs in Microsoft Graph. This tag should always be used in conjunction with the [microsoft-graph] tag.

484 questions
0
votes
0 answers

MS Graph Api: cannot retrieve a specific user's calendar

I have an asp.net core app that authenticates users from my company's Office 365 AAD. I have requested this delegated permissions: User.Read.All, Calendars.ReadWrite.Shared I authenticate on the graph api with on behalf workflow. In my outlook web…
0
votes
1 answer

Microsoft Graph API auth - Scope is not valid

I've successfully followed the basic tutorial of connecting a RailsOnRails app with Microsoft Graph API, provided here: https://learn.microsoft.com/en-us/graph/tutorials/ruby?tutorial-step=3 As suggested, I've put in the scope from the tutorial,…
Milan
  • 1,780
  • 1
  • 16
  • 29
0
votes
1 answer

Can MS Graph API read emails of outlook in(UTC+5:30) timezone?

I am Reading emails of my mailbox and trying to reply them. the mailbox is configured for my timezone(UTC+5:30) but the graph API is reading emails in UTC time zone. So when am trying to send send reply from graph API the "sent :" field in trail…
0
votes
1 answer

Graph REST API -- Reading Email (Java) -- NoPermissionsInAccessToken

The objective that I am after is that I would like to obtain an email from Outlook 365 without any human interaction. So I am trying to use MS Graph REST API and Java. To obtain the access token, I…
Zaxxon
  • 182
  • 1
  • 4
  • 18
0
votes
2 answers

Unable to send large attachment using graph api

I am trying to add a large attachment to an email using Microsoft Graph. Steps: Get Token: public static async Task GetAuthenticatedClientForApp(IConfidentialClientApplication app) { GraphServiceClient graphClient = null; …
0
votes
2 answers

"UnknownError " while accessing Graph API to get mailbox messages of the specific user with grant type as client_credentials. App only permissions

I am trying to get the messages from outlook mailbox of a specific user. I created an app with permissions type "application" and permissions Mail.ReadBasic.All, Mail.Read, Mail.ReadWrite. I provided adminconsent with below…
0
votes
1 answer

Retrieve mail addresses of nested distribution list via Graph API

I am trying to find out who is invited to an event via Microsoft Graph API v1.0. The event gives me a list of invitees, which can also contain distribution lists. This is fine, but I really want to know the mail addresses of each and every person…
0
votes
2 answers

Cannot get MailboxSettings from Microsoft Graph with .Net SDK

I'm trying to get User Mailbox Settings from Microsoft Graph v1.0 with the Ms Graph .Net SDK and with application permissions. I have the correct permissions (MailboxSettings.Read and User.Read.All) and they are admin consented. Here is the code for…
0
votes
1 answer

Using Microsoft Graph in the simplest way possible to find email

I have an automation project (.NET Framework) which currently makes use of Microsoft.Exchange.WebServices to easily do simple tasks like finding email in a remote inbox or folder, checking for attachments etc. We grab the data from an organisation…
BernardV
  • 640
  • 10
  • 28
0
votes
2 answers

Access denied to add Microsoft Graph Schema Extension on a Message

We're curretly making a multi-tenant app where admin users can log on Office365 and manipulate other users' emails. We want to add a schema extension on created Message, but I end up with a AccessDenied error. Note that I use the arxone_path schema…
fhayd
  • 23
  • 5
0
votes
0 answers

How can I get a user's mailboxSettings timezone without using an App token?

Problem In our application, we use Office365 SSO to obtain an access token for the user who's logging in. We would like to be able to use this access token to fetch the mailboxSettings timeZone for other users in the logged-in user's directory. This…
Elyes Graba
  • 131
  • 5
0
votes
2 answers

Uploading a large attachment using Microsoft Graph

I am trying to upload a large (> 4mb) attachment to an existing message in Office 365. I am following these instructions: https://learn.microsoft.com/en-us/graph/outlook-large-attachments?tabs=http I have successfully created the upload session,…
Jeff McKay
  • 161
  • 2
  • 16
0
votes
1 answer

Unable to get MIME version of a Message using $value

I am unable to get MIME for a message using $value like specified in the documentation. How to get MIME? OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .header("Authorization", "Bearer " + accessToken) …
User1290
  • 59
  • 9
0
votes
1 answer

file attachment using microsoft graph send mail not working

Getting the mail without the attachment I am using microsoft graph sendMail. I need to add an attachment at the same time. I added the attachment Object inside message of request body. But received the mail without the attaachment. i was following…
0
votes
2 answers

How do I add InternetMessageHeaders to a reply message

I am using the Reply method on a Message: var replyMessage= new Message { Body = new ItemBody { ContentType = BodyType.Html, Content = body }, InternetMessageHeaders = messageHeaders, ToRecipients = new…