Using Microsoft's Graph API, I am trying to return users with provisioning errors. Using this URL:
https://graph.microsoft.com/v1.0/users?$select=onPremisesProvisioningErrors,displayName&$filter=onPremisesProvisioningErrors ne null
I get back the error:
{
"error": {
"code": "BadRequest",
"message": "Invalid filter clause",
"innerError": {
"date": "2022-10-04T17:37:29",
"request-id": "d62be5cf-4f5e-47da-93f1-1bb721bc9b14",
"client-request-id": "689377a9-469b-bfef-b7d5-d48e7938acec"
}
}
}
Is there a way to identify just those users with some sort of provisioning error?
I would use any operator to filter users with provisioning errors:
https://graph.microsoft.com/v1.0/users?$select=onPremisesProvisioningErrors,displayName&$filter=onPremisesProvisioningErrors/any()
But it returns the exception:
{
"error": {
"code": "Request_UnsupportedQuery",
"message": "Empty any query against property 'onPremisesProvisioningErrors' is not supported.",
"innerError": {
...
}
}
}
According to the documentation, onPremisesProvisioningError resource has property category with only one possible value PropertyConflict.
I suggest to use filter on that property category.
https://graph.microsoft.com/v1.0/users?$select=onPremisesProvisioningErrors,displayName&$filter=onPremisesProvisioningErrors/any(r:r/category eq 'PropertyConflict')
It's a little bit workaround but it should return users with provisioning errors.
Related
I am using rest api to create subscription for calendar resources but getting below error. Can anyone help me out over here.
===========================================================
{
"error": {
"code": "ExtensionError",
"message": "Operation: Create; Exception: [Status Code: ServiceUnavailable; Reason: Target resource '00030000-3c24-324c-0000-000000000000' hosted on database '1a65164a-54a2-469a-a1f2-a837508bb8a6' is currently on backend 'Unknown']",
"innerError": {
"date": "2021-07-03T21:19:13",
"request-id": "1259c1ae-42eb-4999-88a2-3fa8157f7816",
"client-request-id": "1259c1ae-42eb-4999-88a2-3fa8157f7816"
}
}
}
I want to reach the list of participants of a spesific Teams meeting by using Postman. But I'm getting an error.
my Http Request:
https://graph.microsoft.com/v1.0/communications/calls/7531d31f-d10d-44de-802f-c569dbca451c/participants
{
"error": {
"code": "UnknownError",
"message": "",
"innerError": {
"date": "2020-10-26T16:50:16",
"request-id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"client-request-id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
}
}
The problem was about the tokens .I got the response by using app access token instead of user token, finally it worked.
I am using GraphServiceClient to create/update events and got following error. is there better way/
mechanism to handle this kind of errors
{
"error": {
"code": "ApplicationThrottled",
"message": "Application is over its MailboxConcurrency limit.",
"innerError": {
"date": "2020-06-30T10:09:41",
"request-id": "8a293e9c-7510-4993-a1b3-f9e74ba6087c"
}
}
}
Seem that this API
https://learn.microsoft.com/en-us/graph/api/user-post-events?view=graph-rest-1.0&tabs=http
Is possibile to use with Application Token..
But When I use this POST format :
/users/{id | userPrincipalName}/calendars/{id}/events
I imagine that the first id= is of the user 365
And the second id= id of calendar of this user
example: https://graph.microsoft.com/v1.0/users/7abea3d2-9c59-4910-90c8-24a626a2ed0f/calendar/AAMkADRiNWMwZDIwLTNkNWMtNDlhZi04ODAxLTQyZjI0NGZjZjZiYgBGAAAAAADdzAdsxNzoS5NsTnjM9VXMBwDeKuBOt9H8SaQ6MfKsS4oyAAAAAAEGAADeKuBOt9H8SaQ6MfKsS4oyAAAAADKcAAA=/events
The result is this:
{
"error": {
"code": "BadRequest",
"message": "Resource not found for the segment 'AAMkADRiNWMwZDIwLTNkNWMtNDlhZi04ODAxLTQyZjI0NGZjZjZiYgBGAAAAAADdzAdsxNzoS5NsTnjM9VXMBwDeKuBOt9H8SaQ6MfKsS4oyAAAAAAEGAADeKuBOt9H8SaQ6MfKsS4oyAAAAADKcAAA='.",
"innerError": {
"request-id": "11055856-32b4-4485-bf28-23e380d9e4ed",
"date": "2020-05-27T13:22:23"
}
}
}
Have you any suggestion?
#Thank #Homungus comment... missing a s in calendar string and now work!
I have the application for OneNote users. Some users have error 19999 for any OneNote API request.
Request/response examples:
GET https://graph.microsoft.com/v1.0/me/onenote/notebooks
{
"error": {
"code": "19999",
"message": "Something failed, the API cannot share any more information at the time of the request.",
"innerError": {
"request-id": "2e94b8fb-b43c-4dd6-bb2a-6979fa854718",
"date": "2019-06-10T03:21:15"
}
}
}
GET https://graph.microsoft.com/v1.0/me/onenote/pages
{
"error": {
"code": "19999",
"message": "Something failed, the API cannot share any more information at the time of the request.",
"innerError": {
"request-id": "d650669d-b48f-4d6e-bd18-e0805e79167c",
"date": "2019-06-10T03:27:53"
}
}
}
How can I resolve this issue?
Tenant does not have a SPO license. I will fix the error code to be more specific. Thanks!