locked
Assign a custom permission to a user in CSOM RRS feed

  • Question

  • Hi,

    I know how to assign a standard level of permission (Reader, Editor) to a user in CSOM but now I would like to give a custom permission "Editor plus security" for instance.

    What I have found is that you need to set all your permissions one by one but if the responsible of the site changes the custom permission, you need to change the script and that does not make sense to me.

    BasePermissions permissions = new BasePermissions();
    permissions.Set(PermissionKind.ViewListItems);
    permissions.Set(PermissionKind.AddListItems);

    So, is it possible to get the permission by name and assign it to the user ?

    Thanks,

    Christophe

    Friday, December 18, 2015 12:47 PM

Answers