microsoft-graph

Where can I find APP ID URI for Microsoft App?

蓝咒 提交于 2019-12-23 22:01:13
问题 I am trying to log in as my registered app, with the permissions granted on: Azure Portal > App registrations > App registrations (Preview) > My App Name - API permissions According to this documentation, I have to pass my resource identifier ( APP ID URI ) in the scope parameter when requesting a token. I am certain that this scope parameter is the one causing me problems. I have tried different parameters of the scope. https://graph.microsoft.com/.default : This works for basic functions,

Microsoft Graph API User custom property

六月ゝ 毕业季﹏ 提交于 2019-12-23 12:30:14
问题 I need to access custom properties on the user object via the graph api. Currently the documentation shows the properties that can be accessed in the "Update User" section of the v1.0: http://graph.microsoft.io/docs/api-reference/v1.0/api/user_update . I'm using this call to get the current logged in user and properties, but I can't seem to get any custom properties to work: https://graph.microsoft.com/v1.0/me?$select=aboutMe,birthday,city,country,department,displayName,givenName,hireDate

Contains filter on Microsoft Graph query not working

≯℡__Kan透↙ 提交于 2019-12-23 10:34:09
问题 I'm trying to user the contains filter on a /users query, like this for example: https://graph.microsoft.com/v1.0/users?$filter=contains(displayName, 'Garth') However, this results in a BadRequest response saying "An unknown function with name 'contains' was found. This may also be a key lookup on a navigation property, which is not allowed." According to the OData 4.0 specs, the contains filter should be available though. Is there a way to use a contains filter on a list of users? 回答1: The

How to get Azure tenant name from graph.microsoft.com?

一笑奈何 提交于 2019-12-23 09:29:37
问题 I need to discover user's tenant name, since the service endpoint, resourceId that I'll be using an Azure service that requires me to specify the tenant name: service endpoint: https://[tenantnamme].api.crm.dynamics.com/... resource Id: https://[tenantname].crm.dynamics.com I was hoping Unified Microsoft Graph API can discover this for me. I looked at the documentation, the closest I can see is to use graph.microsoft.com/v1.0/organization which will give me back: verifiedDomains : [ ....

Sharepoint `Unsupported segment type` when checkin/chekout file

那年仲夏 提交于 2019-12-23 09:20:35
问题 I'd like to use the checkout/checkin feature on the OneDrive REST API : https://docs.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_checkout I'm facing two issues: 1st issue - the file info API returns publication property as published , even the file is manually checked out Request: https://graph.microsoft.com/v1.0/sites/SITE_ID/drive/items/FILE_ID?select=name,id,publication Response: { "id": "01KJOOXJHF77OPSR7HWVCKSTHBQJQZEBJI", "name": "diamond.mmap", "publication": { "level

Azure AD - Retrieve a On-Prem AD Group Common Name

风格不统一 提交于 2019-12-23 05:25:13
问题 I have an application that needs to filter permissions based on their on-prem AD common name. Couple of notes: Azure AD Connect is syncing data between OnPrem AD and Azure I am successfully retrieving the logged on user's group information from Azure Graph API into the Web Application. The problem I'm having is the data returned from Graph API is not what I need or I have not properly configured Azure AD Connect properly. The Graph API JSON return object for groups is documented here. Here is

Create Microsoft team for office group programmatically

我的梦境 提交于 2019-12-23 04:56:40
问题 I'm creating an office group using Microsoft Graph API. After that I would like to create a Microsoft Team which is associated with the group. I can do this step manually, but I'm wondering if it's also possible to do so via API. Graph API doesn't seem to support Microsoft Teams yet. Am I correct? 回答1: You are correct, Teams is not yet part of the Graph API, nor do we yet have support for creating Teams. Both are on the road map, but I do not have an ETA for you at this time. 回答2: Actually

Office 365 API ErrorAccessDenied Access is denied when sending an email

夙愿已清 提交于 2019-12-23 04:45:38
问题 We have an application on Azure that we were already able to read user's email so far after a lot of work and frustration. For testing purpose I gave the application almost full access (see image) below), including but not limited to sending email on behalf of users, reading users email and etc. I know we don't have to give the application such access unless needed but this is just to make sending email work. I've this curl code for test purpose to send email curl -i https://graph.microsoft

Error “The OneDriveForBusiness for this user account cannot be retrieved.” when accessing Microsoft OneNote with Graph API

喜夏-厌秋 提交于 2019-12-23 04:34:42
问题 I make the following REST GET request: https://graph.microsoft.com/v1.0/me/onenote/notebooks I get the following response: { "error": { "code": "30108", "message": "The OneDriveForBusiness for this user account cannot be retrieved.", "innerError": { "request-id": "25926552-3157-483a-bbcd-41a7105cd531", "date": "2017-07-22T18:46:07" } } } I do not have a One Drive For Business account. Do I really need one to access the OneNote API? Thanks. 回答1: Yes. In order to use the API (to access OneNote

List children API doesn't give all the children of the drive/folder

核能气质少年 提交于 2019-12-23 03:41:38
问题 I am facing the following issue while getting files/folders for OneDrive of a user. On hitting https://graph.microsoft.com/v1.0/users/{user-id}/drive I get this in the response: "quota": { "deleted": 0, "remaining": 0, "total": 0, "used": 0 } which denotes that the drive isn't being used or is empty. On hitting https://graph.microsoft.com/v1.0/users/{user-id}/drive/root I get the response - "folder": { "childCount": 21 }, "root": {}, "size": 281236319 Here, it denotes that there are 21 files