---
id: object/codeunit/9170
type: object
title: Codeunit 9170 "Conf./Personalization Mgt."
summary: Codeunit 9170 "Conf./Personalization Mgt." in Base Application (System.Environment.Configuration). 24 public procedures, 5 events, 7 event subscribers. Present since at least BC23, still in BC30, changed in BC25, BC27.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "27"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: dd7e36777ff59d1449dd8eb6733a12c494f00274109a97524c0d90f84ba7ada2
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Modules/System/Profile/ConfPersonalizationMgt.Codeunit.al
    title: src/Layers/W1/BaseApp/Modules/System/Profile/ConfPersonalizationMgt.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 9170
name: Conf./Personalization Mgt.
namespace: System.Environment.Configuration
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "25"
  - "27"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 37
  events: 5
  subscribers: 7
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 2
  calls: 5
  called_by: 16
  implements: 0
---

# Codeunit 9170 "Conf./Personalization Mgt."

> Codeunit 9170 "Conf./Personalization Mgt." in Base Application (System.Environment.Configuration). 24 public procedures, 5 events, 7 event subscribers. Present since at least BC23, still in BC30, changed in BC25, BC27.

Base Application · System.Environment.Configuration · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Modules/System/Profile/ConfPersonalizationMgt.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| SingleInstance | true |
| Permissions | tabledata "User Personalization" = r, tabledata "All Profile" = r |

## Events published

- `OnProfileChanged(PrevAllProfile: Record "All Profile"; CurrentAllProfile: Record "All Profile")` (integration)
  - subscribers: [Codeunit 1351 "Telemetry Subscribers"](../codeunit/1351.md) SendTraceOnProfileChanged
- `OnAfterCopyProfile(var AllProfile: Record "All Profile"; NewAllProfile: Record "All Profile")` (integration)
- `OnAfterGetDefaultRoleCenter(var DefaultRoleCenterID: Integer)` (integration)
- `OnRoleCenterOpen()` (integration)
  - subscribers: [Codeunit 1952 "LP Subscribers"](../codeunit/1952.md) StartMachineLearningInBackgroundIfEnoughDataAvailable
- `OnBeforeValidateDeleteProfile(AllProfile: Record "All Profile"; var IsHandled: Boolean)` (integration)

## Event subscriptions

- SetDefaultRoleCenterId subscribes to Codeunit "Default Role Center" OnBeforeGetDefaultRoleCenter
- OnAfterDeleteProfileExtension subscribes to Table "Tenant Profile Extension" OnAfterDeleteEvent
- OnAfterDeleteTenantProfilePageMetadata subscribes to Table "Tenant Profile Page Metadata" OnAfterDeleteEvent
- OnGetDefaultProfile subscribes to Codeunit "User Settings" OnGetDefaultProfile
- OnBeforeInsertAllProfile subscribes to Table "All Profile" OnBeforeInsertEvent
- OnBeforeModifyAllProfile subscribes to Table "All Profile" OnBeforeModifyEvent
- OnBeforeDeleteAllProfile subscribes to Table "All Profile" OnBeforeDeleteEvent

## Procedures

- `DefaultRoleCenterID(): Integer`
- `GetCurrentProfile(var AllProfile: Record "All Profile")`
- `GetCurrentProfileNoError(var AllProfile: Record "All Profile"): Boolean`
- `TryGetDefaultProfileForCurrentUser(var AllProfile: Record "All Profile")`
- `GetDefaultProfileID(UserSecurityID: Guid; var AllProfile: Record "All Profile")`: This procedure retrieves a Default Profile ID to be used for a user, in case there is no valid custom profile set for them in their User Personalization.
- `IsCurrentProfile(Scope: Option; AppID: Guid; ProfileID: Code[30]): Boolean`
- `SetCurrentProfile(AllProfile: Record "All Profile")`
- `CopyProfileWithUserInput(SourceAllProfile: Record "All Profile"; var DestinationAllProfile: Record "All Profile")`
- `CopyProfile(AllProfile: Record "All Profile"; NewProfileID: Code[30]; NewProfileCaption: Text[100]; var NewAllProfile: Record "All Profile")`
- `ClearProfileConfiguration(AllProfile: Record "All Profile")`
- `ClearPersonalizedPagesForUser(UserSid: Guid)`
- `ChangeDefaultRoleCenter(AllProfile: Record "All Profile")`
- `ValidateDeleteProfile(AllProfile: Record "All Profile")`
- `ValidateDisableProfile(AllProfile: Record "All Profile")`
- `FilterToInstalledLanguages(var WindowsLanguage: Record "Windows Language")`
- `DownloadProfileConfigurationPackage()`
- `RaiseOnOpenRoleCenterEvent()`
- `SetOtherProfilesAsNonDefault(NewDefaultAllProfile: Record "All Profile")`
- `ExtractZipFile(ZipFilePath: Text; DestinationFolder: Text)`
- `GetProfileConfigurationUrlForWeb(AllProfile: Record "All Profile"): Text`
- `CanDeleteProfile(AllProfile: Record "All Profile"): Boolean`
- `GetProfileUrlParameterForEvaluationCompany(): Text`
- `OpenProfileCustomizationUrl(AllProfile: Record "All Profile")`
- `IsProfileIdAmbiguous(AllProfile: Record "All Profile"): Boolean`

Plus 1 local procedures.

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 419 "File Management"](../codeunit/419.md) (5 calls: `DownloadProfileConfigurationPackage → DeleteServerFile`, `DownloadProfileConfigurationPackage → DownloadHandler`, `DownloadProfileConfigurationPackage → ServerTempFileName`, …)
- [Codeunit 3061 "Uri Builder"](../codeunit/3061.md) (4 calls: `GetProfileConfigurationUrlForWeb → AddQueryFlag`, `GetProfileConfigurationUrlForWeb → AddQueryParameter`, `GetProfileConfigurationUrlForWeb → GetUri`, …)
- [Codeunit 3060 "Uri"](../codeunit/3060.md) (2 calls: `GetProfileConfigurationUrlForWeb → GetAbsoluteUri`, `GetProfileUrlParameterForEvaluationCompany → EscapeDataString`)
- [Codeunit 457 "Environment Information"](../codeunit/457.md) (1 call: `DefaultRoleCenterID → IsSaaS`)
- [Codeunit 9016 "Azure AD Plan"](../codeunit/9016.md) (1 call: `DefaultRoleCenterID → TryGetAzureUserPlanRoleCenterId`)

## Called by

- [Page 9170 "Profile Card"](../page/9170.md) (7 calls: `OnDeleteRecord → CanDeleteProfile`, `OnDeleteRecord → ValidateDeleteProfile`, `OnInsertRecord → ChangeDefaultRoleCenter`, …)
- [Page 1486 "Role Center Overview"](../page/1486.md) (3 calls: `ChangeProfile → GetCurrentProfileNoError`, `ChangeProfile → SetCurrentProfile`, `OnInit → GetCurrentProfileNoError`)
- [Codeunit 5691 "Create Contoso Tenant Data"](../codeunit/5691.md) (2 calls: `SetDefaultRoleCenter → ChangeDefaultRoleCenter`, `SetDefaultRoleCenter → DefaultRoleCenterID`)
- [Page 1309 "O365 Getting Started"](../page/1309.md) (2 calls: `OnInit → GetCurrentProfileNoError`, `OnQueryClosePage → IsCurrentProfile`)
- [Codeunit 1919 "MigrationQB Data Reader"](../codeunit/1919.md) (1 call: `UnzipFile → ExtractZipFile`)
- [Codeunit 40 "LogInManagement"](../codeunit/40.md) (1 call: `UpdateUserPersonalization → GetDefaultProfileID`)
- [Codeunit 6301 "Power BI Service Mgt."](../codeunit/6301.md) (1 call: `GetEnglishContext → GetCurrentProfileNoError`)
- [Codeunit 9177 "Application Area Cache"](../codeunit/9177.md) (1 call: `GetApplicationAreasForProfile → GetCurrentProfileNoError`)
- [Codeunit 9178 "Application Area Mgmt."](../codeunit/9178.md) (1 call: `GetApplicationAreaSetupRec → GetCurrentProfileNoError`)
- [Page 1310 "O365 Activities"](../page/1310.md) (1 call: `OnOpenPage → RaiseOnOpenRoleCenterEvent`)
- [Page 9037 "Accountant Activities"](../page/9037.md) (1 call: `OnOpenPage → RaiseOnOpenRoleCenterEvent`)
- [Page 9042 "Team Member Activities"](../page/9042.md) (1 call: `OnOpenPage → RaiseOnOpenRoleCenterEvent`)
- [Page 9060 "SO Processor Activities"](../page/9060.md) (1 call: `OnOpenPage → RaiseOnOpenRoleCenterEvent`)
- [Page 9062 "User Security Activities"](../page/9062.md) (1 call: `OnOpenPage → RaiseOnOpenRoleCenterEvent`)
- [Page 9175 "Copy Profile"](../page/9175.md) (1 call: `OnQueryClosePage → CopyProfile`)
- [Table 8627 "Config. Setup"](../table/8627.md) (1 call: `SelectDefaultRoleCenter → ChangeDefaultRoleCenter`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC25, BC27

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "Conf./Personalization Mgt.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
