(Contents)(Previous)(Next)

FindUserByLoginName()

Description: Returns a User object based on the passed in login name
Syntax: object.FindUserByLoginName(name)
Parameters:
object Required, the Session object
name The user's login name
Remarks: This function searches the list of users looking for a match by login name. A login name is always guaranteed to be unique and so this function will never match more than one user. If a user is found, the associated User object is returned, otherwise Nothing is returned.
Returns: Returns a User object.
Example:
Dim session As Object

Dim user As Object

Set session = CreateObject("OfficeTalk.Session")

Set user = session.FindUserByLoginName("stb")


Next