These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Security settings prevent access to this property or method.

srprice
Registered: Sep 19 2007
Posts: 138

I'm trying to get the value of the identity.name property in order to automatically populate a field with data but I receive this error message when trying to do so.

"Security settings prevent access to this property or method."

Does anyone know how to turn the security off this property or a work around to get user login information?

Any help would be greatly appreciated.

Thanks

Sarah R. Copley

gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
As explained in the Acrobat JS Reference, this object can only be accessed through batch, console, menu or initialization operations. You will have to provide a folder level script to capture the identity information into an application level variable upon starting the Acrobat/Reader application.

The following script can be added to Acrobat's/Reader's application folder's JavaScript folder:

// Folder level script to create an application level variables for the "identity" objects properties
var Identity = new Array();
for ( i in identity)
Identity[i] = identity[i];

Acrobat/reader will need to be restarted for the change to take affect. This JavaScript file will have to be added to each user's system that requires access to this object.

The elements of the Identity variable will be the same as the app "identity" array.

You can use the following script with the Debugger console to see the values:

for (i in Identity)
console.println(i + ": " + Identity.i);

or

for (i in Identity)
console.println(i + ": " + Identity[i]);

George Kaiser