microsoftgraph / microsoftgraph/msgraph-metadata

"Identity" complex type missing "email" as a Property in XML

Open
#814 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ToTriage
Dominant language
XSLT
Stars
166
Forks
55
Avg merge
16h 12m
Merged PRs (30d)
14

Description

We use the v1.0 metadata XML to autogenerate all types for our Graph API usages in golang.
Querying a DriveItem returns an email field in LastModifiedBy and CreatedBy fields (user below) but the same is not being captured by the XML metadata. Can we get it updated for v1.0?
Graph explorer

GET v1.0 https://graph.microsoft.com/v1.0/me/drive/root/children

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#Collection(driveItem)",
    "value": [
        {
            "createdBy": {
                "user": {
                    "email": "MeganB@M365x214355.onmicrosoft.com",
                    "id": "48d31887-5fad-4d73-a9f5-3c356e68a038",
                    "displayName": "Megan Bowen"
                }
            },
            "createdDateTime": "2017-07-31T18:56:29Z",
            "eTag": "\"{60F36ED0-85CE-4771-B349-E671C691EFCA},1\"",
            "id": "01BYE5RZ6QN3ZWBTUFOFD3GSPGOHDJD36K",
            "lastModifiedBy": {
                "user": {
                    "email": "MeganB@M365x214355.onmicrosoft.com",
                    "id": "48d31887-5fad-4d73-a9f5-3c356e68a038",
                    "displayName": "Megan Bowen"
                }
            },
            "lastModifiedDateTime": "2017-07-31T18:56:29Z",
            "name": "Attachments",
            "parentReference": {
                "driveType": "business",
                "driveId": "b!-RIj2DuyvEyV1T4NlOaMHk8XkS_I8MdFlUCq1BlcjgmhRfAj3-Z8RY2VpuvV_tpd",
                "id": "01BYE5RZ56Y2GOVW7725BZO354PWSELRRZ",
                "name": "Documents",
                "path": "/drive/root:",
                "siteId": "d82312f9-b23b-4cbc-95d5-3e0d94e68c1e"
            },
            "webUrl": "https://m365x214355-my.sharepoint.com/personal/meganb_m365x214355_onmicrosoft_com/Documents/Attachments",
            "cTag": "\"c:{60F36ED0-85CE-4771-B349-E671C691EFCA},0\"",
            "fileSystemInfo": {
                "createdDateTime": "2017-07-31T18:56:29Z",
                "lastModifiedDateTime": "2017-07-31T18:56:29Z"
            },
            "folder": {
                "childCount": 0
            },
            "size": 0,
            "specialFolder": {
                "name": "attachments"
            }
        },

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the v1.0 metadata exposed through the Graph Explorer request and inspect the Identity complex type used by DriveItem's createdBy and lastModifiedBy fields. Compare it with the shown response; done when the v1.0 XML metadata includes email as a property of that type.

Written by the indexing model from the issue text.

Assessment

Tech stack
xml
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.