DTW Administration / Setup / General / Users / User Access Log
API User Action Record


Displays the access details and the actions of SAP Business One users who have logged on and logged off with the SAP Business One client or the DI API.

Source table: USR5.

Object Model


In the SAP Business One application, to open the Access Log window, in the SAP Business One menu bar, choose Tools --> Access Log.

To open the Access Log Details window, in the Access Log window, double-click the table row of a user whose access information you want to display.


Getting User Action Records (C#)
UserActionRecord oUserActionRecord = (UserActionRecord)oCompany.GetBusinessObject(BoObjectTypes.oUserActionRecord); Recordset rs = (Recordset)oCompany.GetBusinessObject(BoObjectTypes.BoRecordset); rs.DoQuery("select * from USR5 where UserID = 'manager' and Date > '2009-11-01'"); oUserActionRecord.Browser.Recordset = rs; oUserActionRecord.Browser.MoveFirst(); while (!oUserActionRecord.Browser.EoF) { Console.Write(oUserActionRecord.UserCode + "\t"); Console.Write(oUserActionRecord.Action + "\t"); Console.Write(oUserActionRecord.ActionBy + "\t"); Console.Write(oUserActionRecord.ClientIP + "\t"); Console.Write(oUserActionRecord.ClientName + "\t"); Console.Write(oUserActionRecord.ActionDate + "\t"); Console.Write(oUserActionRecord.ActionTime + "\t"); Console.WriteLine(); oUserActionRecord.Browser.MoveNext(); }

See Also

SAP® B1 DI-API C# definition

public class UserActionRecordClass : IUserActionRecord, UserActionRecord { public virtual UserActionTypeEnum Action { get; } public virtual string ActionBy { get; } public virtual DateTime ActionDate { get; } public virtual DateTime ActionTime { get; } public virtual string ClientIP { get; } public virtual string ClientName { get; } public virtual int Count { get; } public virtual int ProcessID { get; } public virtual string ProcessName { get; } public virtual string UserCode { get; } public virtual SAPbobsCOM.UserFields UserFields { get; } public virtual int WindowsSession { get; } public virtual string WindowsUser { get; } public extern UserActionRecordClass(); public virtual extern void SetCurrentLine(int LineNum); }

DTW Administration / Setup / General / Users
API User Action Record


To display a list of actions and details related to a specific user's access activity in SAP Business One.

Property type

Read-only property


Visual Basic
Public Property UserActionRecord() As UserActionRecord

See Also

Related information

User Action Type Enum UserActionTypeEnum Enumeration
Displays the action of the user.
   Parent: User Action Record UserActionRecord Object· Table: USR5

SAP® Business One is the trademark(s) or registered trademark(s) of SAP AG in Germany and in several other countries. Contact
This website is not affiliated with, maintained, authorized, endorsed or sponsored by SAP AG or any of its affiliates