---
id: post/yzhums-com/68731
type: post
title: "Dynamics 365 Business Central: How to get current Profile (Role) info (Profile ID, Display Name, Source, Role Center ID, etc.) via AL"
summary: This post demonstrates how to retrieve current user profile information including Profile ID, Display Name, Role Center ID, and Description using codeunit 9170 'Conf./Personalization Mgt.' in AL code, which provides more details than methods that only return the profile ID alone.
tier: community
language: en
tags:
  - profile
  - role
  - al development
  - codeunit
  - role center
  - personalization
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-26T06:41:41.779Z"
  flags: []
generated:
  at: "2026-10-26T05:51:10.938Z"
  pipeline: 0.2.0
  prompts:
    extract-post: 1
  input_hash: 68e9d6144728d05af1ce3d2afaa09a62481375499b0800a54ad592f754af9e55
evidence:
  - kind: blog
    url: https://yzhums.com/68731/
    title: "Dynamics 365 Business Central: How to get current Profile (Role) info (Profile ID, Display Name, Source, Role Center ID, etc.) via AL"
    date: "2025-10-31"
    commit: null
    t: null
    quote: null
  - kind: blog
    url: https://yzhums.com/68731/
    title: "Dynamics 365 Business Central: How to get current Profile (Role) info (Profile ID, Display Name, Source, Role Center ID, etc.) via AL"
    date: "2025-10-31"
    commit: null
    t: null
    quote: codeunit 9170 "Conf./Personalization Mgt.".
  - kind: blog
    url: https://yzhums.com/68731/
    title: "Dynamics 365 Business Central: How to get current Profile (Role) info (Profile ID, Display Name, Source, Role Center ID, etc.) via AL"
    date: "2025-10-31"
    commit: null
    t: null
    quote: 'procedure GetCurrentProfile(var AllProfile: Record "All Profile"):'
links:
  learn: []
  objects:
    - object/codeunit/9170
    - object/page/22
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  related:
    - to: post/gerardorenteria-blog/12961
      title: 🕐 Remember When Lists Could Sort By Any Key? 🔄
      label: possibly related
      why: both name Page 22 "Customer List"
      by: code
    - to: video/KmuTVkodRXM
      title: All new goodies about AL Namespace in BC 2025 wave 2
      label: possibly related
      why: both name Page 22 "Customer List"
      by: code
    - to: video/H7R_m8Ue38g
      title: "Business Central v29: System Audit Fields Now Available in Analysis Mode"
      label: possibly related
      why: both name Page 22 "Customer List"
      by: code
    - to: post/yzhums-com/63595
      title: "Dynamics 365 Business Central: Convert Word (.docx) To PDF (.pdf) within BC (No control add-in and APIs)"
      label: possibly related
      why: both name Page 22 "Customer List"
      by: code
    - to: post/yzhums-com/56521
      title: "Dynamics 365 Business Central: How to hide/disable New, Edit (Edit List), and Delete actions on the page"
      label: possibly related
      why: both name Page 22 "Customer List"
      by: code
    - to: post/yzhums-com/67552
      title: "Dynamics 365 Business Central: How to quickly get User Experience/Experience Tier (Essential or Premium) in AL"
      label: possibly related
      why: both name Page 22 "Customer List"
      by: code
    - to: post/yzhums-com/72040
      title: "Dynamics 365 Business Central: How to quickly identify the first transaction date and the number of days since the last sale with a customer"
      label: possibly related
      why: both name Page 22 "Customer List"
      by: code
    - to: post/yzhums-com/61818
      title: "Dynamics 365 Business Central: How to substitute a page for another page via AL"
      label: possibly related
      why: both name Page 22 "Customer List"
      by: code
    - to: post/yzhums-com/63922
      title: "Dynamics 365 Business Central: How to use Page.SetSelectionFilter Method in temporary records"
      label: possibly related
      why: both name Page 22 "Customer List"
      by: code
    - to: post/thedynamicsexplorer-com/36822
      title: Dynamics GP to Business Central – What does my migrated GP Historical Data look like in Business Central
      label: possibly related
      why: both name Page 22 "Customer List"
      by: code
post_id: "68731"
source_id: yzhums-com
source_name: Dynamics 365 Lab - Yun Zhu
url: https://yzhums.com/68731/
published_at: "2025-10-31T01:36:56.000Z"
author: Yun Zhu
full_text: false
words: 152
quotes:
  - text: codeunit 9170 "Conf./Personalization Mgt.".
    why_it_matters: Identifies the specific system codeunit developers should use to access comprehensive profile data
  - text: 'procedure GetCurrentProfile(var AllProfile: Record "All Profile"):'
    why_it_matters: Shows the exact method signature that retrieves the full profile record with all available properties
code_objects_mentioned:
  - codeunit Conf./Personalization Mgt.
  - table All Profile
  - page Customer List
systems:
  - development
versions_mentioned: []
preview:
  embeddable: true
  frame_url: null
  image: https://yzhums.com/wp-content/uploads/2025/10/Snipaste_2025-10-31_09-40-07.png
  image_alt: null
  image_w: null
  image_h: null
  site_name: Dynamics 365 Lab
  favicon: https://yzhums.com/wp-content/uploads/2020/08/cropped-logo-3-32x32.png
  probed_at: "2026-10-26T06:12:34.990Z"
---

# Dynamics 365 Business Central: How to get current Profile (Role) info (Profile ID, Display Name, Source, Role Center ID, etc.) via AL

[Read the post](https://yzhums.com/68731/) · Dynamics 365 Lab - Yun Zhu (Yun Zhu, MVP) · 2025-10-31 · 152 words · tier community · reviewed (checked by Opus)

> This post demonstrates how to retrieve current user profile information including Profile ID, Display Name, Role Center ID, and Description using codeunit 9170 'Conf./Personalization Mgt.' in AL code, which provides more details than methods that only return the profile ID alone.

## Key points

- Use codeunit 9170 'Conf./Personalization Mgt.' with its GetCurrentProfile procedure to access comprehensive profile data
- This method returns the complete 'All Profile' record with multiple properties like Profile ID, Role Center ID, and Description
- The approach goes beyond simpler methods that can only retrieve the profile ID without additional profile attributes
- Practical implementation shown through a page extension example on Customer List page

## Quotes

- "codeunit 9170 "Conf./Personalization Mgt."." (Identifies the specific system codeunit developers should use to access comprehensive profile data)
- "procedure GetCurrentProfile(var AllProfile: Record "All Profile"):" (Shows the exact method signature that retrieves the full profile record with all available properties)

## AL objects mentioned

As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.

- [codeunit 9170 "Conf./Personalization Mgt."](../../objects/codeunit/9170.md)
- table "All Profile"
- [page 22 "Customer List"](../../objects/page/22.md)

Not found in BC28-30: table "All Profile".

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [🕐 Remember When Lists Could Sort By Any Key? 🔄](../../posts/gerardorenteria-blog/12961.md) — possibly related: both name Page 22 "Customer List"
- [All new goodies about AL Namespace in BC 2025 wave 2](../../videos/KmuTVkodRXM.md) — possibly related: both name Page 22 "Customer List"
- [Business Central v29: System Audit Fields Now Available in Analysis Mode](../../videos/H7R_m8Ue38g.md) — possibly related: both name Page 22 "Customer List"
- [Dynamics 365 Business Central: Convert Word (.docx) To PDF (.pdf) within BC (No control add-in and APIs)](../../posts/yzhums-com/63595.md) — possibly related: both name Page 22 "Customer List"
- [Dynamics 365 Business Central: How to hide/disable New, Edit (Edit List), and Delete actions on the page](../../posts/yzhums-com/56521.md) — possibly related: both name Page 22 "Customer List"
- [Dynamics 365 Business Central: How to quickly get User Experience/Experience Tier (Essential or Premium) in AL](../../posts/yzhums-com/67552.md) — possibly related: both name Page 22 "Customer List"
- [Dynamics 365 Business Central: How to quickly identify the first transaction date and the number of days since the last sale with a customer](../../posts/yzhums-com/72040.md) — possibly related: both name Page 22 "Customer List"
- [Dynamics 365 Business Central: How to substitute a page for another page via AL](../../posts/yzhums-com/61818.md) — possibly related: both name Page 22 "Customer List"
- [Dynamics 365 Business Central: How to use Page.SetSelectionFilter Method in temporary records](../../posts/yzhums-com/63922.md) — possibly related: both name Page 22 "Customer List"
- [Dynamics GP to Business Central – What does my migrated GP Historical Data look like in Business Central](../../posts/thedynamicsexplorer-com/36822.md) — possibly related: both name Page 22 "Customer List"

## Context

- Features: Profile information retrieval, Role identification, Role Center access, User personalization management

Source: Dynamics 365 Lab - Yun Zhu, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.
