Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/2000000120
Table Type: System
Table Name: User
Database Table Name: User
Due to how Dynamics BC tables and columns are named, square brackets need to be wrapped around the table name and column names. Below are example queries showing how User can be queried.
Show/hide an example select of all columns
SELECT
*
FROM
[User]
Show/hide an example select of all columns by name
SELECT
[User Security ID]
,[User Name]
,[Full Name]
,[State]
,[Expiry Date]
,[Windows Security ID]
,[Change Password]
,[License Type]
,[Authentication Email]
,[Contact Email]
,[Exchange Identifier]
,[Application ID]
,[$systemId]
,[$systemCreatedAt]
,[$systemCreatedBy]
,[$systemModifiedAt]
,[$systemModifiedBy]
FROM
[User]
Show/hide an example select of all columns including those from all joined tables
SELECT
*
FROM
[User] AS [User]
LEFT JOIN
[User] AS [User]
ON
[User].[User Security ID] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[User].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
[User] AS [User]
ON
[User].[SystemModifiedBy] = [User].[User Security ID]
Show/hide columns in User table
Field No. | Field Name | Field Caption | Class | Type | Length | SQL Column Name | SQL DataType |
---|---|---|---|---|---|---|---|
1 | User Security ID | User Security ID | Normal | GUID | 16 | User Security ID | uniqueidentifier |
2 | User Name | User Name | Normal | Code | 50 | User Name | nvarchar(100) |
3 | Full Name | Full Name | Normal | Text | 80 | Full Name | nvarchar(160) |
4 | State | State | Normal | Option | 4 | State | int |
Available options are:
| |||||||
5 | Expiry Date | Expiry Date | Normal | DateTime | 8 | Expiry Date | datetime |
7 | Windows Security ID | Windows Security ID | Normal | Text | 119 | Windows Security ID | nvarchar(238) |
8 | Change Password | Change Password | Normal | Boolean | 4 | Change Password | tinyint |
10 | License Type | License Type | Normal | Option | 4 | License Type | int |
Available options are:
| |||||||
11 | Authentication Email | Authentication Email | Normal | Text | 250 | Authentication Email | nvarchar(500) |
14 | Contact Email | Contact Email | Normal | Text | 250 | Contact Email | nvarchar(500) |
15 | Exchange Identifier | Exchange Identifier | Normal | Text | 250 | Exchange Identifier | nvarchar(500) |
16 | Application ID | Application ID | Normal | GUID | 16 | Application ID | uniqueidentifier |
Key to join to the Installed Application table.Show/hide example querySELECT [User].[Application ID] ,[Installed Application].[Package ID] FROM [User] AS [User] LEFT JOIN [] AS [Installed Application] ON [User].[Application ID] = [Installed Application].[Package ID] | |||||||
2000000000 | $systemId | System ID | Normal | GUID | 16 | $systemId | uniqueidentifier |
2000000001 | SystemCreatedAt | Created At | Normal | DateTime | 8 | $systemCreatedAt | datetime |
2000000002 | SystemCreatedBy | Created By | Normal | GUID | 16 | $systemCreatedBy | uniqueidentifier |
2000000003 | SystemModifiedAt | Modified At | Normal | DateTime | 8 | $systemModifiedAt | datetime |
2000000004 | SystemModifiedBy | Modified By | Normal | GUID | 16 | $systemModifiedBy | uniqueidentifier |