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.
roleAssignment.RoleDefinitionBindings.Add(web.RoleDefinitions["Read"]);
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?
roleAssignment.RoleDefinitionBindings.Add(web.RoleDefinitions["Lezen"]);