---
title: "Codeunit 5700 User Setup Management"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/5700-user-setup-management/
type: codeunit
id: 5700
name: "User Setup Management"
app: "Base Application"
namespace: System.Security.User
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/5700-user-setup-management/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 5700 User Setup Management

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/5700-user-setup-management/

| | |
| --- | --- |
| App | Base Application |
| Namespace | System.Security.User |
| Versions | 17-28 |
| Source file | System/User/UserSetupManagement.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| GetSalesFilter | () | Code[10] | public | 17-28 | - | - |
| GetPurchasesFilter | () | Code[10] | public | 17-28 | - | - |
| GetServiceFilter | () | Code[10] | public | 17-28 | - | - |
| GetSalesFilter | (Code[50]) | Code[10] | public | 17-28 | - | - |
| GetPurchasesFilter | (Code[50]) | Code[10] | public | 17-28 | - | - |
| GetServiceFilter | (Code[50]) | Code[10] | public | 17-28 | - | - |
| GetRespCenter | (Option, Code[10]) | Code[10] | public | 17-28 | - | - |
| CheckRespCenter | (Option, Code[10]) | Boolean | public | 17-28 | - | - |
| CheckRespCenter | (Option, Code[10], Code[50]) | Boolean | public | 17-28 | - | - |
| GetLocation | (Option, Code[10], Code[10]) | Code[10] | public | 17-28 | - | - |
| CheckAllowedPostingDate | (Date) | - | public | 17-28 | - | - |
| TestAllowedPostingDate | (Date, var Text[250]) | Boolean | public | 17-28 | - | - |
| CheckAllowedPostingDatesRange | (Date, Date, Option, Integer) | - | public | 17-28 | - | - |
| IsPostingDateValid | (Date) | Boolean | public | 17-28 | - | - |
| IsPostingDateValidWithSetup | (Date, var RecordId) | Boolean | public | 17-28 | - | - |
| CheckAllowedPostingDatesRange | (Date, Date, Option, Integer, Text, Text) | - | public | 20-28 | - | - |
| IsDeferralPostingDateValidWithSetup | (Date, var RecordId) | Boolean | public | 20-28 | - | - |
| IsPostingDateValidWithGenJnlTemplate | (Date, Code[20]) | Boolean | public | 20-28 | - | - |
| IsPostingDateValidWithGenJnlTemplateWithSetup | (Date, Code[20], var RecordId) | Boolean | public | 20-28 | - | - |
| GetSalesInvoicePostingPolicy | (var Boolean, var Boolean) | - | public | 22-28 | - | - |
| GetPurchaseInvoicePostingPolicy | (var Boolean, var Boolean) | - | public | 22-28 | - | - |
| CheckAllowedVATDatesRange | (Date, Date, Option, Integer) | - | public | 23-28 | - | - |
| CheckAllowedVATDatesRange | (Date, Date, Option, Integer, Text, Text) | - | public | 23-28 | - | - |
| IsVATDateInAllowedPeriod | (Date, var RecordId, var Integer) | Boolean | public | 23-28 | - | - |
| GetServiceInvoicePostingPolicy | (var Boolean, var Boolean, var Boolean) | - | public | 24-28 | - | - |
| GetDateRange | (var Date, var Date, DateFormula, DateFormula, RecordId) | - | public | 28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterGetPurchFilter | (var Record User Setup, var Code[10]) | 17-22 | - | - |
| Integration event | OnAfterGetSalesFilter | (var Record User Setup, var Code[10]) | 17-22 | - | - |
| Integration event | OnAfterGetServiceFilter | (var Record User Setup, var Code[10]) | 17-19 | - | - |
| Integration event | OnBeforeCheckRespCenter2 | (Option, Code[10], Code[50], var Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeGetLocation | (Option, Code[10], Code[10], var Code[10], var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeGetRespCenter | (Option, Code[10], var Boolean, var Code[10]) | 17-28 | - | - |
| Integration event | OnBeforeGetSalesFilter | (Code[50], var Code[10], var Code[10], var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeIsPostingDateValidWithSetup | (Date, var Boolean, var Boolean, var RecordId) | 17-28 | - | - |
| Integration event | OnAfterGetServiceFilter | (var Record User Setup, var Code[10], var Code[10]) | 20-28 | - | - |
| Integration event | OnAfterGetSalesFilterProcedure | (Code[50], Code[10]) | 20-28 | - | - |
| Integration event | OnAfterGetPurchasesFilter | (Code[50], Code[10]) | 20-28 | - | - |
| Integration event | OnAfterGetServiceFilterProcedure | (Code[50], Code[10]) | 20-28 | - | - |
| Integration event | OnBeforeIsDeferralPostingDateValidWithSetup | (Date, var Boolean, var Boolean, var RecordId) | 20-28 | - | - |
| Integration event | OnAfterGetPurchFilter | (var Record User Setup, var Code[10], var Code[10]) | 23-28 | - | - |
| Integration event | OnAfterGetSalesFilter | (var Record User Setup, var Code[10], var Code[10]) | 23-28 | - | - |
| Integration event | OnBeforeIsVATDateValidWithSetup | (Date, var Boolean, var Boolean, var RecordId, var Integer) | 23-28 | - | - |
| Integration event | OnAfterGetSalesInvoicePostingPolicy | (var Record User Setup, var Boolean, var Boolean) | 25-28 | - | - |
| Integration event | OnAfterGetPurchaseInvoicePostingPolicy | (var Record User Setup, var Boolean, var Boolean) | 25-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
