question

CarlesPinaEstany-2424 avatar image
0 Votes"
CarlesPinaEstany-2424 asked CarlesPinaEstany-2424 commented

/v1.0/sites/{siteId},uuid1,uuid2/drives?top=1000 empty value

Hi Microsoft Graph,

We are making a request like:

 https://graph.microsoft.com/v1.0/sites/our.domain.com,42d0a016-7e0b-4b84-9bc1-817199c8b028,5748ccc6-4430-4e64-a304-495fc99f26d7/drives?top=1000
 Authorization: Bearer THE_TOKEN

For about two months this didn't cause any problem. Just today, for the majority of the users we were getting (note the empty value):


 {
    "@odata.context" : "https://graph.microsoft.com/v1.0/$metadata#drives",
    "value" : []
 }

Until today all the users (or today but only for some of the tokens) we were getting:

 {
    "value" : [
       {
          "id" : "b!edited_for_the_forum",
          "lastModifiedDateTime" : "2021-04-13T10:26:41Z",
          "driveType" : "documentLibrary",
          "createdDateTime" : "2021-03-20T23:39:47Z",
          "owner" : {
             "group" : {
                "email" : "edited_for_the_forum@domain.com",
                "id" : "uuid_edited",
                "displayName" : "correct_edited"
             }
          },
          "name" : "Documents",
          "webUrl" : "https://domain.sharepoint.com/sites/X/X",
          "lastModifiedBy" : {
             "user" : {
                "displayName" : "A Name",
                "email" : "a_name@domain.com",
                "id" : "edited"
             }
          },
          "createdBy" : {
             "user" : {
                "displayName" : "System Account"
             }
          },
          "description" : "",
          "quota" : {
             "deleted" : 0,
             "used" : 0,
             "total" : 0,
             "remaining" : 0
          }
       }
    ],
    "@odata.context" : "https://graph.microsoft.com/v1.0/$metadata#drives"
 }


Is this a known problem?

Is there are internal Microsoft ticket to fix and how can we know if it's fixed?

The SharePoint site URL and the drive URL has been edited using the panel (months ago). Some people have suggested that this might have been a problem but we don't know for sure. The SharePoint site and library names have not been edited (only the URLs)

Please let me know if I could send more information of any type.

Thank you for reading all of this,

Carles

sharepoint-dev
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.

1 Answer

MichaelHan-MSFT avatar image
0 Votes"
MichaelHan-MSFT answered CarlesPinaEstany-2424 commented

Hi @CarlesPinaEstany-2424,

Per my test, the request works fine on my end. Usually, we could add search query parameter in the end of the request to avoid getting empty value, like the below. Check if works for you.


 https://graph.microsoft.com/v1.0/sites/our.domain.com,42d0a016-7e0b-4b84-9bc1-817199c8b028,5748ccc6-4430-4e64-a304-495fc99f26d7/drives?search=*



If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 6
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.

Thanks @MichaelHan-MSFT - Have you had cases with an empty value that got solved with the search parameter?

It usually works for me (it did for months with 10 users doing it daily) but yesterday suddenly it wasn't working for anyone - then it was working for some people. It didn't depend on the resolved graph.microsoft.com ip (but probably the same IP goes to different backends) but it seemed to depend on the Authentication token bearer (same request just replacing it for a token from a different user was giving empty or full value)

0 Votes 0 ·

Hi @CarlesPinaEstany-2424,

Yes. I used to get the empty value when trying to list all the sites in my tenant with the enpoint https://graph.microsoft.com/v1.0/sites. And it got resolved by adding the search parameter. So I think it may also work for you in your case.

1 Vote 1 ·

@CarlesPinaEstany-2424, did my solution work for you? If it works, please click "Accept Answer" and upvote it. :)
,

0 Votes 0 ·
Show more comments