TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Baskar G
NA
8
565
Folder haven't been shared in Onedrive
Mar 28 2019 2:18 PM
I am sharing my onedrive folder programmatically to some users using Microsoft.SharePoint.Client. Its showing file are shared with users successfully and have label like its shared with users from sender end. But In receivers end is doesnt not received at all.
I tried below Microsoft.SharePoint.Client code to share the folder
ClientContext ctx = new ClientContext("My onedrive URL");
ctx.Credentials = new SharePointOnlineCredentials(username, passWord);
Principal user = ctx.Web.EnsureUser("
");
var roleDefinition = ctx.Site.RootWeb.RoleDefinitions.GetByType(RoleType.Reader); //get Reader role
var roleBindings = new RoleDefinitionBindingCollection(ctx) { roleDefinition };
folder.ListItemAllFields.RoleAssignments.Add(user, roleBindings);
ctx.Load(folder);
ctx.ExecuteQuery();
Let me know what is the issue its having? Or its a issue from One drive Site?
Reply
Answers (
1
)
Design manager is missing in SharePoint foundation 2013
SharePoint Online - Move Document Set files