OpenWGA 7.10 - TMLScript reference

Auth
Method :

fetchCommonName(username)

On object Auth
Usage Fetches the common name (Display Name) for a user from the authentication backend
Description

This is a service whose availability depends on the Authentication source in use but should be available for most. Given any user name it returns the labeled name "commonname" for that user from the underlying system.

Availabe sind 7.8.8

Parameters

username (String):

The (distinguished) name of a user

Return value The common name (Display Name) of the user (String)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
Examples
WGA.app().domain().auth().fetchCommonName(AUTHOR)