Automatically set access rights when page is created in code

Vote:
 

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?

#43100
Sep 14, 2010 9:47
Vote:
 

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

then you don't need to worry about it

#43106
Sep 14, 2010 11:01
Vote:
 

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

#43126
Sep 15, 2010 8:21
Vote:
 
#43127
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.