P4DTI issue job000412

TitleCan't migrate users from Perforce to TeamTrack automatically
Statusduplicate
Priorityoptional
Assigned userGareth Rees
OrganizationTeamShare
DescriptionThe TeamTrack integration doesn't support automatic migration of users from Perforce to TeamTrack. Someone has to add all the users to TeamTrack by hand.
AnalysisThis is a duplicate of job000424.
This is because I don't know how to add users to TeamTrack using the API.
I tried the following using the Python interface to TeamTrack build with the API that Kelly gave me in 2001-08 (roughly corresponding to build 50102).

  user = server.new_record(teamtrack.table['USERS'])
  user['LOGINID'] = 'test'
  user['NAME'] = 'Test user'
  user.add()

In terms of the underlying API calls this corresponds to:

  TSRecord user(TS_TBLID_USERS, server);
  user.SetString("LOGINID", "test");
  user.SetString("NAME", "Test User");
  server.AddRecord(&user)

However, the new user appears not to be valid. In particular, when I examine the user in the TeamTrack Administrator, I can't look at any tabs other than "Preferences" in the "Edit User" dialog.
How foundinspection
Evidence<https://www1.teamshare.com/ttexternal/...RecordId=33887&Template=view&TableId=36>
Observed in1.2.1
Introduced in1.2.1
Created byGareth Rees
Created on2001-10-24 12:26:38
Last modified byGareth Rees
Last modified on2001-12-14 15:26:04
History2001-10-24 GDR Created.
2001-12-14 GDR Duplicate of job000424.