---
title: "Codeunit 40 LogInManagement, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/points/
object: https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 40 LogInManagement, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/points/

11 procedures and triggers with a step in src/Layers/W1/BaseApp/LogInManagement.Codeunit.al, in source order, read from the text, not from a run.

## CompanyOpen

[Line 57](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L57).

- [64](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L64) raises `OnShowTermsAndConditions`
- [66](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L66) calls [Codeunit 4030 Client Type Management](https://jonas-paprotka.de/ref/codeunit/4030-client-type-management/) `GetCurrentClientType`
- [67](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L67) calls `LogInStart`
- [69](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L69) calls [Codeunit 4030 Client Type Management](https://jonas-paprotka.de/ref/codeunit/4030-client-type-management/) `GetCurrentClientType`
- [70](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L70) calls `GetCurrentDateInUserTimeZone`
- [73](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L73) calls [Codeunit 9016 Azure AD Plan](https://jonas-paprotka.de/ref/codeunit/9016-azure-ad-plan/) `CheckMixedPlansExist`
- [74](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L74) calls [Codeunit 257 Experience Tier](https://jonas-paprotka.de/ref/codeunit/257-experience-tier/) `CheckExperienceTier`

## CompanyClose

[Line 77](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L77).

- [81](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L81) raises `OnBeforeCompanyClose`
- [82](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L82) calls [Codeunit 4030 Client Type Management](https://jonas-paprotka.de/ref/codeunit/4030-client-type-management/) `GetCurrentClientType`
- [83](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L83) calls `LogInEnd`
- [84](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L84) raises `OnAfterCompanyClose`

## LogInStart

[Line 87](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L87), local.

- [101](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L101) calls [Codeunit 43 Language](https://jonas-paprotka.de/ref/codeunit/43-language/) `GetDefaultApplicationLanguageId`
- [107](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L107) calls [Codeunit 9801 Identity Management](https://jonas-paprotka.de/ref/codeunit/9801-identity-management/) `IsUserNamePasswordAuthentication`
- [111](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L111) runs [Report 9810 Change Password](https://jonas-paprotka.de/ref/report/9810-change-password/)
- [122](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L122) calls `UpdateUserPersonalization`
- [128](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L128) calls `GetDefaultWorkDate`
- [130](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L130) calls [Codeunit 9179 Application Area Mgmt. Facade](https://jonas-paprotka.de/ref/codeunit/9179-application-area-mgmt-facade/) `SetupApplicationArea`

## LogInEnd

[Line 133](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L133), local.

- [143](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L143) raises `OnBeforeLogInEnd`
- [158](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L158) raises `OnLogInEndOnAfterGetUserSetupRegisterTime`
- [161](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L161) calls `GetGLSetup`
- [176](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L176) raises `OnLoginEndOnBeforeModify`
- [177](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L177) writes [Table 51 User Time Register](https://jonas-paprotka.de/ref/table/51-user-time-register/) Modify
- [180](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L180) raises `OnLoginEndOnBeforeInsert`
- [181](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L181) writes [Table 51 User Time Register](https://jonas-paprotka.de/ref/table/51-user-time-register/) Insert

## GetDefaultWorkDate

[Line 195](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L195).

- [200](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L200) calls [Codeunit 1306 Company Information Mgt.](https://jonas-paprotka.de/ref/codeunit/1306-company-information-mgt/) `IsDemoCompany`

## OnGetSystemIndicator

[Line 213](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L213), local.

- [215](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L215) calls `GetSystemIndicator`

## GetSystemIndicator

[Line 220](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L220), local.

- [226](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L226) calls [Table 79 Company Information](https://jonas-paprotka.de/ref/table/79-company-information/) `GetSystemIndicator`

## UpdateUserPersonalization

[Line 229](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L229), local.

- [248](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L248) writes [Table 2000000073 User Personalization](https://jonas-paprotka.de/ref/table/2000000073-user-personalization/) Modify
- [252](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L252) calls [Codeunit 457 Environment Information](https://jonas-paprotka.de/ref/codeunit/457-environment-information/) `IsSaaS`
- [254](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L254) calls [Codeunit 9170 Conf./Personalization Mgt.](https://jonas-paprotka.de/ref/codeunit/9170-conf-personalization-mgt/) `GetDefaultProfileID`
- [260](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L260) writes [Table 2000000073 User Personalization](https://jonas-paprotka.de/ref/table/2000000073-user-personalization/) Modify
- [265](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L265) writes [Table 2000000073 User Personalization](https://jonas-paprotka.de/ref/table/2000000073-user-personalization/) Modify

## GetCurrentDateInUserTimeZone

[Line 271](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L271), local.

- [275](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L275) calls [Codeunit 10 Type Helper](https://jonas-paprotka.de/ref/codeunit/10-type-helper/) `GetCurrentDateTimeInUserTimeZone`

## OnCompanyOpen

[Line 279](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L279), local.

- [281](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L281) calls `CompanyOpen`

## OnCompanyClose

[Line 285](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L285), local.

- [287](https://jonas-paprotka.de/ref/codeunit/40-loginmanagement/source/#L287) calls `CompanyClose`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
