📚 SAP Business One SDK Help

Users Object Members
See Also  Overview 

Public Methods

Public Method AddAdds a record to the object table in SAP Business One company database.
Public Method CloseNot supported.
Public Method GetAsXMLReturns the object from XML data, which is stored as string in a buffer.
Public Method GetByKeyRetrieves and sets the values of the object's properties by the object's absolute key from the Company database.
Public Method RemoveDeletes a user from the users list.
Public Method RemoveUserAndLicenseRemoves the user and their license allocation.
Public Method SaveToFileSave the object to a file as XML data.
Public Method SaveXMLSaves the object data to XML formatted data.
Public Method UpdateUpdates the object data in the company database.

Public Properties

Public Property BranchSets or returns the user's branch code.

Field name: Branch.

This is a foreign key to the Branches table (OUBR - not exposed through the DI API).

Public Property BrowserReturns the DataBrowser object.
Public Property CashLimit

Indicates whether to set the maximum cash amount a regular user is authorized to enter in an incoming payment (Payment Means window, Cash tab). Field name: CashLimit.

Public Property DefaultsSets or returns the users group code.

Length: 8 characters.

Field name: DfltsGroup.

This is a foreign key to the UserDefaultGroups object , which provides the default values related to the users group.

Public Property DepartmentSets or returns the user's department code.

Field name: Department.

This is a foreign key to the Departments table (OUDP), which is exposed via the DepartmentsService object.

Public Property eMailSets or returns the user's e-mail that can be used by the system for sending messages to the user.

Field name: E_Mail.

Length: 100 characters.

Public Property FaxNumberSets or returns the user's fax number that can be used by the system for sending messages to the user.

Field name: Fax.

Length: 50 characters.

Public Property GroupReturns a valid value that determines whether the user group status is Regular or Deleted.

Field name: GROUPS.

Public Property InternalKeyReturns the internal key identifier of a user. This is a serial number assigned by the system used as a reference for other documents in the system.

Field name: INTERNAL_K.

Public Property LanguageCodeLanguage code.
Public Property LastLoginTimeThe time at which the user last logged on to SAP Business One.

Field name: LstLoginT.

Public Property LastLogoutDateThe date on which the user last logged off from SAP Business One.

Field name: LstLogoutD.

Public Property LastLogoutTimeThe time at which the user last logged off from SAP Business One.

Field name: LstLogoutT.

Public Property LastPasswordChangedByThe user who last changed the password.

Field name: LstPwdChB.

Public Property LastPasswordChangeTimeThe time at which the password was last changed.

Field name: LstPwdChT.

Public Property LockedReturns a valid value that determines whether the user status is Locked or or not.

Field name: Locked.

Public Property MaxCashAmtForIncmngPayts

Sets the maximum cash amount a regular user is authorized to enter in an incoming payment (Payment Means window, Cash tab).

Field name: MaxCashSum.

Public Property MaxDiscountGeneralSets the maximum discount (in percentage) relevant to all discounts, except for sales and purchase documents, including:
  • Business partner master data
  • Payment terms
  • Discount in goods issue, goods receipt, and inventory transfer
  • Special price

Field name: Discount.

Public Property MaxDiscountPurchaseSets the maximum discount (in percentage) for purchase documents.

Field name: PurchDisc.

Public Property MaxDiscountSalesSets the maximum discount (in percentage) for sales documents.

Field name: SalesDisc.

Public Property MobilePhoneNumberSets or returns the user's mobile phone number that can be used by the system for sending SMS messages to the user.

Field name: PortNum.

Length: 50 characters.

Public Property NaturalPerThis shows whether the business partner is natural person or not.

Field name: NaturalPer.

Public Property SuperuserSets or returns a valid value of BoYesNoEnum type that specifies whether or not the user is a super-user. Super-users have automatic authorizations to all objects and are authorized to perform all functions in the system.

Authorizations for super-users cannot be reduced or changed. However, super-users can deny super-user rights from other super-users in the system.

Field name: SUPERUSER.

Public Property UserActionRecordTo display a list of actions and details related to a specific user's access activity in SAP Business One.
Public Property UserBranchAssignmentproperty UserBranchAssignment
Public Property UserCodeSets or returns the unique user code for log on to the system.

Length: 8 characters (case-sensitive).

Mandatory property.

Field name: USER_CODE.

Public Property UserFieldsReturns the UserFields object.
Public Property UserGroupByUserproperty UserGroupByUser
Public Property UserNameSets or returns the user name used for information only and not for reference. The user name can be non unique.

Field name: U_Name.

Length: 155 characters.

Public Property UserPasswordSets or returns the password for log on to the system. The password must be unique.

Length: 4 to 8 characters (case-sensitive).

Mandatory property.

Field name: PASSWORD.

Public Property UserPermissionReturns the UserPermission child object.

See Also