Modify permissions on ad object

Hi, I have been strugling with modifying Write publice information security setting on an ad object (user) , but can find the solution. Anybody here who have tried this?

What have you tried? What is not working? Is there an error? Show your code, what is occurring and expected result.