office365

SharePoint Online authentication failure

蓝咒 提交于 2019-12-07 10:20:43
问题 I have a C# app which authenticates to SharePoint Online by using web requests. It works great for me, but someone else is getting the following error: <?xml version="1.0" encoding="utf-8" ?><S:Envelope xmlns:S="http://www.w3.org/2003/05/soap-envelope" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wst="http://schemas.xmlsoap.org/ws/2005/02/trust

Unable to get Office 365 groups I'm a member of via Graph API

我与影子孤独终老i 提交于 2019-12-07 07:41:36
问题 Trying to get all the Office 365 groups a user is a member of. I've registered a 'Native client application' on Azure and selected only one permission: 'Read all groups' under the 'Microsoft Graph' scope. The problem: users from other tenants got the 'Calling principal cannot consent due to lack of permissions.' error, and did not get to the consent step. If the user has admin rights or if I register another app on a second tenant, I was able to pass the consent step and also got the groups

Any Office 365 REST API to get messages from all mailboxes in an organization?

依然范特西╮ 提交于 2019-12-07 07:07:12
问题 I am exploring an option to see if it's possible to get messages from all mailboxes in an organization (i.e within a domain) using Office 365 Mail REST APIs or if there is any other way to easily get these messages. These are the options I have explored: 1) bcc all emails to a particular account and then get messages from bcc account. 2) Explored the connector option to send all mails to another email server. 3) I also saw in other posts which advises to create an Admin account/security group

Office 365 API get user details

Deadly 提交于 2019-12-07 06:42:25
When I use the url https://outlook.office365.com/EWS/OData/Users I can get all users in a company, but how can I get more details about a specific user? Such as in Contacts : https://outlook.office365.com/EWS/OData/Me/Contacts There is very little information given in Users ( Email , Alias , DisplayName ). What if I need to get a user's phone or company name and so on? Are there any other ways? These are actually two different things. The Users node isn't "GET"-able, you have to supply a user ID in the form of an SMTP address, like: GET https://outlook.office365.com/ews/odata/Users("sadie

create user accounts in office 365 using c#.net code dynamically

岁酱吖の 提交于 2019-12-07 06:23:27
I want a sample application in c#.net which can create users in Office 365 using Microsoft API . I wish to do it in code, not using Powershell. You can use the Microsoft Graph API - Create User : Register a Native Client App on Azure AD, assign the "Microsoft Graph" > "Read and Write Directory Data" permission. string authority = "https://login.windows.net/yourdomain.onmicrosoft.com"; string clientId = "{app_client_id}"; Uri redirectUri = new Uri("http://localhost"); string resourceUrl = "https://graph.microsoft.com"; HttpClient client = new HttpClient(); AuthenticationContext

How to implement admin consent flow for native app?

℡╲_俬逩灬. 提交于 2019-12-07 05:21:26
问题 How can I implement admin consent flow for native app using O365 APIs of which permission scopes require admin consent? 回答1: Admin Consent happens "out of band" from your normal authentication flow. To do this, you'll first need and Admin authenticate by going to: https://login.microsoftonline.com/common/adminconsent?<yours params> . You can provide this link within your app. Typically you would first attempt to authenticate them and present them with the Admin Consent option that process

Excel JS Add-In works in Excel but not Excel Online

孤人 提交于 2019-12-07 01:56:28
I've built an Excel JS Task Pane add-in using the WoodGrove Expense Trends sample and have validated that it runs correctly in Excel 2016 on my machine. However, when I go to Excel Online and try to add the add-in (via uploading the manifest from my machine), I get "Your add-in manifest is not valid." I'm not sure what it is about this manifest that's valid on my machine but not in Excel Online. Anyone encountered this before or have any diagnosis ideas? It's somewhat akin to banging my head into a wall at this point. Michael Zlatkovsky - Microsoft Taking a guess from looking at the manifest,

Can Office365 shared mailbox use SMTP?

喜欢而已 提交于 2019-12-07 01:48:46
问题 Need to set up service account on company printer, that sends print counters to copy company. So they can send us back the invoice. I was told, that this could be handled by shared mailbox without any licence. But it seems to me, that shared mailbox crendentials can not auth with SMTP. Do I need to buy licence? If so, which one? 回答1: Office 365 Shared Mailboxes (user without Exhcange licence) do not have SMTP access to Exchange online , which is bit different from behaviour you might expect

“Unable to set the FreezePanes property of the Window class” Excel 2016 (office 365)

浪子不回头ぞ 提交于 2019-12-07 01:47:06
问题 I've build an excel addin which fills a worksheet with data from a database. I also add some styling and lock some rows and columns by using FreezePanes. worksheet.Activate(); worksheet.Application.ActiveWindow.FreezePanes = false; worksheet.Application.ActiveWindow.SplitRow = 4; worksheet.Application.ActiveWindow.SplitColumn = 11; worksheet.Application.ActiveWindow.FreezePanes = true; This all worked like a charm in excel 2010/2013 but I recently switched to excel 2016 (office 365) and from

The application named HTTPS://test113.onmicrosoft.com/FTP was not found in the tenant named test113.onmicrosoft.com

我怕爱的太早我们不能终老 提交于 2019-12-06 20:59:29
问题 I have to authenticate an application against Azure AD. I have created the web API and added it to the Azure AD application section. Changed the manifest file, created a web API and authenticated with the Azure AD and created a Windows form, containing the following code: private async void button1_Click(object sender, EventArgs e) { string authority = "https://login.windows.net/test113.onmicrosoft.com"; string resourceURI = "https://test113.onmicrosoft.com/ftp"; string clientID = "5177ef76