5.10 User Resources
5.10.1 ThruPublicUserInfo Structure
ThruPublicUserInfo structure contains information about user of Thru.
Item Name | Data Type | Sample Value | Comments |
---|---|---|---|
UserId | String | 1Q1OBQWVHTROE | Identifier of user in Thru |
Name | String | admin | User name that is used for sign-in in Thru |
DomainUsername | String | If user is in domain, this field represent it domain name | |
FirstName | String | Ad | User’s first name |
LastName | String | Test | User’s last name |
FullName | String | Ad Test | User’s full name |
String | User’s e-mail address | ||
Phone | String | User’s phone number | |
CompanyName | String | Company name | |
Role | Integer | 5 | User’s role on Thru: |
DateCreated | DateTime | /Date(1337174868567)/ | User’s date create (UTC) |
DateModified | DateTime | /Date(1351871161613)/ | User’s last date modify (UTC) |
CreatedByUserId | String | Identifier of the user that is create the specified user | |
ModifiedByUserId | String | 2T5LRH8F1R2QK | Identifier of the user that is modify the specified user |
DateLastPasswordChanged | DateTime | /Date(1343838136630)/ | The date of the last password modification |
PasswordNeverExpires | Boolean | True | Flag indicate is the user password is never expires |
Sample XML |
CODE
CODE
CODE
CODE
CODE
CODE
CODE
CODE
CODE
CODE
CODE
CODE
CODE
CODE
CODE
CODE
CODE
|
Data Transfer Object |
public class ThruPublicUserInfo { public string UserId public string Name public string DomainUsername public string FirstName public string LastName public string FullName public string Email public string Phone public string CompanyName public int Role public ThruServerDateTime DateCreated public ThruServerDateTime DateModified public string CreatedByUserId public string ModifiedByUserId public ThruServerDateTime DateLastPasswordChanged public bool PasswordNeverExpires } |
5.10.2 ThruPasswordInfo Structure
ThruPasswordInfo structure contains information that is required for password change.
Item Name | Data Type | Sample Value | Comments |
---|---|---|---|
OldPassword | String | password | Current user password |
NewPassword | String | _password1 | New password that is required to set |
ConfirmPassword | String | _password1 | Confirmation of the New password field |
Sample |
|
Data Transfer Object |
public class ThruPasswordInfo { public string OldPassword public string NewPassword public string ConfirmPassword } |