Skip to content

Instantly share code, notes, and snippets.

@simonmilz
Last active August 29, 2015 14:02
Show Gist options
  • Save simonmilz/0f26dcfbc83cb864c6a7 to your computer and use it in GitHub Desktop.
Save simonmilz/0f26dcfbc83cb864c6a7 to your computer and use it in GitHub Desktop.
Get current Account in JavaScript in Tine 2.0
/*
account = {
accountDisplayName: "Milz, Simon"
accountEmailAddress: "simon.milz@typisch-florida.de"
accountExpires: null
accountFirstName: "Simon"
accountFullName: "Simon Milz"
accountHomeDirectory: null
accountId: "38f566d4f6e648a7b4a25eadad260b1db040d076"
accountLastLogin: "2014-07-20 17:56:33"
accountLastLoginfrom: "88.153.243.28"
accountLastName: "Milz"
accountLastPasswordChange: "2013-06-19 19:52:59"
accountLoginName: "simon.milz"
accountLoginShell: null
accountPrimaryGroup: "96e853202749ab5ead000f11edf68ac4b3743f69"
accountStatus: "enabled"
contact_id: "74a2e40c462abdb50d6bd2cea4ad8a12efaf13e0"
container_id: "65"
lastLoginFailure: "2014-05-25 17:07:43"
loginFailures: "0"
openid: "simon.milz"
visibility: "displayed"
}
*/
var account = Tine.Tinebase.registry.get('currentAccount');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment