Skip to main content
BenPerry
15-Moonstone
August 20, 2015
Question

API for Windchill User Login Event

  • August 20, 2015
  • 5 replies
  • 3142 views

When a user logs in, there is a record added to the database in the AUDITRECORD table.  I assume some java code is executed when a user logs in, to put that record in the database.

I was thinking about leveraging this API to do some additional things, such as check the user's preferred file server (their vaulting preference).  I could add additional code to this java class do what I desire.  But first I need to determine what API is triggered during the login.

Anyway have ideas of which API(s) are triggered during user login?

5 replies

1-Visitor
August 21, 2015

Whenever a user logs in I think SessionUserAuditEvent.LOGIN event is fired. See if you can do what you want in this event listener.

BenPerry
BenPerry15-MoonstoneAuthor
15-Moonstone
August 21, 2015

Abdul,

Thanks.  I added a System.out.println() statement to SessionUserAuditEvent(), but I didn't see anything in the MS or BMS logs.  Should I expect to see something there?  Or somewhere else?

  public SessionUserAuditEvent(String paramString, WTPrincipalReference paramWTPrincipalReference, long paramLong, int paramInt)

  {

    super(paramString);

    this.event = paramString;

    this.user = paramWTPrincipalReference;

    this.time = paramLong;

    this.concurrency = paramInt;

    System.out.println("\n\n\n\n\nMyStatement\n\n\n\n\n");

  }