GetUserInfo Method
Gets information about a specific user.
Syntax
sharefile.getUserInfo(userId, [callback])
Callback
The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).
The callback for this method is defined as:
function(err){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'err' has 2 properties which hold detailed information:
err.code err.message
Remarks
This method can accept the Id of a user, or the user's email through the UserId property. Calling this method will fire the
UserList event once for the user, and will populate the User* properties (clearing any previously-held items in the process).
string userId = shareFile.Users.Id; shareFile.getUserInfo(userId);