question

DanHammond-2377 avatar image
2 Votes"
DanHammond-2377 asked saldana-msft edited

Graph API - Recent Files 501: Recent api is not supported for group webs

Hi,

Recently trying to get recent files for a particular customer of ours - haven't had trouble with this API before but for this customer I'm getting this error. I have no idea what "group webs" is, nor can I find any results anywhere for what on earth this actually is.

If anyone has any insights what this response means I really appreciate it

Cheers,
Dan

microsoft-graph-files
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Please share the API call and detailed error that you get (with requestid, timestamp)

0 Votes 0 ·

Hi Deva-MSFT

I am a colleague of Dan's, below is an example of how to produce this request.

https://graph.microsoft.com/v1.0/sites/{site-id}/drives/b!5Gl65KkDKE-ro8vYMfXyh5-gGwALk_FOlf30NWNlJhSfLmAm_zMeT5LnQp-4gliA/recent

{
"error": {
"code": "notSupported",
"message": "Recent api is not supported for group webs",
"innerError": {
"date": "2021-03-22T02:53:37",
"request-id": "45497e4d-8aa0-49fc-b3b6-1aec3d036092",
"client-request-id": "c75ebc7e-8d7b-fed3-0fe8-d0288824e007"
}
}
}



The user is an admin with all required permissions, the error response code is 501.

As mentioned by Dan this error response refers to Group Webs which are not mentioned anywhere in the Graph documentation and there is no reference to say that Recent api should not work for any sites. This only breaks on Team Sites.

Could you please let us know if this functionality is intended, or if there is anyway around this?

Cheers,

Jack

0 Votes 0 ·

0 Answers