[ 本帖最后由 luming 于 2007-9-13 15:49 编辑 ]作者: bill_hen 时间: 2007-9-14 03:23
In many tools, the drop down of the user fields displays the display name of the user, that is normally Full name (login name) or login name (Full name). And in your case, the Full name is in Chinese.
Not sure why in CQ it just displays the login name, seems to be a usability issue.
#Logon as admin
$adminSession->Logon( "admin", "password", "7.0.0" );
#Get the list of users in the repository.
$userList = $adminSession->GetUsers();
#Get the number of users
$numUsers = $userList->Count();
#Iterate through the users
for ( $x=0; $x<$numUsers; $x++ )
{ #Get the specified item in the collection of users
$userObj = $userList->Item( $x );
#Get the name of the user
$userFullName = $userObj->GetFullName();
if ($userFullName ne "")
{
push(@choices,$userFullName);
}
}