admin管理员组文章数量:1201362
I am uploading the document in MSTeams channel, with below C# code,
var uploadedFile = await graphClient.Groups[teamId].Drive.Items[channelId].ItemWithPath(fileName).Content.Request().PutAsync<DriveItem>(fileStream);
but when I am trying to access this uploaded document from MS team with sharepoint url, it gives me error for next 30min minutes- You need permission to access this item. After 30 min I can access this document. I have tried multiple ways to access this uploaded document immediately but no luck. I tried-
1. var updatedFile = await graphClient.Groups[teamId].Drive.Items[channelId].ItemWithPath(fileName).Request().UpdateAsync(new DriveItem());
2. var fileItem = await graphClient.Groups[teamId].Drive.Items[channelId].ItemWithPath(fileName).Request().GetAsync();
3. var permission = await graphClient.Groups[teamId].Drive.Items[channelId].ItemWithPath(fileName)
.CreateLink("view") // Generate a "view" link
.Request().PostAsync();
Expectation is, when I upload document and access through sharepoint URL then it must be accessible immediately not after 30min. Kindly suggest solution if any.
Some blogs says, Is it true?- This issue usually happens due to a delay in permission synchronization between Microsoft Teams and SharePoint (where Teams stores files). When a new team is created in Microsoft Teams, its associated SharePoint site and permissions may take some time to fully propagate.
Ref-
本文标签: cUnable to access newly uploaded document in sharepoint for 30minStack Overflow
版权声明:本文标题:c# - Unable to access newly uploaded document in sharepoint for 30min - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738566691a2100287.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论