Skip to content

Get DriveItem sharing permission does NOT return User information with whom the Item was shared (OneDrive Live account) #2828

@23W

Description

@23W

Describe the bug

My application use C# MsGraph SDK and executes await graphClient.Drives["{drive-id}"].Items["{driveItem-id}"].Permissions.GetAsync() to get sharing permission of item in OneDrive Personal\Live account. This information is used later to detect access rights to the Item for current session user (returned by await graphClient.Me.Request().GetAsync()).

Earlier, MsGraph returned in this request the user information (including Id) in User facet with whom the Item was shared.

The code was stable for long time.
But now MsGraph does not return this information anymore, User facet is null. Only SiteUser facet is present, but it contains other Id that is not equal with Microsoft Graph User Id.

Image

The sharing permission request returns only SiteUser facet that is SharePoint Identity only

Expected behavior

User face should contain user information (at lease user Id).

How to reproduce

Execute graphClient.Drives["{drive-id}"].Items["{driveItem-id}"].Permissions.GetAsync() for shared with me Item in OneDrive Presonal\Live account.
See User facet in response.

SDK Version

4.11.0

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions