Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing fields in parentReference from search result #1870

Open
1 of 3 tasks
ionspin opened this issue Aug 15, 2024 · 0 comments
Open
1 of 3 tasks

Missing fields in parentReference from search result #1870

ionspin opened this issue Aug 15, 2024 · 0 comments

Comments

@ionspin
Copy link

ionspin commented Aug 15, 2024

Category

  • Question
  • Documentation issue
  • Bug

Expected or Desired Behavior

Documentation specifies search results returning driveItem type. driveItem contains parentReference, which contains path field.

In case of this query (using Microsoft graph explorer):
https://graph.microsoft.com/v1.0/me/drive/root/search(q='finance')?select=parentReference

expected result would contain path field, under parentReference in the results

Observed Behavior

Running
https://graph.microsoft.com/v1.0/me/drive/root/search(q='finance')?select=parentReference
return:

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#Collection(microsoft.graph.driveItem)",
    "value": [
        {
            "parentReference": {
                "driveType": "business",
                "driveId": "b!-RIj2DuyvEyV1T4NlOaMHk8XkS_I8MdFlUCq1BlcjgmhRfAj3-Z8RY2VpuvV_tpd",
                "id": "01BYE5RZ56Y2GOVW7725BZO354PWSELRRZ",
                "siteId": "d82312f9-b23b-4cbc-95d5-3e0d94e68c1e"
            }
        },
        {
            "parentReference": {
                "driveType": "business",
                "driveId": "b!-RIj2DuyvEyV1T4NlOaMHk8XkS_I8MdFlUCq1BlcjgmhRfAj3-Z8RY2VpuvV_tpd",
                "id": "01BYE5RZ56Y2GOVW7725BZO354PWSELRRZ",
                "siteId": "d82312f9-b23b-4cbc-95d5-3e0d94e68c1e"
            }
        },
        {
            "parentReference": {
                "driveType": "business",
                "driveId": "b!-RIj2DuyvEyV1T4NlOaMHk8XkS_I8MdFlUCq1BlcjgmhRfAj3-Z8RY2VpuvV_tpd",
                "id": "01BYE5RZ56Y2GOVW7725BZO354PWSELRRZ",
                "siteId": "d82312f9-b23b-4cbc-95d5-3e0d94e68c1e"
            }
        },
        {
            "parentReference": {
                "driveType": "business",
                "driveId": "b!-RIj2DuyvEyV1T4NlOaMHk8XkS_I8MdFlUCq1BlcjgmhRfAj3-Z8RY2VpuvV_tpd",
                "id": "01BYE5RZ56Y2GOVW7725BZO354PWSELRRZ",
                "siteId": "d82312f9-b23b-4cbc-95d5-3e0d94e68c1e"
            }
        },
        {
            "parentReference": {
                "driveType": "business",
                "driveId": "b!-RIj2DuyvEyV1T4NlOaMHk8XkS_I8MdFlUCq1BlcjgmhRfAj3-Z8RY2VpuvV_tpd",
                "id": "01BYE5RZ56Y2GOVW7725BZO354PWSELRRZ",
                "siteId": "d82312f9-b23b-4cbc-95d5-3e0d94e68c1e"
            }
        },
        {
            "parentReference": {
                "driveType": "business",
                "driveId": "b!-RIj2DuyvEyV1T4NlOaMHk8XkS_I8MdFlUCq1BlcjgmhRfAj3-Z8RY2VpuvV_tpd",
                "id": "01BYE5RZ56Y2GOVW7725BZO354PWSELRRZ",
                "siteId": "d82312f9-b23b-4cbc-95d5-3e0d94e68c1e"
            }
        },
        {
            "parentReference": {
                "driveType": "business",
                "driveId": "b!-RIj2DuyvEyV1T4NlOaMHk8XkS_I8MdFlUCq1BlcjgmhRfAj3-Z8RY2VpuvV_tpd",
                "id": "01BYE5RZ6TAJHXA5GMWZB2HDLD7SNEXFFU",
                "siteId": "d82312f9-b23b-4cbc-95d5-3e0d94e68c1e"
            }
        },
        {
            "parentReference": {
                "driveType": "business",
                "driveId": "b!-RIj2DuyvEyV1T4NlOaMHk8XkS_I8MdFlUCq1BlcjgmhRfAj3-Z8RY2VpuvV_tpd",
                "id": "01BYE5RZ6TAJHXA5GMWZB2HDLD7SNEXFFU",
                "siteId": "d82312f9-b23b-4cbc-95d5-3e0d94e68c1e"
            }
        },
        {
            "parentReference": {
                "driveType": "business",
                "driveId": "b!-RIj2DuyvEyV1T4NlOaMHk8XkS_I8MdFlUCq1BlcjgmhRfAj3-Z8RY2VpuvV_tpd",
                "id": "01BYE5RZ63K2CXJCCRJNAL7T7VCUPNT2ZE",
                "siteId": "d82312f9-b23b-4cbc-95d5-3e0d94e68c1e"
            }
        },
        {
            "parentReference": {
                "driveType": "business",
                "driveId": "b!-RIj2DuyvEyV1T4NlOaMHk8XkS_I8MdFlUCq1BlcjgmhRfAj3-Z8RY2VpuvV_tpd",
                "id": "01BYE5RZ6TAJHXA5GMWZB2HDLD7SNEXFFU",
                "siteId": "d82312f9-b23b-4cbc-95d5-3e0d94e68c1e"
            }
        }
    ]
}

Note that path field is missing in all parentReference objects.

Steps to Reproduce

  1. Execute https://graph.microsoft.com/v1.0/me/drive/root/search(q='finance')?select=parentReference in Microsoft Graph Explorer (https://developer.microsoft.com/en-us/graph/graph-explorer?request=groups?$expand=members&method=GET&version=v1.0)

This issue was previously reported here 4 years ago, and closed without resolution #1234

Thank you.

[ ]: http://aka.ms/onedrive-api-issues
[x]: http://aka.ms/onedrive-api-issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant