How do I change access rights on a page?
Versions:
n/a,
FAQ number:
103,
Old FAQ number: 980
Currently (EPiServer 4.22) you have to use the raw database class PageAclDB to set access rights on a page.
The method List(PageReference PageLink) will return a DataSet with the current access rights and Save(PageReference pageLink, DataSet data) can be used to save the new access rights after you have modified it.
Warning! This method and other classes in DataAccess namespace is unsupported and you have to recompile your project after a upgrade to 4.30 after using PageAclDB. As of EPiServer 4.30 you will be able to call CurrentPage.ACL.Save() instead, a fully supported method.