It's not clear to me what you are trying to achieve. Does setting the fields in question to hide based on the privilege set of the current user get you there?
I want to set priviledge for users based on fields.i.e.
Suppose, we have one table A with 10 fields (Field A, Field B, Field C ....etc) and 5 users.
I want to assign field priviledge for below users based on job :
User1 have 9 fields access.
User2 have 4 fields access.
So, result should be like that :
Modifiable View No Access
User1 Field1 Yes
User2 Field1 Yes
I don't want to go to security part but it should be changed using script. Is there any way to change using script or other technique?