office365

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

孤人 提交于 2019-12-13 05:56:12
问题 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, to try. In my code, I use a x509 certificate to acquire the token, and I get it without problem. Then I call, with curl, the url "https://graph.microsoft.com/beta//users/" to get the users list, and I get a 500

How to get roles assigned for an user in Office 365 environment from Powerapps

旧巷老猫 提交于 2019-12-13 05:49:33
问题 We are trying to change Button Visibility Based on User Role. Added Custom Security Role, Assigned roles to Users from Dynamics 365 environment . Custom Security roles Assigned These roles to Users via Manage Roles option. Manage User Roles How can we get Role assigned for CurrentUser in Powerapps Environment? Only 3 attributes(Email,fullName,Image) are available for User() object. Tried using Dynamics 365 Users, Security roles etc into Datasource. Also tried by adding Users entity into

Office 365 Rest api auth

ε祈祈猫儿з 提交于 2019-12-13 04:44:10
问题 I'm trying to use the Office 365 api to fetch user's calendar events. I managed to get a valid oauth2 access_token, but when I use the api, the authentication fails. GET https://outlook.office365.com/api/v1.0/me/calendars Headers: Authorization: Bearer **MYACCESSTOKEN** A very slow response (about 5 secs) give me a 401 Unauthorized...I have already checked that my access_token is not expired. Response headers: Cache-Control: private Content-Length: 0 Date: Thu, 06 Nov 2014 10:53:12 GMT

Login from Microsoft account not working for Multitenant Azure AD application

五迷三道 提交于 2019-12-13 04:15:10
问题 I'm building multitenant SaaS web based application. Application is registered in my tenant and each customer with their office 365 subscription will get Service principal object in Azure AD. I'm having problem with login from external account (Microsoft account) in customer tenant. I created example and tried to see what I can get from access token. Sample consists from one client application (.js) that uses MSAL library to handle authentication and two APIs that have protected endpoints. I

Accessing all users one drive files using graph

拜拜、爱过 提交于 2019-12-13 04:01:24
问题 Possibly I am posting the duplicate question as already described in the post below. How to get admin access to files for all user's OneDrive We are running in to same issue. Can not access any users one drive with following api: https://graph.microsoft.com/v1.0/users/{userPrincipalName}/drive/root/children we have all the permissions in place and account used for authentication is Global Administrator. Interestingly,as described in the article below, when we provide access from the Admin

Microsoft Graph API : “403 forbidden” error when getting groups conversations

倾然丶 夕夏残阳落幕 提交于 2019-12-13 03:50:38
问题 In a Node.js script using adal-node, I'm trying to retrieve a group conversations following parts of this official documentation. I've created an application in Azure AD administration for my tenant, and temporarily checked all permissions for Graph API (should exclude a "missing permission" problem), then clicked on the " Grant permissions " button. I'm using a certificate for authentication. Basically I'm doing: var adal = require('adal-node'); var authorityUrl = 'https://login.windows.net/

Create Mail and mark as send without Sending it

随声附和 提交于 2019-12-13 03:48:23
问题 I want to migrate my email from my old email environment (non-Microsoft) to Office 365. To do this, I want to use the REST API. I can already create messages but they are always marked as "draft". Is there any way to create message and mark them as sent with the old sent date? 回答1: Migration scenarios are not a good fit for the REST API. You should instead use the tools that come with Office 365 to handle email migration. For a general overview, see Ways to migrate multiple email accounts to

How to get a channelId from an exchange item created for MSTeam team messages?

爷,独闯天下 提交于 2019-12-13 03:25:55
问题 Messages in MSTeam appears in group/team mailbox in Conversation History > Team Chat folder. In case of a team/channel message,I didn't see an attribute to determine channelID a message item is associated with. The subject of the message item have channelname (for channel other than general) but channelname can change. So subject is not reliable to derive the channel info. Is there any attribute to retrieve the channelId given a msteam message item in exchange. Here is the MS TEAM named test1

Content type fields+customXMLParts+ document custom properties

你。 提交于 2019-12-13 03:07:34
问题 I have associated my custom content type with my document library in sharepoint, and each content type is connected with a template. Is there a way that I can access content fields values with 'office js' so that I can update my content fields values by code? I tried 'CSOM', I can access the fields and can edit, however when I save I got error message saying the document is in use or is locked by another person. Note: with 'context.document.properties' I can only access the buildin properties

Accessing all user's mailbox via Office 365 REST API

浪子不回头ぞ 提交于 2019-12-13 01:35:08
问题 I am trying out Office 365 Rest APIs. I have registered application with Azure AD. It has following permission set: Exchange: Access All User's Mailbox, Full Control on User's Calendar, Full Control on User's Contacts, Full Control on User's Mailbox I have generated access token with admin grant which has global admin privileges. Sent following request 'https://outlook.office365.com/api/users/me/messages' which resulted in correct results giving me all messages in current admin's mailbox Sent