office365

How to pass a variable to -Filter

走远了吗. 提交于 2019-12-31 05:20:12
问题 I have come across a very strange situation in PS. In a script I have, there is a cmdlet ( Get-Mailbox ) which pulls back a few mailboxes and stores them in $mailboxes . I then loop through this as follows to find a matching AD account. foreach ($user in $mailboxes) { Get-ADUser -Filter {UserPrincipalName -eq $user.UserPrincipalName} } When I run this it errors saying that it can't find the property UserPrincipalName on $user . I have debugged the script and tested it thoroughly. At the point

How to Determine Account Type?

余生长醉 提交于 2019-12-31 04:13:06
问题 In my script I need to know whether an account is a Mail-User , Mail-Contact or licensed user account. Presently I have to know this before-hand and supply it to the script myself. Is there a better way than this? This only figures between a licensed user and a Mail-Contact-or-Mail-User. #test for existing account function GetAccountType($whatusername){ $isType = [bool](get-mailbox -identity $whatusername -ErrorAction SilentlyContinue) if($isType){ $thisType = "Licensed" }else{ $isType =

MS Graph Excel list charts in worksheet not working

梦想的初衷 提交于 2019-12-30 07:43:28
问题 I am using this MS graph call to list the charts in an excel worksheet. GET /workbook/worksheets/{id|name}/charts Graph returns this error: { "error": { "code": "GeneralException", "message": "There was an internal error while processing the request.", "innerError": { "request-id": "ea42895c-1b98-4d34-baf3-6c544f2ff81c", "date": "2018-03-29T04:54:50" } } } I tried different worksheets and chart types with the same result. It was working until a couple of days ago. Can anybody reproduce this

Office365 API - Accessing another users/room's calendars

邮差的信 提交于 2019-12-30 00:58:12
问题 I'm attempting to build an application that will have access to all of an organization's calendars (users, rooms, etc). Currently my auth flow will sign in on behalf of a tenant user and make use of refresh tokens to access needed resources. As soon as I make a request to: https://outlook.office365.com/api/v1.0/users/{room-resource@email}/events My application is responded with a 401 From my gathering, it seems that this flow is limited to a single user's scope. Although the tenant admin

Active X Error With Excel 2016 And Late Binding

独自空忆成欢 提交于 2019-12-29 09:14:53
问题 I have Microsoft Office 365 Business installed on my PC and am attempting to run Access VBA to create an Excel Object. This is my Access VBA syntax I am using Dim xl As Object, wb As Object, ws As Object, ch As Object Set xl = CreateObject("Excel.Application") However, it hits the CreateObject line and throws the image below, but ONLY on my PC running Office 365 Business. If I run this same syntax on a computer running Office 2010 it executes exactly as it should and creates the Excel Object

How to get In-Place archive mailbox in Exchange Online using Office 365 APIs

╄→尐↘猪︶ㄣ 提交于 2019-12-29 09:05:10
问题 I want to get list of folders/emails inside In-Place mailboxes. But both mailbox list and folder list doesn't returns In-Place mailboxes. This is what I have tried till now: Get mailboxes using following request Request: https://outlook.office365.com/api/v1.0/users('someuser@somedomain.onmicrosoft.com') Response: { "@odata.context": "https://outlook.office365.com/api/v2.0/$metadata#Users/$entity", "@odata.id": "https://outlook.office365.com/api/v2.0/Users('12637010-f344-4827-9e3b-21218392985d

Skype For Business - Receive IM not working with the below steps

心不动则不痛 提交于 2019-12-28 03:13:26
问题 I am developing a skype java rest based app for "skype for business". I am able to send im, authorize etc. But, I'm not able to receive IM. The events object take too much time to respond for my postman request. And, there are no incoming IM shown in my events object. But the receive Message IM feature is not working. The steps I have followed are 1) generate access token and access my ucwa application. 2) make user online with makeMeAvailable api. 3) get request for ucwa application

Office 365 Rest API - Daemon week authentication

时光毁灭记忆、已成空白 提交于 2019-12-28 02:06:40
问题 I am trying to build a Ruby Daemon service to access the Office 365 rest API. It was recently made possible to do this via the OAuth 'client_credentials' flow, as detailed in this blog 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 I am struggling to generate a valid access token. The token endpoint returns me a JWT however when using this token I received a 401 with

Block email sender

旧城冷巷雨未停 提交于 2019-12-27 03:56:06
问题 Is there anyway you can create a code, when you click a button (I've already created this) it will take the selected email and block the sender which will delete the email? 回答1: Outlook Object Model does not expose blocked/safe senders at all. If using Redemption is an option, it exposes RDOJunkEmailOptions object (returned from RDOSession. JunkEmailOptions , RDOAccount. JunkEmailOptions , RDOExchangeMailboxStore. JunkEmailOptions ), which allows to add blocked senders using

Error accepting audio calls in skype for business web app. Error Failed to parse SessionDescription in Chrome

感情迁移 提交于 2019-12-25 19:16:09
问题 I have a Skype For Business Online web app. I am using Skype Web SDK and Azure AD for authentication. On making a audio call from Lync, I sucessfully receive notification in the web app. But the audio call soon gets disconnected. Error is Failed to parse SessionDescription. candidate:a5BpIVxQzQh5t/7CqfgBOQeCbDFb0l/mEzYbPkw96vg 1 1V4ajHJQOLI2T9wGQfzL1g UDP 0.830 172.51.21.32 24068 Expects at least 8 fields. The name of error comes as OperationError 回答1: Currently the Skype Web SDK doesn't