Automatically set access rights when page is created in code


We've got a section of our website community where one can create a personal page with a couple of childpages. I would like to set the access rights for the person creating the page to Read, Create, Delete and Publish for this page and its child pages (preferably to apply these settings for all the pages created under this page).

How do I set these access rights in the code when creating the top page?

Sep 14, 2010 9:46

The easy solution is to make owner always have read,create,delete and publish

then you don't need to worry about it

Sep 14, 2010 11:00

That's actually how I've done it right now but I thought there would be a more "correct" way to do it. :)

Sep 15, 2010 8:21
Sep 15, 2010 8:22
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.