I would like to set the read permissions to all authenticated users on a site collection.

First I was using this code below, but I got an exception that this permission level is not existed.


When I translate the permission level "Read" to dutch "Lezen" it works (see code below). But I do not would like to hardcode some language. Is it possible to set permissions without using explicit the language of the site?


1 Answer 1


Try using SPRoleType

I hope this helps, I haven't tried it out, but here is an example :

The way that would cause localisation issues :


The way that wouldn't cause localisation issues :


Taken from here :


It's a good read :)

Here is a full list of roles :


And some help with dealing with it programatically


Kind regards,

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.