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

Email

String

devnull@test.com

User’s e-mail address

Phone

String

User’s phone number

CompanyName

String

Company name

Role

Integer

5

User’s role on Thru:
None = 0,
Guest = 1,
Recipient = 2,
Member = 3,
Manager = 4,
Administrator = 5,
System = 6

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

<ThruPublicUserInfo xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <UserId>1Q1OBQWVHTROE</UserId>
  <Name>admin</Name>
  <FirstName>Ad</FirstName>
  <LastName>3</LastName>
  <FullName>Ad 3</FullName>
  <Email>devnull@actimind.com</Email>
  <Phone></Phone>
  <CompanyName></CompanyName>
  <Role>5</Role>
  <DateCreated>/Date(1337174868567)/</DateCreated>
  <DateModified>/Date(1351871161613)/</DateModified>
  <ModifiedByUserId>2T5LRH8F1R2QK</ModifiedByUserId>
  <DateLastPasswordChanged>/Date(1343838136630)/</DateLastPasswordChanged>
  <PasswordNeverExpires>true</PasswordNeverExpires>
</ThruPublicUserInfo>

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

OldPassword=password&NewPassword=_password1&ConfirmPassword=_password1

Data Transfer Object

public class ThruPasswordInfo
{
  public string OldPassword
  public string NewPassword
  public string ConfirmPassword
}