Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Help with adding RoleDefinition to a group

$
0
0

Hi,

I'm quite new to SharePoint development so this is most likely a simple question. I want to add a permission to a group and I can't figure out how. I've retrieved a Group object and a RoleDefinition object, now I need to combine the 2.

I've found out that in SharePoint 2010 I could use this call:

Clientcontext.Web.RoleAssignments.Add(Group, RoleDefinition);

But I'm using SharePoint Online and this call is not available for me (It need a principal and not a Group).

Can someone point me in the right direction?

Thanks in advance!


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>