User facet in Sharing Permission has invalid user Id (OneDrive Personal) #2832
Labels
status:waiting-for-triage
An issue that is yet to be reviewed or assigned
type:bug
A broken experience
Describe the bug
The file was shared from one Personal account to other Personal account with "edit" right (Role is
writer
). If MsGraph is signed in as delegated by this other Personal account and executesawait graphClient.Drives["{drive-id}"].Items["{driveItem-id}"].Permissions.GetAsync()
to get the item permissions it will receive collection of permissions for file owner and for this account.The permission for this account will have filed
grantedToIdentities
withuser
facet (see https://learn.microsoft.com/en-us/graph/api/resources/permission?view=graph-rest-1.0#properties and https://learn.microsoft.com/en-us/graph/api/resources/identityset?view=graph-rest-1.0#properties).User face will have correct user's
displayName
but wrongid
.Example:

The correct user id for this delegated account you can see by
await graphClient.Me.Request().GetAsycn()
.This is not "46" but "5f6aae90c74bde86".
Expected behavior
User facet should have correct user's id.
How to reproduce
execute get list of shared with me file permissions and compare user's id with id of the same account but get from
me
request.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
```The text was updated successfully, but these errors were encountered: