Access Control

Easily find this page again using the shortlink: https://bct.azrcrv.co.uk/2000000053

Table Type: System

Table Name: Access Control
Database Table Name: Access Control

Table Number: 2000000053

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 Access Control can be queried.

Show/hide an example select of all columns

SELECT
   *
FROM
   [Access Control]

Show/hide an example select of all columns by name

SELECT
   [User Security ID]
   ,[Role ID]
   ,[Company Name]
   ,[Scope]
   ,[App ID]
   ,[$systemId]
   ,[$systemCreatedAt]
   ,[$systemCreatedBy]
   ,[$systemModifiedAt]
   ,[$systemModifiedBy]
FROM
   [Access Control]

Show/hide an example select of all columns including those from all joined tables

SELECT
   *
FROM
   [Access Control] AS [Access Control]
LEFT JOIN
   [User] AS [User]
      ON
         [Access Control].[User Security ID] = [User].[User Security ID]
LEFT JOIN
   [Company] AS [Company]
      ON
         [Access Control].[Company Name] = [Company].[Name]
LEFT JOIN
   [User] AS [User]
      ON
         [Access Control].[SystemCreatedBy] = [User].[User Security ID]
LEFT JOIN
   [User] AS [User]
      ON
         [Access Control].[SystemModifiedBy] = [User].[User Security ID]

Show/hide columns in Access Control table

Field No.Field NameField CaptionClassTypeLengthSQL Column NameSQL DataType
1User Security ID SearchUser Security IDNormalGUID16User Security IDuniqueidentifier
Key to join to the User table.

Show/hide example query

SELECT
	       [Access Control].[User Security ID]
	       ,[User].[User Security ID]
	FROM
	       [Access Control] AS [Access Control]
	LEFT JOIN
	       [User] AS [User]
	              ON
	                     [Access Control].[User Security ID] = [User].[User Security ID]
2Role ID Primary Key SearchRole IDNormalCode20Role IDnvarchar(40)
3Company Name Primary Key SearchCompany NameNormalText30Company Namenvarchar(60)
Key to join to the Company table.

Show/hide example query

SELECT
	       [Access Control].[Company Name]
	       ,[Company].[Name]
	FROM
	       [Access Control] AS [Access Control]
	LEFT JOIN
	       [Company] AS [Company]
	              ON
	                     [Access Control].[Company Name] = [Company].[Name]
5User Name Primary Key SearchUser NameFlowFieldCode50
7Role Name SearchRole NameFlowFieldText30
8Scope SearchScopeNormalOption4Scopeint
Available options are:
  • “System”
  • “Tenant”
9App ID Primary Key SearchApp IDNormalGUID16App IDuniqueidentifier
10App Name Primary Key SearchApp NameFlowFieldText250
2000000000$systemId SearchSystem IDNormalGUID16$systemIduniqueidentifier
2000000001SystemCreatedAt SearchCreated AtNormalDateTime8$systemCreatedAtdatetime
2000000002SystemCreatedBy SearchCreated ByNormalGUID16$systemCreatedByuniqueidentifier
Key to join to the User table.

Show/hide example query

SELECT
	       [Access Control].[$systemCreatedBy]
	       ,[User].[User Security ID]
	FROM
	       [Access Control] AS [Access Control]
	LEFT JOIN
	       [User] AS [User]
	              ON
	                     [Access Control].[$systemCreatedBy] = [User].[User Security ID]
2000000003SystemModifiedAt SearchModified AtNormalDateTime8$systemModifiedAtdatetime
2000000004SystemModifiedBy SearchModified ByNormalGUID16$systemModifiedByuniqueidentifier

Leave a Reply

Your email address will not be published. Required fields are marked *