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?
Related
I have an enterprise application registered in Azure AD Tenant. It contains certain appRoles which have been assigned to Azure AD Users. Now, I would like to fetch all the users having some specific appRoles.
I have tried this:
GET /servicePrincipals/{id}/appRoleAssignedTo
taken from here:https://learn.microsoft.com/en-us/graph/api/serviceprincipal-list-approleassignedto?view=graph-rest-beta&tabs=http#optional-query-parameters
It seems like I am able to fetch all the appRoleAssignments successfully using this API, but whenever I put a filter such as: appRoleId eq {app-role-id} I am geting error like:
{
"error": {
"code": "Request_BadRequest",
"message": "Invalid filter clause appRoleId: System.Guid",
"innerError": {
"date": "2021-10-25T16:33:41",
"request-id": "{request-id}",
"client-request-id": "{client-request-id}"
}
}
}
And whenever I put single quotes, like appRoleId eq '{app-role-id}', I get this error:
{
"error": {
"code": "BadRequest",
"message": "Invalid filter clause",
"innerError": {
"date": "2021-10-25T16:34:30",
"request-id": "{request-id}",
"client-request-id": "{client-request-id}"
}
}
}
I tried with both v1 and beta endpoint. So how do I filter on appRoleId?
It seems that Microsoft Graph does not support the $filter on appRoleId yet. They already have an open issue:
https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/990
There is also a feature request here which we can upvote: https://techcommunity.microsoft.com/t5/microsoft-365-developer-platform/application-api-add-support-for-filtering-approleassignment-by/idi-p/2433822
Also in the Doc, $filter is only provided on principalDisplayName and resourceId
[1]: https://i.stack.imgur.com/ZVD8Y.png
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.
when I'm trying to test ms teams api it always returns 404
For example - the simplest query: GET https://graph.microsoft.com/v1.0/me/joinedTeams
{
"error": {
"code": "ResourceNotFound",
"message": "Resource not found.",
"innerError": {
"date": "2020-07-24T08:47:53",
"request-id": "0ae3aa34-4aa5-4609-ac6b-01c2aba09b24"
}
}
}
I made test team, added couple of test users etc.
The problem was that I was using personal ms account instead of admin account from azure portal.
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
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