FAQ Database Discussion Community


Office 365 Calendar Event “IsCancelled” will not update

json,rest,ews,office365
I'm not able to get IsCancelled to update on an event, but I can update seemingly everything else, and I get no error when I try. I event tried ResponseRequested which is also a boolean datatype. It states here that the value IS writable: https://msdn.microsoft.com/office/office365/APi/complex-types-for-mail-contacts-calendar#EventResource url: https://outlook.office365.com/api/v1.0/me/events/EVENTID body: { "Subject":...

Office 365 - multitenant application constantly gives unauthorized

azure,outlook,office365
For some reason the following code gives an unauthorized exception, can anyone tell me what i'm doing wrong? In the screenshot below you can find the contents of "theToken", which has been received through Office365 and saved in a database ( 1 minute before excecution) Async Function CalendarDemo() As System.Threading.Tasks.Task(Of...

Check Office365 session

azure,office365,azure-active-directory
Is there any solutions to understand from my MVC application that user already signed in into Office365? Currently I'm using the code below to authenticate to my MVC application: var authContext = new AuthenticationContext("https://login.windows.net/MyTenantId"); var authResult = authContext.AcquireToken("https://MyTenantId/AppWebApi", "ClientId", new Uri("redirect uri")); By this code user is suggested to enter...

EWS can not receive push notification from office365

exchange-server,office365,ews,exchangewebservices
I am using EWS api to develop an androd application on tablets to connect with office365. The app poll to office365 server to request the calendar information. However, sometime it is limited by the throttling policy when the app is installed on 15 devices and each device poll with 5-second...

Querying Office 365 Service Communications API with Python

python,json,powershell,office365
I am trying to get the name of all Office 365 services by querying the Service Communications API. I have been able to complete the task using a PowerShell script, but am unable to do the same using Python. When using Python, I get a 200 response code, but have...

Using Office-365-SDK-for-iOS

ios,azure,xcode6,office365,adal
I am integrating Office-365-SDK-for-iOS to fetch the user profile and contacts from outlook 365. I configure my application on azure management portal successfully. below are the constants for the app- #define OutlookClientId @"11d21f9f-6b16-4ea9-8f73-bbc9a65ac72b" #define OutlookAuthority @"https://login.microsoftonline.com/06cbda59-d75b-4547-8406-e6af3ff4c658/oauth2/token?api-version=1.0" #define OutlookRedirectUrl @"http://localhost/MyAppName" #define OutlookRsourceId @"https://graph.microsoft.com/" When I am giving resourceId is...

Create mail in Exchange Online inbox programatically

exchange-server,office365,exchangewebservices
Have been facing an issue since days about EWS. So my scenario is; I was to programmatically sync GMAIL and EXCHANGE ONLINE. So here is what I have done; Connect to Gmail using Gmail API Fetch mail from gmail get the email body, to, from, attachment and all other thing...

Do while Powershell issue

powershell,azure,active-directory,office365
I am trying to build a script that creates the AD user and than assigns it an o365 license. I currently have the script that creates a user in exchange and AD no problem. however the server syncs up every 15 minutes to bring over the users credentials to the...

Office 365 iOS: Not able to fetch List Items from Office 365 SDK

ios,sharepoint,office365
I have added the announcement app and added few items to it, now i want to fetch the items from my announcement list so I have used the below code token_Obtained_During_first_time_Login: This is the token that i get when i login for the first time using the acquireTokenWithResource method of...

Could not retrieve app only tokens for office 365

go,office365
I followed the blog to develop an application that reads mails of users without having them signed in . http://blogs.msdn.com/b/exchangedev/archive/2015/01/21/building-demon-or-service-apps-with-office-365-mail-calendar-and-contacts-apis-oauth2-client-credential-flow.aspx?CommentPosted=true#commentmessage I got the id token and got the tenant Id . When i try to get the access token it throws an error {"error":"invalid_client","error_description":"AADSTS70002: Error validating cre dentials. AADSTS50012: Client...

Office 365 Unified APIs: WorkingWith relationship

office365
I am using the recently published for preview Office 365 Unified Web APIs. In general they work, but at least one of the API endpoints is either not working, or it is not documented properly. For instance, the following GET request returns my manager: https://graph.microsoft.com/beta/me/manager But, calling this URL https://graph.microsoft.com/beta/me/WorkingWith...

Recurrence.Range.StartDate / EndDate contain timezone offset

office365,outlook-restapi
Recurrence rule dates contain timezone offset where the calendar event "Start" / "End" fields are in UTC which seems incorrect behavior (Bug?). Did anyone knows why the "Recurrence.Range" "StartDate" / "EndDate" fields contains dates which are not UTC? Expected behavior is to receive UTC dates for all date fields in...

o365 Calendar REST API

office365
While creating an event in the o365 Calendar REST API, is there a way to specify the Event Reminder value (1 day, 15 mintues, 1 hour, etc). Does one exist and where is it documented?

Unable to upload file to Sharepoint @ Office 365 via REST

javascript,ajax,rest,sharepoint,office365
I'm having trouble creating/uploading files via Microsoft's REST API (or at least that's what they call it) for Sharepoint running on Office 365. It looks like I'm able to authenticate all right, but I'm getting 403 Forbidden when I try to create a file. The same user can upload a...

Office 365 Rest Api Having issues getting access token

asp.net,azure,office365,adal,outlook-restapi
So far i have this. public static async Task<OutlookServicesClient> CreateOutlookClientAsync(string capability) { try { string authority = CommonAuthority; // Create an AuthenticationContext using this authority. _authenticationContext = new AuthenticationContext(authority); //See the Discovery Service Sample (https://github.com/OfficeDev/Office365-Discovery-Service-Sample) //for an approach that improves performance by storing the discovery service information in a cache....

Azure AD OAuth Access Token Request ::: 400 - Bad Request

php,azure,oauth,office365
I have a php web app built upon Laravel 5 / Socialite, where I am trying to implement a SSO solution with windows azure AD OAuth flow, but I am getting a generic "400 Bad Request Error" on the second OAuth request for an Access Token. The first request to...

Registering an application in Azure AD to access office 365 application

azure,office365
I am trying to develop an application which uses the office 365 APIs . I have created an Azure Directory and created an native client application. When configuring my application there was an option to give permissions to other applications i need to use office 365 exchange application . When...

Microsoft.Exchange.WebServices.Data.ServiceResponseException : The specified folder could not be found in the store

exchange-server,ews,office365,exchangewebservices
In office365, I am trying to access conversation history folder of another user using EWS api.The user that is trying to access has full access rights of the mailbox . If i connect to the mailbox using owa, i can access the conversation history folder including all other folders. But...

Mapping Office365 REST Calendar IDs to EWS CalendarItem IDs

office365,ews,exchangewebservices,ews-managed-api
Using Exchange push notifications I've been creating a service that syncs over calendar data from Office365 users. I've been using a combination of the Office365 Calendar REST API (to get and manage calendars) and the EWS API (to subscribe to calendar changes). I noticed that just recently MS has introduced...

Office365 API - Admin accessing another users/room's calendar events

office365,outlook-restapi
By hitting this request: https:[email protected]/events in a browser I can enter my admin username and password and get Calendar Events for that specific room. However when I try making this call from a native app with the admin authenticated I get this response: reason="The call should access the mailbox specified...

Creating calendar events with recurrence field fails

office365,outlook-restapi
Creating calendar events with recurrence field fails. Here are sample request payload from Chrome Network tab: Successful (without Recurrence field): Attendees: [] Body: {ContentType: "HTML", Content: ""} End: "2015-05-14T16:29:40.307Z" Start: "2015-05-14T16:29:40.307Z" Subject: "Regular event" Failing request (with Recurrence field): Request screenshot Attendees: [] Body: { ContentType: "HTML", Content: "" }...

Can't associate Office 365 with Azure subscription

azure,office365
For my company, I have an Office 365 E3 subscription (not trial). My office 365 account is also global admin. Now I would like to use Office 365 API. According to the getting started tutorial I was told to associate Azure with Office 365. So I when go to Office...

Authentication Context error intent is not resolved

android,office365,adal
I am trying to authenticate an android appliction against an Azure Active Directory to validate users and eventually gain access to Office 365 hosted Sharepoint lists, using the sample codes here. But everytime I attempt to do so I get an com.microsoft.aad.adal.AuthenticationException: Activity is not resolved. Verify the activity name...

Bad request 400 upon creation of new event in calendar office 365

java,office365
I am having a response of "Bad request". Error 400 when trying to create a new event in office 365 api. Here are my codes. System.out.println(" TESTING write to calendar"); CommercialVO commercial = commercialService.getByCode("MBA"); CalendrierItemVO evenement = new CalendrierItemVO(); evenement.setDescription("TEST "); creerEvenement(evenement, commercial, sessionUser); public boolean creerEvenement(CalendrierItemVO evenement) { HttpPost...

Office 365 Rest API Access to public folders

api,office365,outlook-restapi
How do I access public folders using the office 365 REST API (or the .net client api)? I can quite happily work my through my folders but I can't figure out how to get a list of public folders (and access their contents). As a plan B I can see...

Office 365 Exchange Mailbox Properties

c#,office365,exchangewebservices
I would like to know how to access a set of given mailboxes and get various properties on those mailboxes. Specifically I would like to iterate through a list of email addresses, and spit out the type of mailbox (ie: room mailbox, user mailbox , etc.)and who and what type...

ErrorInvalidRequest while using post request in office365

api,rest,office365,rest-client
using restClient, I am trying to add a new event. url: https://outlook.office365.com/ews/odata/Me/Events My json for the creation of an event is {"IsAllDay":false,"Subject":"TEST","Start":"2015-02-20T07:32:39Z","End":"2015-02-20T08:32:39Z","Body":{"ContentType":"HTML","Content":"TEST JRA ? TU VOIS ?"}} The response I get is { "error": { "code": "ErrorInvalidRequest", "message": "Cannot read the request body." } } What is wrong with my...

C# CSOM - Check if File Exists in Document Library

c#,sharepoint,office365,csom
I'm coding in C# using CSOM, my app uploads a template asp.net page to the "/Pages/" library, I need it to check if a file exists in that location with the same name prior to file upload (then maybe it can return a bool value). I did have a quick...

Access UserProperties with Office365 JavaScript API

office365,office365-apps,apps-for-office
There are two kind of properties, Custom Properties for the JS API/Mail Apps, and UserProperties for the VSTO/Object Model (.NET). I know you can't access Custom Properties with the Object Model because they're basically data for the Mail App itself (storage). However, it would makes sense if the Mail App...

ActiveSync SendMail command using 12.1 protocol

office365,activesync
I am getting error code 500. and below is my request with https://outlook.office365.com/Microsoft-Server-ActiveSync?cmd=SendMail&[email protected]&DeviceId=A6B9A5DB2E334477B48832011B55F06E&DeviceType=mobile <?xml version=\"1.0\" encoding=\"utf-8\"?> <SendMail xmlns=\"ComposeMail:\"> <ClientId>633724606026842453</ClientId> <Mime>From: [email protected] To: [email protected] Cc: Bcc: Subject: From NSync MIME-Version: 1.0 Content-Type: text/plain; charset=\"iso-8859-1\"...

Retrieving user information with a oauth token from the office365 oauth api

php,api,azure,oauth-2.0,office365
I'm currently trying to use the Office365 REST APIs, and for that, I need to auth using the OAuth2 mechanism. So far, so good. After a long battle, I finally managed to fetch the said tokens, but I need to fetch the user information (such as his identifier, email, name,...

Will the unified API return information from Azure?

azure,office365
I've been researching the new unified API for office365 (graph.microsoft.com). Currently one can authenticate to it using an organisationalID and it will return information from emails-from-exchange/OneDrive4Business/Skype4Business(future)/calendar-from-exchange/exchange-contacts/etc... The ability to surface such a plethora of information from one endpoint strikes me as being hugely valuable. In the future I'd really like...

All day events is not created correctly in Office 365

api,rest,office365
I am trying to export some events to a calendar in Office 365 through their REST API, https://msdn.microsoft.com/office/office365/APi/calendar-rest-operations#EventoperationsCreateevents. I set the "IsAllDay" to true, and set the start and end to midnight in UTC. The payload looks like this: {"Body":{"Content":"Agenda","ContentType":"HTML"},"End":"2015-02-01T00:00:00Z","ShowAs":"Busy","Start":"2015-01-30T00:00:00Z","ChangeKey":"X2+akAeClEa0OJ8r6nC5QgABW30vaQ==","Location":{"DisplayName":"Vesterbrogade"},"Subject":"Updated...

Need change message properties (subject etc.) in read scenario

office365,exchangewebservices
Have a question that may look strange, but i have by project requirements implement the following feature for outlook web app (content app) for read mode - updating the subject of item (message or appointment) being viewed. Approaches tryed: 1) getCallbackTokenAsync - getting error at server side that not enough...

How to get Office 365 service location via API

api,cloud,office365
I am trying to find the region of an Office 365 service. Microsoft's Office 365 documentation states that the data storage regions are disclosed to the customer. Is it possible to find a service's region via an API request? I've been looking through documentation on the Service Communications API, the...

Creating calendar event without recurrence end date fails

office365,outlook-restapi
Creating calendar event without Recurrence.Range.End date fails with the following message: { "error": { "code": "ErrorRecurrenceEndDateTooBig", "message": "Recurrence end date can not exceed Sep 1, 4500 00:00:00." } } I tried the request with both this date set to UTC zero date and removing the parameter at all. This issue...

ADALiOS:Cannot add a new item in the keychain / O365-iOS-Connect-Swift

ios,office365,adal
I am currently working on an iOS-App that connects to Office365, with the target of iOS7. The following pods are used: pod 'ADALiOS', '~> 1.2.1' pod 'Office365/Outlook', '= 0.9.1' pod 'Office365/Discovery', '= 0.9.1' When I run it in the simulator all works fine. When I run it on the device,...

Unable to access SPOOneDriveForBusinessFileActivity REST API call

c#,office365,o365rwsclient
I'm using Microsoft's o365 REST API Client library (https://github.com/Microsoft/o365rwsclient) and have been able to get many of the API calls to work, but am not having any luck with "SPOOneDriveForBusinessFileActivity". Also, I don't see it advertised in the o365 web service atom feed at https://reports.office365.com/ecp/reportingwebservice/reporting.svc Here is a description of...

Doing batch requests in the office 365 email rest api

c#,rest,office365
I've found this link that says that the Office 365 REST API supports batch requests. I have tried to use this to retrieve emails using the Office 365 REST API, but so far I receive a "400 - Bad Request" reply. Does this simply mean that the email part of...

Office365 REST v1.0 API How to query global category list

api,rest,office365
I am using the new Office365 REST API: https://msdn.microsoft.com/en-us/office/office365/api/api-catalog and am successfully querying calendar events, which include their categories as a list of strings: https://outlook.office365.com/api/v1.0/me/events How do I query the global list of all categories associated with a calendar, as well as the colour associated with each category? The colours...

Office 365 API OutlookServicesClient Filter Messages Error

c#,odata,office365
I'm using OutlookServicesClient to get messages. I'm trying to get only messages received after a certain date, but here's where I receive an error. The code I use to get the mails and filter: public async Task<IReadOnlyList<IMessage>> GetMails(DateTime? MailsAfterDate) { OutlookServicesClient oc = await _OutlookAuthentificationService.GetOutlookClient(); if (oc != null) {...

Responding to an Office 365 event invite via REST

ios,objective-c,api,rest,office365
I'm currently working on adding functionality to allow a user to respond to an Office 365 event invitation (accept/maybe/decline) via their REST API. I'm not entirely sure how developers are supposed to utilize this functionality via the API, however. Google, for example, has a attendeesOmitted flag that you can set...

Office 365 : Powershell command to query the list of roles assigned to a user

powershell,office365
What is the powershell command to query roles assigned to an exchange online user?

Query contacts by name using Office 365 Rest API

office365
Is it possible to search contacts by name (GiveName, DisplayName, LastName or Surname) using the OData filters? Here's the documentation I'm using: Office 365 API OData filters I see in the documentation where they say some properties cannot be filtered but they don't give a full list (complex types are...

Will the unified API return information about consumer data sources?

office365
I've been researching the new unified API for office365 (graph.microsoft.com). Currently one can authenticate to it using an organisationalID and it will return information from emails-from-exchange/OneDrive4Business/Skype4Business(future)/calendar-from-exchange/exchange-contacts/etc... Is there anything on the roadmap to allow one to authenticate using a Microsoft Account and then receive information from the analogous consumer data...

Cannot access OpenId UserInfo endpoint on Azure (AADSTS90010: JWT tokens cannot be used with the UserInfo endpoint)

azure,office365,openid-connect
I'm trying to access the OpenId UserInfo endpoint for a user on an Office365 Azure tenant, with the following GET: GET https://login.windows.net/common/openid/userinfo HTTP/1.1 Authorization: Bearer eyJ0eXAiOiJ(...remainder deleted for brevity...) Host: login.windows.net The response fails with "400 Bad Request", and a more specific error "AADSTS50063: Credential parsing failed. AADSTS90010: JWT tokens...

Active Directory Authentication for java application with Oauth2 client credential grant produces “unauthorized_client” error

java,azure,oauth-2.0,office365,adal
I've been trying for a week to authenticate on Azure Active Directory with a Java application which presents client credential grant, in order to retrieve an access token to target the Outlook Office365 REST API, but could not succeed. The server always returns an error : com.microsoft.aad.adal4j.AuthenticationException: {"error":"unauthorized_client","error_description":"AADSTS70002: Error validating...

Getting error when trying to run powershell script from C#

c#,powershell,office365,lync-2013,skype-for-business
I have a powershell script that runs fine when run in powershell but throws error when trying to run from c#. The powershell script is trying to connect to lync online(skype for business) and list lync online users. Here is the code that calls powershell script from c# public static...

How to import meetings into office365 (EWS and Powershell?)

powershell,exchange-server,office365,impersonation,meeting
I need assistance importing bookings/meetings into office365. I can export the booking information from our old web-based system into csv, but need a way to import into exchange in office365. The most promising method I have found is using Exchange Web Services to connect to the cloud with powershell an...

EWS Managed Api - Retrieving e-mails from Office365 exchange server

c#,office365,ews,email-attachments
I was initially connecting to an on-domain exchange server and retrieving attachment files from e-mails in my inbox. This worked great, it was authenticating, retrieving the files (even other folders). Now I've switched to an Office365 exchange server. I have read the documentation and understand that the following needs to...

How to make People Picker column Read only in SharePoint 2013

sharepoint-2013,office365
I am trying to make people picker column in my list edit form "Read-only". I found many solutions that worked on SharePoint 2010 but couldn't find a reliable solution for SharePoint 2013/Office 365. It would be great if someone can point me to a good solution....

SharePoint Online (Office 365) login form in a Office task pane app

office365,sharepoint-online,apps-for-office
The end goal of what I am trying to achieve is to open a page from a SharePoint Online instance - any page, it doesn't matter - in a Office Task Pane app. The issue is that the login page (https://login.microsoftonline.com) is shown fine, but when you click 'login' it...

EWS Managed API: Setup user email alias

c#,.net,exchange-server,office365,ews
I am looking into possibility to create or delete email aliases for user emails in Office 365 through EWS Managed API. It can be easily done through UI: https://support.office.com/en-sg/article/Add-an-email-alias-to-a-user-account-cd25a91a-eb1a-4ed7-be94-5517fb5113c2, but unfortunately, I haven't found any methods in Exchange Web Services API to do this. Does anyone know if it's possible?...

Building Daemon or Service Apps with Office 365 mail — Compilation Error

oauth-2.0,office365,outlook-restapi
I am following this entry at Exchange dev blog (MSDN). For the sample project published on GITHub, I'm getting following build errors, wondering which step I missed... Could not copy the file "AccessMailboxAsApp\Content\myappcert.pfx" because it was not found. Could not copy the file "AccessMailboxAsApp\Content\encryptionCert.pfx" because it was not found. ...

How to convert binary data from Outlook Mail API to image source in JavaScript?

javascript,office365
I know this is a specific question, but trying other methods of conversion I've found haven't been successful so I would like answer to my specific scenario. I'm getting a response from an API call to the Outlook Mail API. I've got to the point where I have an Attachment...

Getting Error code 403 while accessing Office 365 mail box for the client credential grant flow

ms-office,office365,office365-apps
I am trying to connect to Office 365 to use the client credential flow.I have followed all the steps as mentioned in http://blogs.msdn.com/b/exchangedev/archive/2015/01/21/building-demon-or-service-apps-with-office-365-mail-calendar-and-contacts-apis-oauth2-client-credential-flow.aspx I am trying to connect using the ADAL java library. Using the below code to connect and fetch mail: String authority = "https://login.windows.net/tenant-id/oauth2/authorize"; ExecutorService service = null;...

Cross-Origin Request Blocked when accessing O365 Rest API

cors,office365
I'm attempting to creating a partial mail client in an asp.net mvc application. I'm not using the .net API's as I'm required to get the messages on the client side via javascript. Unfortunately, I get the following error when attempting to get messages via an ajax request. Cross-Origin Request Blocked:...

Suppress Exception in Office365 powershell

powershell,office365
I have a script which adds members of an Active Directory group to an Office 365 distribution group. Many members of the AD group will also be members of the distribution group already, which causes the script to display the error: Adding [email protected] to distribution group GROUP The recipient "[email protected]"...

Integrate Office-365-SDK-for-iOS

ios,azure,xcode6,office365
I am creating an iOS application in which I am integrating Office-365-SDK-for-iOS for import contacts from outlook365.I am successfully able to authenticate with Microsoft Azure. But when I am fetching user and user's contacts then following error is coming- Error Domain=Error in the Request Code=401 "The operation couldn’t be completed....

Custom Parameter when adding a contact through OutlookServicesClient AddContactAsync?

office365,outlook-restapi
I am trying to send a custom id from my web app to owa when adding contacts through OutlookServicesClient and office 365 rest apis. I need to be able to synchronize the data between the two. Is there a way to add an additional parameter in contacts?

Installer for Microsoft Office Add In

c#,ms-office,clickonce,nsis,office365
I am working on a Microsoft Office Add In. The current installer uses NSIS, but does not provide automatic updates. I would like to provide either optional or mandatory updates in the most user friendly manner possible. It must work for all versions of Office. What is the standard/ best...

Office365 get messages and filter who from

ios,office365,outlook-restapi
I'm trying to get messages from office365 and filter the From property. If I don't do the filter part, I get the messages as expected. I just don't know what to put in the filter string... This is what i've done: MSOutlookFolderFetcher *folderFetcher = [[self.client getMe] getFoldersById:folderID]; NSURLSessionTask *task =...

How to use C++ with gsoap to read email from outlook using exchange web services

c++,authentication,office365,exchangewebservices,gsoap
how can we use C++ with gSOAP to fetch email data from outlook mail (in office 365) using exchange web services. Is there need to be authentication API of office 365, and if yes, then does this API support C++ language. OR gSOAP is enough to read the data of...

Couldn't upload a manifest in azure management portal

rest,office365
I am following the post http://blogs.msdn.com/b/exchangedev/archive/2015/01/22/building-demon-or-service-apps-with-office-365-mail-calendar-and-contacts-apis-oauth2-client-credential-flow.aspx to develop an application which needs to access the calendar mail and contact API s . I am able to get an id_token . I generated a self signed certificate and have the values for $base64Thumbprint, $base64Value and $keyid. But when i make the...

Comparing the Columns of a Format-Table Output in Powershell

powershell,office365
I've been scratching my head over this one for a while now. I am compiling a script to create a new Office365 user account in Powershell. I would like to add a check for the amount of licenses that a tennant has and prompt the admin to go to the...

Office 365 unified api Object reference not set to an instance of an object

php,curl,header,office365
I'm trying to use the new office365 unified api to query the users list and user file. I've created the application in azure management portal, and I gave the permission to the new api application (with the directory and files read) I've created both a client and a webapi application,...

Use Powershell to list all mailbox users contacts from their contact folder with all attributes

powershell,exchange-server,office365
I am on Office 365 and I (Admin of the site) have to run a query that takes a users mailbox (e. g: [email protected]') and lists all of its contacts from the contact folder with all available attributes like name, email-address and so on. After searching heavily with Google and...

Office 365 'app only' token request fails with 'invalid signature' error

python,office365
I am trying to do 'client credential' flow and get access token for Office 365 app.I followed the below steps. step 1: I registered the app on azure AD by following the below documentation http://blogs.msdn.com/b/exchangedev/archive/2015/01/21/building-demon-or-service-apps-with-office-365-mail-calendar-and-contacts-apis-oauth2-client-credential-flow.aspx?CommentPosted=true#commentmessage step2: Configured X.509 public cert for my application. Downloaded the manifest file and updated 'KeyCredentials'...

Building Daemon or Service Apps with Office 365 that doesn't require sign in

office365,outlook-restapi
Got the Sample Project up&running, URL: https://github.com/mattleib/o365api-as-apponly-webapp Problem is, sample still needs user manually retrieve authorization, which is still not fully automatic process to get token, i.e., a sign in page shows up requiring username/password input with following error message, PS, as the error message suggests, is this because I'm...

Two-step verification for microsoft company account?

azure,office365,visual-studio-online,windows-live
I have a MS company account using Office 365 (so [email protected] is my account), and I use Office, Azure, and VS Online. However, I cannot find anywhere how to enable 2FA for this account. I can set up 2FA for my normal, personal, windows live Id using this page: http://windows.microsoft.com/en-US/windows/two-step-verification-faq....

Using Azure Multi-Tenant application without an Office 365 subscription to access users calendar information

api,rest,azure,office365,outlook-restapi
We have written a service application that reads Office 365 calendar information from multiple calendars in an organisation (tenant) and does some analysis against the entries. We use the Office 365 REST API for this. We have multiple client organisations (tenants) that require this functionality so I have followed the...

How to use powershell and the (S)SOM to upload files/directories into sharepoint 2013 in Office365?

powershell,sharepoint,sharepoint-2013,office365
I would like to start up a new script, which takes in a Local file path, and a document library name, and then scrapes the directory, and uploads all files/folders found into the sharepoint 2014 office 365 document library (server side object model {SOM}). I have tried the following, to...

Office 365 SMTP starts firing net_io_connectionclosed

c#,asp.net,smtp,office365
A while ago I've configured my ASP.NET C# project to send e-mail via Office 365, but last week it's starting to throw a lot of exceptions. System.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed. at System.Net.Mail.SmtpReplyReaderFactory.ProcessRead(Byte[] buffer, Int32 offset, Int32 read, Boolean readLine) at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine)...

Accessing shared calendar using the O365 REST API

office365
I was reading question asked previously Office 365 shared calendars Is the options to access shared calendars of authenticated user using Oauth to authenticate available now ? Basically I am trying to implement a service using "OAuth2 client credential flow", but I want to access a calendar only if it...

Move message between mailboxes using office 365 API

c#,office365
I would like to move email messages from one mailbox to another in Office 365 using some sort of API. I looked up the API reference and the Move method provides the ability to move to a folder only (reference https://msdn.microsoft.com/office/office365/APi/mail-rest-operations#MessageoperationsMoveorcopymessages). I know it was possible back then using Exchange's...

strange behavior office 365 contact API

exchange-server,ews,office365
I'm trying to consume the Office 365 contacts api, and I got a strange response every time that I change some of the parameters... For example, accessing the following url https://outlook.office365.com/api/v1.0/me/contacts?$top=10 I get 10 contacts, and an url to the next page https://outlook.office365.com/api/v1.0/me/contacts/?$top=10&$skip=10 Accessing the url above, I get 8...

Modifying single occurrence from recurring series is not reflected in the data read from the Rest API

office365,outlook-restapi
When you create occurring event in Office365 Outlook and modify any single occurrence (edit occurrence) the change is never reflected in the data consumed from the REST API. Both recurrence exception is not created (new event) and series master has no single field changed. Expected behavior is the SeriesMaster to...

ajax get request to Office365 REST Api fails CORS?

ajax,cors,office365
I'm attempting to make an ajax GET request to the Office365 RESTful API service from my local server, but am running into cross-domain HTTPRequest errors. The following is a sample of my 'get-files-at-root' attempt: $.ajax({ url: 'https://[sharepoint_site]/_api/v1.0/me/files?access_token='+token, type: 'get', dataType: 'json', success: function(data) { if (success){ success(data); } }, error:...

Office 365 - Immutable id behaviour clarification

office365
Hi in my test environment, i installed AADSync with "title" attribute as sourceAnchor attribute. (Just to test / understand behaviour) Then i created two users with same title, say, "mytitle" and then started directory sync. At the end only first user got created in Azure AD. Then i changed the...

Deploy Outlook add-in to Office Store

outlook,add-in,outlook-addin,office365
I made add-in for outlook and want to release it to store.office.com. I have dev license for office 365. I made add-in for Outlook using Visual Studio and everything works. I found Microsoft Seller Dashboard, where I can add my application. But on second step it asking me to provide...

Office 365 Rest API - Retrieving plain text Email

ews,office365,exchangewebservices
Is there currently anyway to with the Office 365 Rest APIs to retrieve the plain text part of an email message? From the API documents it states that the 'Body' object contains the 'ContentType' field which can either be Text or HTML. https://msdn.microsoft.com/office/office365/APi/complex-types-for-mail-contacts-calendar#ItemBody However whenever a multipart (HTML + plain...

Office 365 Personal - Hotmail domain - REST API - Error : no mailbox associated

office365
I bought one Office 365 Personal account and linked it with my already existing hotmail email account. So now using hotmail ID , I can sing-in to Office 365 and use the products. Now I am trying to access Calendar REST APIs as explained in this article. If I try:...

Office365 API, private calendar appoinments

office365
I am fetching calendar events from Office365 via the REST API using Oauth/Odata. The returned events does not seem to have any property telling me whether the appointment was marked 'private' by its creator. So, my question is; can I find out, and if so, how? Thanks.

Change the displayname of the sender when sending mail via o365?

email,office365
Is it possible to control the display name of the sender when sending mails with the office 365 OutlookServicesClient? I.e., I want to use, say [email protected] as the sender which is configured with the name some [email protected] in office 365. But for a given mail I want the from name...

What is the difference between an MS office app and MS office add in

ms-office,outlook-addin,office365,office-addins,office-app
I was trying to find a way to publish an outlook add in to office store. But I found out that we can publish only office apps and not the add ins to the office store. Hence I wanted to know what is the difference between an office app and...

Microsoft Office 365 Developing in iOS

c#,ios,xamarin,office365
I want to use Office 365 in my project, but when I try to add, I get this error I have a Xamarin.iOS project but can't add it.. This topic says that I can use Xamarin.iOS also The following projet templates support adding Office 365 APIs as a connected service:...

Run regex rule for outlook 365

.net,plugins,outlook,office365
I want to run a regex based rule for outlook 365. I saw that I can do this for outlook 2007 But is it possible to do this also for outlook 365?...

Will the unified API have delegate auth for administrators?

office365,office365-apps
All other major storage providers provide administrator-level access via their APIS to individual user files. Will this be coming with the preview? Is this available now automatically, without having to grant specific permissions outside of the API?

Powershell Exchange Module remote mailbox issue

powershell,azure,active-directory,exchange-server,office365
I have created a scripts that automatically creates a user in Exchange and than adds a license to it from o365 however i need the box at the bottom where it says "automatically update email addresses based on the email address policy applied to this recipient" to automatically be checked...