User
public struct User
A struct representation of a user in the harvest system
-
A unique identifier for this User
Declaration
Swift
public var identifier: Int?
-
The users first Name
Declaration
Swift
public var firstName: String?
-
The users last name
Declaration
Swift
public var lastName: String?
-
The users email address
Declaration
Swift
public var email: String?
-
A boolean to indicate whether or not the user is active in the system. If false, this user has been deactivated
Declaration
Swift
public var active: Bool?
-
A boolean to indicate whether or not the user is an admin in this system. - note: Only populated when created from the Who Am I call
Declaration
Swift
public var admin: Bool?
-
The name of the department that the user belongs to
Declaration
Swift
public var department: String?
-
The timezone identifier as a string that the user has their account set to. E.g.
Europe/London
- note: Only populated when created from the Who Am I callDeclaration
Swift
public var timezoneIdentifier: String?
-
The timezone city. The harvest API doesn’t give any documentation on this so I’m going to assume it always returns the city part of the
timezoneIdentifier
- note: Only populated when created from the Who Am I callDeclaration
Swift
public var timezoneCity: String?
-
A boolean indicating whether or not the user is a project manager - note: Only populated when created from the Who Am I call
Declaration
Swift
public var projectManager: Bool?
-
A boolean indicating whether or not the user can create new projects - note: Only populated when created from the Who Am I call
Declaration
Swift
public var createProjects: Bool?
-
A boolean indicating whether or not the user can see hourly rates - note: Only populated when created from the Who Am I call
Declaration
Swift
public var seeRates: Bool?
-
A boolean indicating whether or not the user can create new invoices - note: Only populated when created from the Who Am I call
Declaration
Swift
public var createInvoices: Bool?
-
The number of seconds that the user is offset from UTC with their current timezone settings - note: Only populated when created from the Who Am I call
Declaration
Swift
public var timezoneOffsetSeconds: Int?
-
No information was found about this property in the Harvest API Documentation - note: Only populated when created from the Who Am I call
Declaration
Swift
public var timestampTimers: Bool?
-
The URL to the users avatar if they have one - note: Only populated when created from the Who Am I call
Declaration
Swift
public var avatarURL: NSURL?