You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We are upgrading from v4 to v5, when we request permissions for a site list driveitem, the GrantedToV2 object in permission is null.
It was working in the V4, but it is broken in V5. Also checked with graph explore, it is working as epected.
To Reproduce
Steps to reproduce the behavior:
Create a document in SharePoint
Install Nuget package v4 and construct request as below:
var request = graphClient
.Sites[]
.Lists[]
.Items[]
.DriveItem
.Permissions
.Request();
var permissions = await request.GetAsync();
Inspect the GrantedToV2 object in permissions and they are not empty
Upgrade the Nuget package to V5 and construct request as below:
var item = await graphClient
.Sites[]
.Lists[]
.Items[]
.DriveItem
.GetAsync(requestConfiguration =>
{
requestConfiguration.QueryParameters.Expand = new string[] { "Permissions" };
});
Inspect the GrantedToV2 object in permissions and they are empty
Validates the permissions returns correctly in Graph Explore
Expected behavior
GrantedToV2 and GrantedToIdentitiesV2 should be populated if they are not null.
Screenshots
The first screenshot is using V5 and the second screenshot is using V4. You can see from the screenshot, the permission Id are the same to indicate I am requesting permissions for the same file Client version
Nuget package version 5.28
Desktop (please complete the following information):
OS: Windows
Browser [e.g. chrome, safari]
Version [e.g. 22]
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
We are upgrading from v4 to v5, when we request permissions for a site list driveitem, the GrantedToV2 object in permission is null.
It was working in the V4, but it is broken in V5. Also checked with graph explore, it is working as epected.
To Reproduce
Steps to reproduce the behavior:
Create a document in SharePoint
Install Nuget package v4 and construct request as below:
var request = graphClient
.Sites[]
.Lists[]
.Items[]
.DriveItem
.Permissions
.Request();
var permissions = await request.GetAsync();
Inspect the GrantedToV2 object in permissions and they are not empty
Upgrade the Nuget package to V5 and construct request as below:
var item = await graphClient
.Sites[]
.Lists[]
.Items[]
.DriveItem
.GetAsync(requestConfiguration =>
{
requestConfiguration.QueryParameters.Expand = new string[] { "Permissions" };
});
Inspect the GrantedToV2 object in permissions and they are empty
Validates the permissions returns correctly in Graph Explore
Expected behavior
GrantedToV2 and GrantedToIdentitiesV2 should be populated if they are not null.
Screenshots
The first screenshot is using V5 and the second screenshot is using V4. You can see from the screenshot, the permission Id are the same to indicate I am requesting permissions for the same file
Client version
Nuget package version 5.28
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: