I'm trying to get the recent changes to the MS Graph beta API to return a collection of meetingAttendanceReports using /attendanceReports (see https://learn.microsoft.com/en-us/graph/api/meetingattendancereport-list?view=graph-rest-beta). I have tried this in Graph Explorer and also in a C# console app in VS, but cannot get it working.
The (Graph Explorer) request is as follows:
https://graph.microsoft.com/beta/users/8b16954b-5dcb-4395-89bb-be879c0f8f77/onlineMeetings/MSo4YjE2OTU0Yi01ZGJiLTQzOTUtODliYi1iZTg3OWMwZjhmNzcqMCoqMTe6bWVldGluZ19Zek0yTnpVNU5ERXRNRFUwT1MwME5UZzRMVGszTXpZdE16QmxNV1JqTmpCak5tRXhAdGhyZWFkLnYy/attendanceReports
The response I am getting is "BadRequest" : "Value cannot be null.Parameter name: String".
The online (Teams) meeting is successfully returned if I remove /attendanceReports resulting in the following request:
https://graph.microsoft.com/beta/users/8b16954b-5dcb-4395-89bb-be879c0f8f77/onlineMeetings/MSo4YjE2OTU0Yi01ZGJiLTQzOTUtODliYi1iZTg3OWMwZjhmNzcqMCoqMTe6bWVldGluZ19Zek0yTnpVNU5ERXRNRFUwT1MwME5UZzRMVGszTXpZdE16QmxNV1JqTmpCak5tRXhAdGhyZWFkLnYy
I have spent days trying to get this working. Although similar error responses can be found by searching online, none of them seem to relate to this particular situation. Any help would be gratefully appreciated.
Created an onlineMeeting using Graph API and got the meeting ID from the response
Then by following this doc tried to get attendanceReports and got proper response.
Related
My MS Graph API is not giving the response nowadays if I pass ?env=WebView as a query string in my intranet page which is developed with SPFX. It is working fine without giving me any problem for the last year. For the last 3 to 4 weeks this problem has started.
If I remove the query string and run the page, then it gives me the response from Graph, but along with the query string, it is not giving me the response.
Am using this graph to get my Outlook Calendar Events, Unread Mail count, and Recent Files from Drive.
Kindly help me to solve this issue.
Thanks in Advance.
I am trying to get all the chat messages for a specific chat id using this graph method - https://learn.microsoft.com/en-us/graph/api/chat-list-message?view=graph-rest-beta&tabs=http
I am able to get top 50 but when i try to use odata.nextlink i am getting Bad Request error.
Tried through Postman and Tried through TypeScript
I have just tested it and it seems like this issue has been resolved. The MS Graph team confirmed that they were able to reproduce the issue and it's working again now for me at least.
Github ticket: https://github.com/microsoftgraph/microsoft-graph-docs/issues/9729
Using
`https://graph.microsoft.com/beta/users/${email}/photo/$value`
had been working for me last week but now it throws a 400 error
Error Output
"Mailbox is hosted by an on-premise or non-Exchange server, which is not supported."
As far as I know nothing has changed from our end. Using the v1.0 doesn't seem to make any difference. I think the user photos are stored on an on-premise exchange but are then synced up at AAD. This has been working fine for at least a year like this.
Anybody know if anything has changed in the last few days? Any documented solutions to this?
Exchange Online team was trying to clean up some error codes and such they changed MailboxNotEnabledForRestAPI with HttpStatus code 404 to MailboxNotHostedInExchangeOnline with HttpStauts code 400. This was un-intended and such we have since reverted this change, and are rolling out the fixes to prod with urgency.
I need to take a count of each group from Azure AD using Graph API. Can anyone tell me how to achieve it
I also faced the similar issue. When I ran the end point mentioned in https://learn.microsoft.com/en-us/graph/api/group-list-members?view=graph-rest-1.0&tabs=http#example-2-get-only-a-count-of-all-membership I got "$count is not currently supported."
However, if you notice the documentation clearly, it asks us to send in the ConsistencyLevel as eventual in the REST header. I got the correct response when I sent the header along with the call:
GET https://graph.microsoft.com/v1.0/groups/{id}/members/$count ConsistencyLevel: eventual
There is currently no Microsoft Graph endpoint to get the number of users.
You could list members by using:
GET https://graph.microsoft.com/v1.0/groups/{id}/members
And then handle the count of the members in your code.
See the reference here. Try it quickly with Microsoft Graph Explorer.
I'm trying to retrieve the educationShool list of an educationUser from Microsoft Graph per the API reference:
I am getting this error:
Error message: The request URI is not valid. Since the segment
'memberOf' refers to a collection, this must be the last segment in
the request URI or it must be followed by an function or action that
can be bound to it otherwise all intermediate segments must refer to a
single resource.
I have reproduced this issue in the Graph Explorer, if I try to send this request, I get the same error:
https://graph.microsoft.com/v1.0/education/me/schools
If I try to list the Classes (I think it should be a very similar scenario), it works ok:
https://graph.microsoft.com/v1.0/education/me/classes
Am I doing something wrong, or is this a bug in the API?
I was able to reproduce this and it looks like there may be a bug here. While that gets investigated, I can confirm that it works properly in the /beta release:
https://graph.microsoft.com/v1.0/education/me/schools
I'd suggest using /beta for this particular call if possible.
Update: This issue has been resolved and education/{users}/schools should now be working in both v1.0 and Beta versions.