ERP/3.0/Developers Guide/Database Model/org.openbravo.model.ad.access/AD User
AD_User
- Name:AD_User
- Classname:ADUser
This table contains the following columns:
Name | Nullable | Data Type | Description
|
IsActive | No | CHAR (1) | There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reporting. There are two reasons for de-activating and not deleting records:
(1) The system requires the record for auditing purposes. (2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are existing invoices for it. By de-activating the Business Partner you prevent it from being used in future transactions. |
Phone2 | Yes | NVARCHAR (40) | The 2nd Phone field identifies an alternate telephone number. |
Birthday | Yes | TIMESTAMP (7) | Birthdate or Anniversary day |
C_BPartner_ID | Yes | VARCHAR (32) | A Business Partner is anyone with whom you transact. This can include a customer, vendor, employee or any combination of these. |
AD_Client_ID | No | VARCHAR (32) | A Client is a company or a legal entity. You cannot share data between Clients. |
Comments | Yes | NVARCHAR (2000) | The Comments field allows for free form entry of additional information. |
Commercialauth | No | CHAR (1) | This field show whether customer wants or does not want to receive commercial information from the organization |
CreatedBy | No | VARCHAR (32) | The Created By field indicates the user who created this record. |
Created | No | TIMESTAMP (7) | The Created field indicates the date that this record was created. |
Default_Ad_Client_ID | Yes | VARCHAR (32) | Client that user will use by default when is logged |
Default_Ad_Language | Yes | VARCHAR (6) | Default language of the user interface upon log in of the current user. |
Default_Ad_Org_ID | Yes | VARCHAR (32) | Default organization that will be used when entering new transactions (eg. creating a new sales order). |
Default_Ad_Role_ID | Yes | VARCHAR (32) | Default role applied when this user logs in (only the ones applicable to the user are shown). |
Default_M_Warehouse_ID | Yes | VARCHAR (32) | Default warehouse that will be used within transactions that require warehouse movements. |
Description | Yes | NVARCHAR (255) | A description is limited to 255 characters. |
Yes | NVARCHAR (255) | The Email Address is the Electronic Mail ID for this User and should be fully qualified (e.g. joe.smith@company.com). | |
EmailUserPW | Yes | NVARCHAR (40) | Required if the mail server requires authentification to send emails. |
EmailUser | Yes | NVARCHAR (40) | The user name in the mail system is usually the string before the @ of your email address. Required if the mail server requires authentification to send emails. |
Fax | Yes | NVARCHAR (40) | The Fax identifies a facsimile number for this Business Partner or Location |
Firstname | Yes | NVARCHAR (60) | First Name of the contact |
Grant_Portal_Access | No | CHAR (1) | Grants to this user access to one of the available portal roles and resets the password for this user. |
C_Greeting_ID | Yes | VARCHAR (32) | The Greeting identifies the greeting to print on correspondence. |
AD_Image_ID | Yes | VARCHAR (32) | Defines a system image |
Isexpiredpassword | Yes | CHAR (1) | If checked, the user will have to change his password. By default, this checkbox is unchecked. |
Issalesrep | No | CHAR (1) | The Sales Rep checkbox indicates if this employee is also a sales representative. |
LastContact | Yes | TIMESTAMP (7) | The Last Contact indicates the date that this Business Partner Contact was last contacted. |
LastResult | Yes | NVARCHAR (255) | The Last Result identifies the result of the last contact made. |
Lastname | Yes | NVARCHAR (60) | Last name of the contact |
LastPasswordUpdate | No | TIMESTAMP (7) | Latest date of user password change |
IsLocked | No | CHAR (1) | The user is locked and cannot log in the application. This field can be manually set or automatically if login.trial.user.lock property is configured in Openbravo.properties file and there has been that number of failed log in attempts. |
Name | No | NVARCHAR (60) | A more descriptive identifier (that does need to be unique) of a record/document that is used as a default search option along with the search key (that is unique and mostly shorter). It is up to 60 characters in length. |
AD_Org_ID | No | VARCHAR (32) | An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations. |
C_BPartner_Location_ID | Yes | VARCHAR (32) | The Partner address indicates the location of a Business Partner |
Password | Yes | NVARCHAR (255) | The Password indicates the Password for this User Id. Passwords are required to identify authorized users. |
Phone | Yes | NVARCHAR (40) | The Phone field identifies a telephone number |
Title | Yes | NVARCHAR (40) | The Title indicates the name that an entity is referred to as. |
Processing | Yes | CHAR (1) | When this field is set as 'Y' a process is being performed on this record. |
Supervisor_ID | Yes | VARCHAR (32) | The Supervisor indicates who will be used for forwarding and escalating issues for this user. |
AD_OrgTrx_ID | Yes | VARCHAR (32) | The organization which performs or initiates this transaction (for another organization). The owning Organization may not be the transaction organization in a service bureau environment, with centralized services, and inter-organization transactions. |
Update_Password | Yes | CHAR (1) | |
Updated | No | TIMESTAMP (7) | The Updated field indicates the date that this record was updated. |
UpdatedBy | No | VARCHAR (32) | The Updated By field indicates the user who updated this record. |
AD_User_ID | No | VARCHAR (32) | The User identifies a unique user in the system. This could be an internal user or a business partner contact |
UserName | No | NVARCHAR (60) | Name that identifies the user in the System |
Viaemail | No | CHAR (1) | This field defines the default value for the Via Mail check in Web POS Customer Creation |
Viasms | No | CHAR (1) | This field defines the default value for the Via SMS check in Web POS Customer Creation |
Columns
Active
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
- Default value: Y
Alternative Phone
- Physical column name: Phone2
- Property Name: alternativePhone
- Reference: String
Birthday
- Physical column name: Birthday
- Property Name: birthday
- Reference: Date
Business Partner
- Physical column name: C_BPartner_ID
- Property Name: businessPartner
- Reference: Search
- This column is a child for a business object (is Parent)
Foreign key column to C_BPartner table, (column: C_BPartner_ID)
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
Foreign key column to AD_Client table, (column: AD_Client_ID)
It has a validation "AD_Client Security validation", with the following code
AD_Client.AD_Client_ID in (@#User_Client@)
Comments
- Physical column name: Comments
- Property Name: comments
- Reference: Text
Commercialauth
- Physical column name: Commercialauth
- Property Name: commercialauth
- Reference: YesNo
- Default value: N
Created By
- Physical column name: CreatedBy
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Creation Date
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
- Default value: SYSDATE
Default Client
- Physical column name: Default_Ad_Client_ID
- Property Name: defaultClient
- Reference: Table
Foreign key column to AD_Client table, (column: AD_Client_ID)
It has a validation "AD_Client of Role", with the following code
AD_CLIENT.ISACTIVE = 'Y' AND EXISTS (SELECT 1 FROM AD_ROLE_ORGACCESS WHERE AD_ROLE_ORGACCESS.AD_CLIENT_ID = AD_CLIENT.AD_CLIENT_ID AND AD_ROLE_ORGACCESS.AD_ROLE_ID = @Default_AD_Role_ID@ AND AD_ROLE_ORGACCESS.ISACTIVE = 'Y')
Default Language
- Physical column name: Default_Ad_Language
- Property Name: defaultLanguage
- Reference: Table
Foreign key column to AD_Language table, (column: AD_Language)
Default Organization
- Physical column name: Default_Ad_Org_ID
- Property Name: defaultOrganization
- Reference: Table
Foreign key column to AD_Org table, (column: AD_Org_ID)
It has a validation "AD_Org of a Role", with the following code
EXISTS (SELECT 1 FROM AD_ROLE_ORGACCESS A_R_O, ad_role r WHERE A_R_O.AD_ORG_ID = AD_ORG.AD_Org_ID AND A_R_O.ISACTIVE = 'Y' AND A_R_O.AD_ROLE_ID = R.AD_ROLE_ID and r.ad_role_id = @Default_AD_Role_ID@ AND R.ISACTIVE = 'Y' AND (LPAD(TO_CHAR(R.USERLEVEL), 1, '1')='S' OR AD_ORG.AD_ORG_ID <> '0') AND A_R_O.AD_ROLE_ID = @Default_AD_Role_ID@)
Default Role
- Physical column name: Default_Ad_Role_ID
- Property Name: defaultRole
- Reference: Table
Foreign key column to AD_Role table, (column: AD_Role_ID)
It has a validation "AD_Role_of_User", with the following code
EXISTS ( SELECT 1 FROM AD_USER_ROLES A_U_R WHERE A_U_R.AD_ROLE_ID = AD_Role.AD_Role_ID AND A_U_R.ISACTIVE = 'Y' AND A_U_R.AD_USER_ID = @AD_User_ID@)
Default Warehouse
- Physical column name: Default_M_Warehouse_ID
- Property Name: defaultWarehouse
- Reference: Table
Foreign key column to M_Warehouse table, (column: M_Warehouse_ID)
It has a validation "M_Warehouse of Role", with the following code
M_Warehouse.AD_Client_ID = @Default_AD_Client_ID@
Description
- Physical column name: Description
- Property Name: description
- Reference: String
- Physical column name: Email
- Property Name: email
- Reference: String
Email Server Password
- Physical column name: EmailUserPW
- Property Name: emailServerPassword
- Reference: Password (decryptable)
Email Server Username
- Physical column name: EmailUser
- Property Name: emailServerUsername
- Reference: String
Fax
- Physical column name: Fax
- Property Name: fax
- Reference: String
First Name
- Physical column name: Firstname
- Property Name: firstName
- Reference: String
Callout: SL_User_Name
This column has a callout associated.
It is implemented by [1] Java Class.
Grant_Portal_Access
- Physical column name: Grant_Portal_Access
- Property Name: grantPortalAccess
- Reference: Button
- Default value: N
Greeting
- Physical column name: C_Greeting_ID
- Property Name: greeting
- Reference: TableDir
Foreign key column to C_Greeting table, (column: C_Greeting_ID)
Image
- Physical column name: AD_Image_ID
- Property Name: image
- Reference: Image BLOB
Foreign key column to AD_Image table, (column: AD_Image_ID)
Is Password Expired
- Physical column name: Isexpiredpassword
- Property Name: isPasswordExpired
- Reference: YesNo
- Default value: N
Is Sales Representative
- Physical column name: Issalesrep
- Property Name: isSalesRepresentative
- Reference: YesNo
- Default value: N
Last Contact Date
- Physical column name: LastContact
- Property Name: lastContactDate
- Reference: Date
Last Contact Result
- Physical column name: LastResult
- Property Name: lastContactResult
- Reference: String
Last Name
- Physical column name: Lastname
- Property Name: lastName
- Reference: String
Callout: SL_User_Name
This column has a callout associated.
It is implemented by [2] Java Class.
LastPasswordUpdate
- Physical column name: LastPasswordUpdate
- Property Name: lastPasswordUpdate
- Reference: Date
- Default value: SYSDATE
Locked
- Physical column name: IsLocked
- Property Name: locked
- Reference: YesNo
- Default value: N
Name
- Physical column name: Name
- Property Name: name
- Reference: String
- This column is part of the table's identifier
Callout: SL_User_Name
This column has a callout associated.
It is implemented by [3] Java Class.
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
Partner Address
- Physical column name: C_BPartner_Location_ID
- Property Name: partnerAddress
- Reference: TableDir
Foreign key column to C_BPartner_Location table, (column: C_BPartner_Location_ID)
It has a validation "C_BPartner Location", with the following code
C_BPartner_Location.C_BPartner_ID=@C_BPartner_ID@
Password
- Physical column name: Password
- Property Name: password
- Reference: Password (not decryptable)
Phone
- Physical column name: Phone
- Property Name: phone
- Reference: String
Position
- Physical column name: Title
- Property Name: position
- Reference: String
Process Now
- Physical column name: Processing
- Property Name: processNow
- Reference: Button
Supervisor
- Physical column name: Supervisor_ID
- Property Name: supervisor
- Reference: OBUISEL_Selector Reference
Foreign key column to AD_User table, (column: AD_User_ID)
Trx Organization
- Physical column name: AD_OrgTrx_ID
- Property Name: trxOrganization
- Reference: Table
Foreign key column to AD_Org table, (column: AD_Org_ID)
Update_Password
- Physical column name: Update_Password
- Property Name: updatePassword
- Reference: Button
Updated
- Physical column name: Updated
- Property Name: updated
- Reference: DateTime
- Default value: SYSDATE
Updated By
- Physical column name: UpdatedBy
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
User/Contact
- Physical column name: AD_User_ID
- Property Name: id
- Reference: ID
Username
- Physical column name: UserName
- Property Name: username
- Reference: String
Viaemail
- Physical column name: Viaemail
- Property Name: viaemail
- Reference: YesNo
- Default value: N
Viasms
- Physical column name: Viasms
- Property Name: viasms
- Reference: YesNo
- Default value: N
Other Info
Indices
These are the indices for this table (for each index there is a list of all the columns included within it):
- AD_USER_EMAIL Not Unique. Columns:
- AD_USER_NAME_ID Not Unique. Columns:
- NAME
- AD_USER_ID
- AD_USER_PARTNER Not Unique. Columns:
- C_BPARTNER_ID
- AD_USER_SUPERVISOR Not Unique. Columns:
- SUPERVISOR_ID
Check Constraints
These are the check constraints for this table:
- AD_USER_COMMERCIALAUTH_CHK: COMMERCIALAUTH IN ('Y', 'N')
- AD_USER_EXPIREDPASSWORD_CHECK: ISEXPIREDPASSWORD IN ('Y', 'N')
- AD_USER_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')
- AD_USER_ISLOCKED_CHECK: ISLOCKED IN ('Y', 'N')
- AD_USER_ISSALESREP_CHECK: ISSALESREP IN ('Y', 'N')
- AD_USER_VIAEMAIL_CHK: VIAEMAIL IN ('Y', 'N')
- AD_USER_VIAESMS_CHK: VIASMS IN ('Y', 'N')
![]() | Back to org.openbravo.model.ad.access |