office365

How to log on to user mailbox from service using oAuth and MS Graph API

笑着哭i 提交于 2021-01-29 18:39:56
问题 I am adding oAuth authentication support to daemon application. In case of IMAP, application logs on to every mailbox by specifying userID/password. Office365 oAuth access requires application registration and uses Clients Credential Grant flow. In this case, application authenticates with Azure AD once and accesses every mailbox using oAuth token. This authentication flow requires significant changes of existing code base. I would like to access mailbox in logically same way as IMAP (specify

Ignoring invisible characters in RegEx

北战南征 提交于 2021-01-29 16:59:38
问题 I've run into a bit of a conundrum. I am currently trying to build a regex to filter out some particularly nasty scam emails. I'm sure you've seen them before, using a data dump from a compromised website to threaten to reveal intimate videos. That's all well and good, except I noticed while testing the regex that some of these messages insert special invisible characters in the middle of words. Like you might see here (I've found it especially hard to find a place that keeps these special

How to use Office 365 API in a VB 6.0 application

北战南征 提交于 2021-01-29 16:32:13
问题 I am working on an application in VB 6.0. The application uses the MS Office API to interact with Office. Is it possible to use the Office 365 API in that application? If yes, how can I do that? 回答1: The Office 365 API is based on .NET, while VB 6 is not, you can use COM as a bridge: you write a C# DLL to access Office 365, then wrap it as COM component, then VB 6 can use the C# DLL via COM. But I think this approach will be problematic. VB 6 is really too too old. 来源: https://stackoverflow

How to log on to user mailbox from service using oAuth and MS Graph API

烈酒焚心 提交于 2021-01-29 12:20:35
问题 I am adding oAuth authentication support to daemon application. In case of IMAP, application logs on to every mailbox by specifying userID/password. Office365 oAuth access requires application registration and uses Clients Credential Grant flow. In this case, application authenticates with Azure AD once and accesses every mailbox using oAuth token. This authentication flow requires significant changes of existing code base. I would like to access mailbox in logically same way as IMAP (specify

Office365 Reports via Graph API

陌路散爱 提交于 2021-01-29 10:32:25
问题 I am trying to fetch various usage reports for Office365 using Graph API. I created an Azure AD app and added the following permissions: Read All Usage Reports (Reports.Read.All) Read Directory Data (Directory.Read.All) Admin also gave a consent. I am experiencing a problem when I'm trying to fetch different usage reports. The following response is returned { "error": { "code": "UnknownTenantId", "message": "We do not recognize this tenant ID {actual tenant id}. Please double-check the tenant

MS graph InvalidDeltaToken on events list next page

£可爱£侵袭症+ 提交于 2021-01-29 10:31:23
问题 I'm getting an error when I call NextLink from the response of first delta. Any ideas why it's happens? first call: https://graph.microsoft.com/beta/users/4ca91597-4091-4cce-856b-7472b3f9ade1/calendars/AAMkAGM3MDdhNGZlLWRjYTUtNGZkYS04NTcxLTU2OTNkZWEwNDlhYQBGAAAAAAAmh2PA4MC8QpGOM1iWfgeZBwCI_1RC5zxoQrQX6X2piZBLAAAAAAEGAACI_1RC5zxoQrQX6X2piZBLAAAAjD53AAA=/events/delta response: { "@odata.context": "https://graph.microsoft.com/beta/$metadata#Collection(event)", "@odata.nextLink": "https://graph

Office server-side Automation still possible with Office 365?

强颜欢笑 提交于 2021-01-29 10:12:28
问题 I have an ASP.NET Webforms Application where the user can create reports with server-side office Automation. It basically works with FormFields that are being filled out and in the end the user gets a download with the Office document. The Application is quite old and I did not design this software. I'm also aware of the side effects of office server Automation and this article: https://support.microsoft.com/en-us/help/257757/considerations-for-server-side-automation-of-office It just works

document.contentControls not returning all ContentControls in the document

不羁岁月 提交于 2021-01-29 09:21:40
问题 I have a document with three ContentControl objects that looks like this: Here is the .docx file in its entirety - but essentially the markup of the document body looks like this: <w:body> <w:p w:rsidR="0075044D" w:rsidRDefault="0075044D"> <w:r> <w:t xml:space="preserve">Video provides a powerful way to help you </w:t> </w:r> <w:sdt> <w:sdtPr> <w:alias w:val="cc1"/> <w:tag w:val="prove"/> <w:id w:val="806369342"/> <w:placeholder> <w:docPart w:val="1F3FDE3D075A4E8AADE251C4E318E379"/> </w

Microsoft Graph - Authorization Flow - Get Authorization Code from Console App

那年仲夏 提交于 2021-01-29 09:18:46
问题 I have an Azure AD registered App and a AD user. I would like to use authorization flow in my c# console app to first get the authorization code as mentioned in this article https://docs.microsoft.com/en-us/graph/auth-v2-user and then exchange that auth code to get an access token. I would eventually like to store the access token and refresh token and use it for offline scenarios. I created a Httpclient and did a post request to get the authorization code but the Microsoft Consent screen

Flatten a nested JSON with array and filter to CSV

佐手、 提交于 2021-01-29 09:00:44
问题 I got a question about How to use Powershell flatten a nested JSON and covert to CSV. Below is my JSON, which is a mail message log get from Office 365 with many users messages, I need to filter the columns, flatten and convert to CSV : createdDateTime, receivedDateTime, from_name from_adress To_name_1 To_adress_2 To_name_2 To_adress_2 ... The "from" field has only one data. But the "toRecipients" is a array. { ... "createdDateTime": "xxxx-xx-xx", "receivedDateTime": "xxxx-xx-xx", "isRead":