Open DemiDOS opened 1 year ago
Quick look into problem: request (https://graph.microsoft.com/v1.0/me/drive/items/***/createLink) contains empty body. I guess, serialization of OneDriveRequestShare instance always create empty string and does not respect provided values.
Description I get the message Access Denied for my corporate account in browser when I use the link generated by the API method
OneDriveGraphApi.ShareItem
with Organization scope.To Reproduce Steps to reproduce the behavior:
var oneDriveGraphApi = new OneDriveGraphApi(_oneDriveApiInfo.ClientId);
await oneDriveGraphApi.AuthenticateUsingRefreshToken(_oneDriveApiInfo.RefreshToken);
var oneDriveFile = await oneDriveGraphApi.UploadFileToAppFolder(filePath);
var oneDrivePermission = await oneDriveGraphApi.ShareItem(oneDriveFile, OneDriveLinkType.View, OneDriveSharingScope.Organization);
Expected behavior Uploaded file should be accessible via link for everyone inside organization.
Versions: