Office 365 API: work hours and private appointments
Hi,
We have application that supports Exchange on-premis and we wont to add Office 365 support. For that we need to be able to obtain same information that we use currently with our on-premis solution.
Does Office 365 API support retrieving information about user work hours and events that are marked as private? I haven't found this in documentation https://msdn.microsoft.com/en-us/office/office365/api/api-catalog
Best regards
Krzysztof Branicki
Hi Krzysztof,
Thanks for posting here!
This forum is for Azure Active Directory and your query is about Office365.
Microsoft has dedicated forums for Office 365 commercial support. To ensure you
connect with the right experts
please post your question to
http://community.office365.com/en-us/f/default.aspx. Also, if you use your Organizational email address for your first-time log-on you will have a more personalized experience.
I am archiving this thread from my end as there is no action required from Azure AD Forum (MSDN Forum).
Best Regards,
Sadiqh
Similar Messages
-
Office 365 API, error: The token has invalid value 'roles' for the claim type ''
Hi guys,
I am trying to develop a Daemon / Server application using the new Office 365 APIs. I have added a new application to Azure Active Directory. I am using cURL + the app ID and secret to get a JWT token, this is the exact request:
curl -X POST https://login.windows.net/TENANT_KEY/oauth2/token \
-F redirect_uri=http://spreadyDaemon \
-F grant_type=client_credentials \
-F resource=https://outlook.office365.com/ \
-F client_id=XXXX \
-F client_secret=XXXX=
I get back a JWT however it has no scopes for access set here is the decoded JWT claims:
"ver": "1.0",
"aud": "https://outlook.office365.com/",
"iss": "https://sts.windows.net/TENANT_KEY/",
"oid": "17fa33ae-a0e9-4292-96ea-24ce8f11df21",
"idp": "https://sts.windows.net/TENANT_KEY/",
"appidacr": "1",
"exp": 1415986833,
"appid": "XXXX",
"tid": "e625eb3f-ef77-4c02-8010-c591d78b6c5f",
"iat": 1415982933,
"nbf": 1415982933,
"sub": "17fa33ae-a0e9-4292-96ea-24ce8f11df21"
Therefore when I do a request to the exchange API endpoint I get the following response:
HTTP/1.1 401 Unauthorized
Cache-Control: private
Server: Microsoft-IIS/8.0
request-id: d08d01a8-7213-4a13-a598-08362b4dfa70
Set-Cookie: ClientId=WDALDNO0CAIOOZDZWTA; expires=Sat, 14-Nov-2015 16:40:59 GMT; path=/; HttpOnly
X-CalculatedBETarget: am3pr01mb0662.eurprd01.prod.exchangelabs.com
x-ms-diagnostics: 2000001;reason="The token has invalid value 'roles' for the claim type ''.";error_category="invalid_token"
X-DiagInfo: AM3PR01MB0662
X-BEServer: AM3PR01MB0662
X-AspNet-Version: 4.0.30319
Set-Cookie: exchangecookie=6bf68da033684824af21af3b0cdea6e3; expires=Sat, 14-Nov-2015 16:40:59 GMT; path=/; HttpOnly
Set-Cookie: [email protected]=[email protected]4Wbno2ajNGQkZKWnI2QjJCZi9GckJKBzc/Oy9LOzdLOy6vOycXLz8XKxoGaio2PjZvPztGPjZCb0ZqHnJeekZiak56djNGckJI=; expires=Sun, 14-Dec-2014 16:40:59 GMT; path=/EWS; secure; HttpOnly
Set-Cookie: [email protected]=[email protected]4Wbno2ajNGQkZKWnI2QjJCZi9GckJKBzc/Oy9LOzdLOy6vOycXLz8XKxg==; expires=Sun, 14-Dec-2014 16:40:59 GMT; path=/EWS; secure; HttpOnly
X-Powered-By: ASP.NET
X-FEServer: DB4PR02CA0026
WWW-Authenticate: Bearer client_id="00000002-0000-0ff1-ce00-000000000000", trusted_issuers="00000001-0000-0000-c000-000000000000@*", authorization_uri="https://login.windows.net/common/oauth2/authorize", error="invalid_token",Basic Realm="",Basic Realm=""
Date: Fri, 14 Nov 2014 16:40:59 GMT
Content-Length: 0
I have asked a stack overflow question here: http://stackoverflow.com/questions/26950838/office-365-api-error-the-token-has-invalid-value-roles-for-the-claim-type
Any help on the matter will be hugely appreciated, thanks!Hi Manu,
To wrap this thread up; I have had an answer on stack overflow.
It appears that currently the grant type client_credentials is not supported, according to a comment on this blog post by Matthias' http://blogs.msdn.com/b/exchangedev/archive/2014/03/25/using-oauth2-to-access-calendar-contact-and-mail-api-in-exchange-online-in-office-365.aspx
"There is no way in the code flow to avoid username/password. We're working on a client credential flow for later this fall that will give you the functionality required to run background services. For this you will not need a username/password,
but the application will directly assert its identity and authenticate as itself."
Unfortunately I require client_credentials for a daemon process, Q4 is the scheduled release for support for this grant time.
Thanks for the help,
Nick -
How to Use Office 365 api in Provider Hosted App
Hi,
I want to use outlook api in SharePoint Provider Hosted App.
when I use :-
$.ajax({
url: 'https://outlook.office365.com/api/v1.0/me/contacts',
type: 'GET',
beforeSend: function (xhr) {
xhr.setRequestHeader('Authorization', 'Bearer');
Accept: "application/json",
"client-request-id": "9de3d763-a8d9-4433-92f3-096d6be36d86",
success: function () {
alert("Welcome to Outlook ")},
error: function (e) {
alert(' Error121212 :' +e);
Error:-
XMLHttpRequest cannot load https://outlook.office365.com/api/v1.0/me/contacts. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://localhost:44309' is therefore not allowed access. The response had HTTP status code
401.
Please Provide me a good example.
Thanks in AdvanceHi SharePlus,
You probably want to use the Office 365 API's to authenticate and communicate with the API's.
There's several resources available for this:
Ultimate LinkRoll for Getting Started with the Office 365 API's
Download Office 365 API Tools for Visual Studio 2013
Getting Started with O365 Dev - Communicate with Exchange
If you don't want to use the pre-compiled typed objects in the Office 365 API's for communicating with the Mail service (Exchange), you can always just make sure to handle the authentication properly and then construct your queries as raw queries, like Chaks
describes here: http://chakkaradeep.com/index.php/working-with-office365apis-the-raw-version/
Also, as a general rule; When working with anything Office 365, you should always keep an eye out for the example code, articles and news published from the Office 365 Patterns & Practices team here: https://github.com/OfficeDev/PnP
I hope this will guide you in the right direction :-)
Tobias Zimmergren
Microsoft MCP, MCTS, MCT, MVP (SharePoint)
Blog: www.zimmergren.net
Twitter: twitter.com/zimmergren
Corporate site: www.tozit.com -
Javascript Support in Office 365 APIs
Looking at the Office 365 API Preview, I came across this sentence in the Discovery Service section.
"Currently, the Discovery Service APIs are available in a .NET C# managed portable library that can be used by Native, Windows Store, and Windows Phone apps."
If the Office 365 APIs will only be available when fully released as C# libraries that is a huge problem, especially if you want Windows Store App Developers to write apps that utilize data from it, even OData. There is a very large section of that dev community
that write in JavaScript and you will essentially be ignoring and/or cutting off that whole segment of that community if you do. One of the great things about the Windows 8 App dev platform is that a developer can use (almost) any language that he/she is comfortable
with, that HTML/Javascript and C#/XAML live, breath and thrive together. Unfortunately, it seems that the SharePoint product teams only are able to write in C#.
It has been quite a struggle to write apps that utilize the SharePoint 2013 product line (on-prem, online, Project Online, etc) as a HTML/Javsacript Windows Store App developer, especially around authentication. No samples exist. The C# samples that do exist
utilize coding methods that are very specific to how one would developer on the SharePoint platform before the new "app" dev model came about, which aren't necessarily the correct or appropriate ways that a Windows 8 developer would/should do things.
It's like they didn't even bother to learn about the axioms and dev principals for Windows 8 Store Apps or worse didn't talk to their colleagues on the Windows Dev team.
I write in both HTML/JavaScript and C#/XAML, which is not a common practice. However, when I am writing Windows 8 Store apps, HTML/JavaScript is the language that I prefer. It is just easier to get some of the more advance design things done in that language
combination then in C#/XAML I have found. I have been holding off releasing some of my apps because I want to support O365/SharePoint Online/Project Online with them. If these new libraries are only going to be C#, then my apps just won't support O365. I would
hope though that going forward that more support would be given to this large section of your customer community.
Regards,
Christine FloraNot sure if you've done a lot of work trying to get OData out of Office 365 / SharePoint Online or Project Online or done any Windows 8 development, but you must authenticate before you can even get TO the OData endpoints. So yes, the REST Endpoints are
accessible by using an httpClient call from within Javascript, if in fact you can authenticate and authorize first.
Currently this is a big pain in the backside, even if using C#, but from JavaScript it is almost impossible. Even now some of the current/popular methods for doing so can open big security holes on a Win8 machine (ie: running a claims service on your Win8
machine locally just to authenticate to name just one). I was hoping / am hoping that the new APIs will help with that, but I am not at all encouraged by what I am seeing and hearing so far especially since it looks like from the quote I provided above
that they will only be available if you are using C#. As I pointed out, a large part of the Win8 App Dev community using JavaScript.
I want to put it out there that I truly hope that the SharePoint product teams take this into consideration as they work on these new APIs and other ways to extend the SharePoint App family.
Christine -
Hi team,
i have been building up native applications and has access to Microsoft tenant in azure and there i have already the mobile application. Also i can add the webapi's to my application once when i went to configure tab and hit add on the bottom.
So from here i can add office 365 exchange online api and set the delegated permissions to required field.
Also i went through couple of articles and videos which shows how to get access to office 365 api.
http://www.microsoftvirtualacademy.com/training-courses/deep-dive-integrate-office-365-apis-in-your-mobile-device-apps?m=11496
As mentioned in video we add the connected service and it sign in to microsoft account and register the app.
Also add some client id to App.xaml . And when we went to tenant application page we can see the new registered app with a client id.
Please let me know if i already has the application in azure and i have added the office 365 exchange online api , then shall i need to do above steps or i can directly hit the api service Uri's.
thanks,
NIteshHi,
need to add the office 365 exchange online web api in Azure and set the required permissions.
then following this video code we can connect with office apis
http://www.microsoftvirtualacademy.com/training-courses/deep-dive-integrate-office-365-apis-in-your-mobile-device-apps?m=11496
also following url can be referred if we need directly to communicate with office 365 api using Oauth authentication method.
https://msdn.microsoft.com/en-us/office/office365/api/api-catalog
Thanks,
Nitesh -
Can we integrate Office 365 API's directly in Visual Studio 2012 ? Also if we integrate is it possible to customize the Mailboxes, Calendar etc.. and also can apply our own styles ?
ThanksUsually when people say API they are talking about server side code, which is not allowed in Office 365. So in that sense no you can't use the Office 365 APIs. You can use the new client side object model from Visual Sudio 2012. Take a
look at the following site for an Introduction to Development for Office 365 and SharePoint 2013.
http://www.microsoft.com/en-us/download/details.aspx?id=17069
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem. -
I'm trying to download office 365 small business package, and every time I try the website it says there is a runtime service error in the '/' application. Is this my mac or is it the website, and how can I fix it?
If a phone is sold from one friend to another and wants to use it on a different carrier the friend can contact the carrier it was sold by to request it unlocked. I know AT&T, Verizon, and Sprint will give you the steps to unlock it as long as the original contract it was bought under has been completed. eBay/Craigslist is really not the best place to try to get "unlocked phones" from, if it turns out the phone isn't unlocked then I'm really sorry you got stuck with that one and as stevejobsfan said above I would report them immediately and see if you can recover your money. I sell phones for a living and this happens a lot
-
Resource availability during Non-Working Hours and Weekends
Hi Gurus,
Aim: Make the Resource available during Non-Working Hours and Weekends
Requirement: CRP functionality enabling
In CRC2 I have selected capacity tab and in capacity header under 'Change Interval and Shifts' button. I have Inserted a new Interval period and given the validity from/to dates(Non-Working day - Saturday) and Saved.
When i execute the Capacity Planning CM01, there is no change. The Resource availability still shows as "0"hrs for this particular date and for rest of the days it shows as 8hrs.
I have checked the same even after executing the MRP, No change in Capacity Planning Overview - Still the available Capacity Showas as 0
Please guide me, how can i use my resource during the holidays. Means make the system understand that the defined day is a working day though it is holiday as per factory calendar
Please correct me whether am i missing any settings or i should follow some other logic
Regards,
TamHi Partha,
In workdays i dont have any such option "2"
As per standard list I could see only 3 entries in the possible values(F4) popup
"Blank" - Working days according to factory calendar
"0" - Non-Working days(Overrides factory Calendar)
"1" - orking days(Overrides factory Calendar)
I have even tried with option "0" and "1" its still the same, when i enter the period From and To date the fields for the entries Shift start and end date, workday, Shift Seq, Length of the shift, No.of shifts.........are jumping to the next line item.
Because of which i understand that the entered values is not corresponds to the newly defined period
Pls guide me to how to make the resource available during non working days
Regards,
TamNen -
Softwares/licenses require over Office 365 Development,QA, UAT and Production site
Hello, Client has Office 365 E3 version, this plan provide Development site. We require to do extreme customization and
third party integration for that we are planning to go with Provider hosted app.
So, what are the additional software’s/licenses would require for Development,
QA, UAT and Production site for 6 developer?
How can we manage Development licenses cost of Visual Studio 2013, SharePoint 2013 Designer for 6 developers?
Do client need to purchase additional licenses of Office 365 E3 for QA and UAT site?
Do client need to buy additional license for Azure Web Site or is it provided in Office 365 E3 version by default, as we need this for Provider hosted app?Hi,
Per my understanding, there might be some queries on the development environment set up in Office 365.
About the requirement of setting up a development environment for Office 365, steps in details can be found in the two links below:
Setting up your Development Environment for O365 & Azure Development
http://blogs.msdn.com/b/steve_fox/archive/2013/02/03/setting-up-your-development-environment-for-o365-amp-azure-development.aspx
How to: Set up an environment for developing apps for SharePoint on Office 365
https://msdn.microsoft.com/EN-US/library/office/fp161179.aspx
For the license related issues of Office 365, I suggest you post it to Office 365 forum, you will get more help and confirmed answers there.
http://community.office365.com/en-us/f/default.aspx
Thanks
Patrick Liang
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
GetByPathAsync() method in Office 365 API
I'm currently working on a Universal app that uses the Office 365 client libraries and would like to access the documents library in my teamsite. I tried to use the
GetByPathAsync() method while passing a string that contains the document library name but that didn't work, I also tried providing the whole path but that didn't do any good either. Could anyone please guide me to a way where I could access
the teamsite? I have looked all over the Office dev hub and couldn't find a single sample on the method above.
ThanksHi,
What was the parameter you passed to the GetByPathAsync method?
Here is a path sample for your reference: “/Documents/FolderName”.
And you may find more samples about how to use getByPath API from the document below.
https://msdn.microsoft.com/en-us/office/office365/api/files-rest-operations
Regards,
Jeffrey
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Office 365 API with Visual studio 2013 using file REST API
Hi,
I had configured MVC application for getting files from office 365 one drive, I am able to seen all file on last day but Now I am getting below issue
<?xml version="1.0" encoding="utf-8"?><m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><m:code>-1, System.ApplicationException</m:code><m:message xml:lang="en-US">Error
in the application.</m:message></m:error>
when I want to see again all files. and most important I didn't make any changes in my previous code...
Please share your suggestion....Hi,
If you are developing an app for SharePoint, the app can call into a user’s MySite site collection and access their OneDrive for Business documents using REST or CSOM.
The REST call to get to the file would be:
https://YourO365DomainHere-my.sharepoint.com/personal/YourUserName_YourO365DomainHere_onmicrosoft_com/_api/web/GetFileByServerRelativeUrl('/personal/YourUserName_YourO365DomainHere_onmicrosoft_com/Documents/Shared%20with%20Everyone/myDocument.docx')/$value
More information is here:
http://blogs.msdn.com/b/sharepointdev/archive/2013/08/13/access-skydrive-pro-using-the-sharepoint-2013-apis.aspx
Best regards
Dennis Guo
TechNet Community Support -
Using Office 365 on your smartphone and tablet
As the crowning jewel of Microsoft's software empire, Office 365, which includes Word, Excel, PowerPoint, Outlook and OneNote, was once exclusive to PCs and Surface tablets. Not anymore. Microsoft recently pushed its Offce productivity suite to various rival smartphone and tablet products and as a result, Office 365 is accessible on more devices than ever before.
Hi,
Please try to test with another account and see if this is an account issue. Also, try to add the this service as OneDrive and see if it works.
This is the forum to discuss questions and feedback for Microsoft Office Clients, for sites and document sharing in Office365, better to post your question to the forum for
Microsoft Office 365 Community:
http://community.office365.com/en-us/f/154.aspx
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
Thanks,
Ethan Hua CHN
TechNet Community Support -
Planning working hours and actual working hours
Hi All,
From which cube or data source i will get the job Order Planning Working hours & Actual Working hours.
Thanks in Advance
Edited by: ranamk on Jan 24, 2011 7:10 AMHi Anil,
I have already go through the links and couldn't able to find the solution.
I need Actual Working and Planned working Hours by Job Order.
Thanks -
OFFICE 365 ISNT WORKING WITH OS X YOSEMITE
I tried to open Office 365 for Mac on my MacBook Pro but comes up with a message saying there is a problem but does not specify what the problem is.
http://answers.microsoft.com/en-us/mac
27" i7 iMac (Mid 2011) refurb, OS X Yo (10.10.1), Mavs, ML & SL, G4 450 MP w/10.5 & 9.2.2 -
Hi guys,
Title covers largely what I'm trying to do. I'm trying to create an app in Android Studio that uses the Office365 for Android API (https://github.com/OfficeDev/O365-Android-Start).
In this app i want to bind calander events to Locations that i create in Exchange online. Is this possible? If so, how? Have not been succesful in finding in any information on the issue so far.
At the moment when the user wants to create an event, the user just types in the "location", but this is just a string and not bound to anything. I would prefer to get a dropdown of all the room resources I have on Exchange and that this will make
that the location. This to prevent 2 seperate meetings happening in the same room at the same time.
(Was sent here from the O365-forums, so sorry if this is a misplaced post)
Thanks for any and all help.
MathiasSo then I'm guessing you want to be able to retrieve the list of resources in the address book? If the Exchange admins have configured room lists, you could use those:
https://msdn.microsoft.com/EN-US/library/office/dn643730(v=exchg.150).aspx.
Maybe you are looking for
-
0x80220022 error when I try to burn a DVD
Hi, I get an error message (0x80220022) whenvever I try to burn a DVD. Same message occurs in both toast titanium and in the finder. When in toast the program starts verifying the information to be burned but I get the error message and the DVD is ej
-
Hate to ask for help, but can't find anything from google. Also sorry if this is the wrong place to post it. Anywho, I'm having trouble installing ATI Catalyst. When I installed Arch I installed the oss drivers, but I can't play any resource heavy
-
In imovie 11, with Snow Leopard on the computer, the source videos (which are on a external hard drive) show up as solid gray in the imovie source video panel. If I click on a gray area I can get the video to play, but I dont know where I am in the v
-
ITunes will not open (with or without nano connected)
Please help me, I'm a newbie... The root of the problem was my computer "not being auterised to play music" (even though it was), that I'd purchased via a £15 music card, when using the help suggestions on here, I fixed THAT problem but unfortunately
-
Yosemite upgrade on mini server
I keep getting a note on my desktop often that says I should upgrade to Yosemite. Will my ftp and web server work automatically after if I click "yes"?