Dynamics 365 Business Central: How to get current Profile (Role) info (Profile ID, Display Name, Source, Role Center ID, etc.) via AL
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.

post Dynamics 365 Lab
"codeunit 9170 "Conf./Personalization Mgt."."
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.”
- table “All Profile”
- page 22 “Customer List”
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? 🔄 — possibly related: both name Page 22 “Customer List”
- All new goodies about AL Namespace in BC 2025 wave 2 — possibly related: both name Page 22 “Customer List”
- Business Central v29: System Audit Fields Now Available in Analysis Mode — 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) — 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 — 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 — 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 — possibly related: both name Page 22 “Customer List”
- Dynamics 365 Business Central: How to substitute a page for another page via AL — possibly related: both name Page 22 “Customer List”
- Dynamics 365 Business Central: How to use Page.SetSelectionFilter Method in temporary records — 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 — 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.