|
USER_FULLNAME |
|||
| The USER_FULLNAME string tag optionally appears in taglists returned from the GET_USERS_INFO function. When set, this tag contains a user's first name, middle initial, and last name. | |||
| Type | Max Size | Multiple Allowed | |
| String | 256 | No | |
Example: |
|||
|
function
GetAllUsersInfo() { var Tl, Count = 0; var Users = ""; Tl = CAS.New(); CAS.AddTag(Tl,"GET_USERS_INFO",""); CAS.AddTag(Tl,"REGISTERED_NAME",REGISTERED_NAME.value); CAS.AddTag(Tl,"REGISTERED_PASSWORD",REGISTERED_PASSWORD.value); Sl = CAS.CreateSection(Tl,"RESPONSE_INCLUDE_ONLY",""); CAS.AddTag(Sl,"USER_FULLNAME",0); CAS.AddTag(Sl,"USER_DESCRIPTION",""); CAS.AddTag(Sl,"USER_EMAIL_ADDRESS",""); CAS.CloseSection(Sl); // Get users on this already open session Tl = CAS.Send(Instance,Tl); if ( CAS.GetTag(Tl,"STATUS_NUM",0) == 0 ) { // The number of users is in the root of the reply taglist Count = CAS.GetTag(Tl,"NUMBER_OF_USERS",0); // Each user is in their own sub-section for ( Index=0; Index<Count; Index++) { Sl = CAS.OpenSection(Tl,"USER_NAME["+Index+"]"); Users += CAS.GetTag(Sl,"USER_NAME",0) + ","; Users += CAS.GetTag(Sl,"USER_FULLNAME",0) + ","; Users += CAS.GetTag(Sl,"USER_DESCRIPTION",0) + ","; Users += CAS.GetTag(Sl,"USER_EMAIL_ADDRESS",0) + "\r\n"; CAS.CloseSection(Sl); } } else { // Return the status Users = CAS.GetTag(Tl,"STATUS",0); } return(Users); } |
|||
See Also: |
|||
| GET_USERS_INFO | |||
|
|