Trying to use GetUserDistinguishedName("")

Folks

 

I have a field on a form where I want to display the full user name. So I have set the variable property to calculated and in the calculation field I try and use the above function in expression builder which then asks for the user name as a parameter. When I try and enter processcontext.username it won't accept this as a valid parameter for some reason (using v9.1)!

Tagged:

Comments

  • GetUserDistinguishedName(ProcessContext.UserName) should work for you. Note it is case sensitive.

     

     

  • Note also that, despite its name, it returns the directory and the distinguished name concatenated.