In the form there is a page I use for lots of “utility” purposes. One of those is the current user in the form. When the form opens, it grabs the current users domain username and puts it in one of the fields. Then after that, a connection command runs, which queries the rest of the information out of either active directory or a database table filtered by the domain username. It then copies the data i want to the rest of the fields I have designated for the current user. I’m not sure what script you are referring to. In perfect forms if you have sso enabled your users will have their domain username field populated, and that property is accessible in the forms in various commands under Special (User – Domain Username).