Microsoft Graph API Application Logo - microsoft-graph-api

With the May 2017 beta update, retrieve the application logo through the GRAPH API changed from mainLogo to Logo. When tested through the Graph Explorer with the new API, it's now given an error message as follows, tried the logoUrl property, it also failed.
API Call
https://graph.microsoft.com/beta/applications/[ApplicationID]/logo
{
"error": {
"code": "Request_UnsupportedQuery",
"message": "This property logo cannot be read. Please use the logoUrl property.",
"innerError": {
"request-id": "623806c0-6255-4b7d-bce1-d1cb7a982e6c",
"date": "2017-06-09T20:21:37"
}
}
}

logoUrl is under info, for example https://graph.microsoft.com/beta/applications/[ApplicationID]/info/logoUrl

Related

InvalidDeltaToken on NextLink (Microsoft Graph Calendar)

When I get the list of events using :
https://graph.microsoft.com/beta/users/myemail#email.com/events/delta
Microsoft Graph Explorer
I get the link #odata.nextlink, but this link returns an error InvalidDeltaToken
{
"error": {
"code": "InvalidDeltaToken",
"message": "The value 'NCZVRzVYWmtGYVRtaHFiemxpWmxOYVNHaFRWVkpVVmsxbFZVNUJAHFUYRJKJNSDSDZCUVE9PQ==' of parameter '$deltaToken' is invalid.",
"innerError": {
"date": "2020-12-04T06:57:25",
"request-id": "5a96ac45-d7ed-4454-8597-eae1587c32",
"client-request-id": "85679541-3618-b871-b880-f51191ab745"
}
}
}
// the ids have been modified !
Microsoft Graph Explorer
This issue occurs when the list of events has more than let say 200 elements (not sure exactly but over 175, I'm starting having the problem).
I can't find any workaround even using odata.maxpagesize, I'm still having the issue.
I'm using Microsoft Graph Explorer to reproduce the error.

Unable to delete AppRoleAssignment using Beta Graph API

I'm using the Graph API beta endpoint to try and delete an AppRoleAssigmnet:
https://graph.microsoft.com/beta/appRoleAssignments/I9pzftcx_06aCwX8sV9cmziqx-oiF21IlkxV9xRYvBM
I am using the DELETE verb and below is the response I get back:
109
{
"error": {
"code": "Request_UnsupportedQuery",
"message": "Direct queries to this resource type are not supported.",
"innerError": {
"request-id": "aa7c14a3-f700-4368-898e-009f1608ade1",
"date": "2019-04-30T00:29:50"
}
}
}
0
According to the beta documentation, this is allowed:
https://learn.microsoft.com/en-us/graph/api/approleassignment-delete?view=graph-rest-beta
I also verified the correct permissions according to the documentation as well.
I know this is a beta endpoint but any chance this will be fixed soon or do I need to use the Azure AD API instead?
UPDATE
I tried going through the users collection and it also fails:
https://graph.microsoft.com/beta/users/7e73da23-31d7-4eff-9a0b-05fcb15f5c9b/appRoleAssignments/I9pzftcx_06aCwX8sV9cmziqx-oiF21IlkxV9xRYvBM
I am using the DELETE verb and below is the response I get back:
fb
{
"error": {
"code": "BadRequest",
"message": "Write requests are only supported on contained entities",
"innerError": {
"request-id": "b6db0eee-dc45-4e10-a56c-9a870fb7315c",
"date": "2019-04-30T23:49:24"
}
}
}
0
I tried going through the service principal collection and it also fails:
https://graph.microsoft.com/beta/servicePrincipals/27e0a182-2008-4b4e-b998-731e0d111041/appRoleAssignments/I9pzftcx_06aCwX8sV9cmziqx-oiF21IlkxV9xRYvBM
I am using the DELETE verb and below is the response I get back:
18b
{
"error": {
"code": "BadRequest",
"message": "The type 'microsoft.graph.appRoleAssignment' does not inherit from and is not a base type of 'microsoft.graph.directoryObject'. The type of 'KeySegments' must be related to the Type of the EntitySet.",
"innerError": {
"request-id": "8c981e82-755e-4c25-b448-58d2b71e12c7",
"date": "2019-04-30T23:46:20"
}
}
}
0
I'm afraid this service bug has existed for a very long time. The only thing I can say is to try this with AAD Graph until this is fixed in Microsoft Graph. The schema unfortunately models appRoleAssignments as a standard relationship, whereas in fact it is implemented as a contained entity (i.e. you can only operate on the app role assignment when it is contained as part of another entity - like users, groups or servicePrincipals). The schema definition needs to be updated. The documentation is accurate IMHO.
Hope this helps

Microsoft Graph find meeting time targetSmtpAddress error

I'm trying to query Microsoft Graph beta branch for me/findMeetingTimes, but all I can get is error:
{
"error": {
"code": "ErrorInternalServerError",
"message": "The value is set to null\r\nParameter name: targetSmtpAddress",
"innerError": {
"request-id": "eb163718-457d-4715-af4d-59f934fffaa7",
"date": "2017-07-19T08:53:32"
}
}
}
I get the same result running the query from Graph Explorer. There is no targetSmtpAddress parameter I could find.
Thank you for any help!
Have you checked if calendar is enabled on this account?

Microsoft Graph SharePoint access items (read/write)

I am attempting to create a new list item in SharePoint Online using the [beta] Microsoft Graph endpoint. The goal is to call Microsoft Graph from an Outlook Add-in but the problem persists on Postman.
When I call the endpoint as per the documentation I get the following error message:
{
"error": {
"code": "unauthenticated",
"message": "The caller is not authenticated.",
"innerError": {
"request-id": "bb094f39-71c9-4c7d-9d9b-913cc9622baf",
"date": "2017-08-08T11:32:02"
}
}
}
I'm using ADAL JS to fetch the authentication token and I initialized my AuthenticationContext with my tenantID. My app has the following permissions: offline_access, Sites.Read.All, Sites.ReadWrite.All, User.Read
2nd Edit - more details on readItem
I use the https://graph.microsoft.com/beta/sites/{site-id}/lists/{list-id}/items endpoint with the {site-id} of my desired site from /sites and the {list-id} of the list from /sites/{site-id}/lists but this is the empty response I get:
{
"#odata.context": "https://graph.microsoft.com/...",
"value": []
}
If I try to to add /{item-id} to my original call to access specific item I receive this response:
{
"error": {
"code": "itemNotFound",
"message": "The specified list was not found",
"innerError": {
"request-id": "6e7ccae3-3aee-4dbb-ae3e-de61250478e0",
"date": "2017-08-09T13:13:33"
}
}
}
Which doesn't make sense because I can retrieve valid information about the list if i make the call without /items/..
Any and all input appreciated :) I'll gladly provide more code, this is all I deemed relevant and didn't want to overcrowd the post.
might be that you actually don't have an item with that id, since https://graph.microsoft.com/beta/sites/{site-id}/lists/{list-id}/items/1 works for me.
test the id's you really have by just https://graph.microsoft.com/beta/sites/{site-id}/lists/{list-id}/items and each item returns it's id.

"Unknown Error" in Microsoft Graph Explorer

I'm using the Microsoft Graph Explorer on the Microsoft Planner (formerly Tasks) API.
I can requests users fine, e.g. /beta/users.
But when I try to access my plans using /beta/me/plans or /beta/plans/{ID}, I get an unknown error with the details below:
Status Code: 403
{
"error": {
"code": "UnknownError",
"message": "",
"innerError": {
"request-id": "62299f57-1792-4b0c-8b60-8613c54f4f50",
"date": "2017-01-17T21:12:51"
}
}
}
I'm trying to query the tasks on a plan that I own.
This API has changed. This URL should be
GET https://graph.microsoft.com/v1.0/me/planner/plans

Resources