Retrieving the threads and posts giving 403 error in ms graph - microsoft-graph-api

In our application there is a requirement to retrieve and display the replies on a threads. When ever we try to retrieve the thread and replies for guest user it gives 403 error for members can retrieve the same without any error. Guest can post a reply to threads without any issue. Below is the endpoint we are using to retrieve the threads with posts
https://graph.microsoft.com/beta/groups/<<groupid>>/threads/<<threadId>>?$expand=posts
error returned is
{"error":{"code":"ErrorAccessDenied","message":"Access is denied. Check credentials and try again."}}
client-request-id is :
80ac411f-bc1d-44dc-b56a-7aec8fb5f98e

Related

Get 503: "SystemMemoryProtectionUtilizationMonitor is unhealthy" error when try to send out an email via MsGraph

I'm sending out emails via MsGraph from my own node Azure function. From the azure function log, I found out that it happens from time to time that I received a 503 "SystemMemoryProtectionUtilizationMonitor is unhealthy" error when calling the MsGraph API. The api works most of the time, but get this error occasionally.
Wondering anyone know what does this error mean and how to fix it?
Thanks

My app is not able to send message to Teams channel using graph api

I am trying to send message to teams channel using graph api. I am able to send the messages using my personal(user) tokens but not able to do it using an app which I have registered in Azure portal. My app also got access to protected apis from Microsft Teams.
Attaching the screen shot of app permissions and code snippet on how I am getting tokens.
app permissions
Code snippet to get tokens
One thing I noticed, when I decoded the the tokens I am getting, that roles in tokens only shows application permissions("Teamwork.Migrate.All") and it doesn't show delegated permissions("ChannelMessage.Read.All","ChannelMessage.Send","Teamwork.Migrate.All").
Below are the error message I am getting.
While doing get request to https://graph.microsoft.com/v1.0/teams/{teams_id}/channels/{channel_id}/messages
one of 'ChannelMessage.Read.All' or 'ChannelMessage.Read.Group' when using resont. Roles on the request 'Teamwork.Migrate.All' and resource specific consent g request ''", 'innerError': {'date': '2021-07-04T14:27:41', 'request-id': '8c1f-e345bf15da7b', 'client-request-id': '8c1fffc2-c94d-4d5b-a81d-e345bf15da7b'}}}
While doing post request to https://graph.microsoft.com/v1.0/teams/{teams_id}/channels/{channel_id}/messages/{message-id}/replies
{'error': {'code': 'Unauthorized', 'message': 'Unauthorized', 'innerError': {'d4:26:47', 'request-id': '44fe99be-1ed8-4505-a3e7-a88ce934e3f8', 'client-request8-4505-a3e7-a88ce934e3f8'}}}
You are currently using Get access without a user(Application permission). Application permissions are only supported for migration. Instead you should try delegated flow: Get access on behalf of a user. Please go though the documentation and you can try it using Postman or Fiddler.
You can also try Get started with Microsoft Graph and Python tutorial which shows fetching calendar information using Graph APIs.

Export message encounter 500 - Index was outside the bounds of the array

Grap API and EWS-managed API have different response behavior in a message.
By using graph API GET messages/m_id
I could successfully get message infomation
But when I using EWS-managed API to export mail:
http code 500
An internal server error occurred. The operation failed., Index was
outside the bounds of the array.
It seems that the graph and EWS-managed API do not sync data.
The issued message on office 365 UI show that:
om dit bericht opnieuw te verzenden (to resend this message)
How could I deal with this?
The response in ews API is too general to verify
How about the real status of this mail?
Thanks.

Error 500 when updating my Google OAuth Client ID as owner

When creating a new Client ID for OAuth 2.0, I got a message "An error has occurred. Please retry later.". I tried several times this week without success. But I am user with the role owner and I created successfully a Client ID last month with the same user.
Besides, by checking the requests and responses sent with the Chrome Developer Tools, I can notice that I get a 500 error for https://console.developers.google.com/m/project/my_project/client/web/create?xsrf=qwerty
Is there something wrong at Google or it's me ?
Yes, the problem is in the Request you are sending and the Response is an Error response. So if you want to identify the exact error, I suggest if you are passing credentials, double check it once; it might have changed or upgraded.

How to fetch the processingDetails,fileDetails,suggestions information from the youtube api

I am unable to fetch the processingDetails,fileDetails,suggestions information from the youtube api call. I had used API key to fetch these details but it's not working
First I tried this API Call mentioned below, It's working
https://www.googleapis.com/youtube/v3/videos?id=Skk6MBoejgU&key={API_KEY}&part=snippet,statistics,contentDetails,player
When I tried to fetch processingDetails,fileDetails,suggestions information, It's throwing error message
https://www.googleapis.com/youtube/v3/videos?id=Skk6MBoejgU&key={API_KEY}&part=processingDetails,fileDetails,suggestions
Error message: forbidden
Can anyone help me to solve this issue ?
Because you need to be connected with your YouTube Channel to get this informations.
In fact, this is private informations, you can only get this informations only from your videos.
We can find this information in the doc of YouTube API V3
forbidden (403) forbidden
The request cannot access user rating information. This error may
occur because the request is not properly authorized to use the
myRating parameter.

Resources