---
id: object/codeunit/4500
type: object
title: Codeunit 4500 "Current User Connector"
summary: Codeunit 4500 "Current User Connector" in Email - Current User Connector (System.Email). 18 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - email - current user connector
versions:
  introduced: "29"
  last_changed: null
  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: 28db1a6cb4b61609e119507ad5b6bceb7e9839ae9fe9e93946ccf48ae8116d94
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Email%20-%20Current%20User%20Connector/app/src/CurrentUserConnector.Codeunit.al
    title: src/Apps/W1/Email - Current User Connector/app/src/CurrentUserConnector.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: 4500
name: Current User Connector
namespace: System.Email
app: Email - Current User Connector
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 19
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 3
  called_by: 1
  implements: 3
---

# Codeunit 4500 "Current User Connector"

> Codeunit 4500 "Current User Connector" in Email - Current User Connector (System.Email). 18 public procedures. Introduced in BC29, still in BC30.

Email - Current User Connector · System.Email · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Email%20-%20Current%20User%20Connector/app/src/CurrentUserConnector.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Access | Internal |
| Permissions | tabledata "Email - Outlook Account" = rimd |

## Procedures

- `GetEmailFolders(AccountId: Guid; var EmailFolders: Record "Email Folders" temporary)`
- `RetrieveEmails(AccountId: Guid; var EmailInbox: Record "Email Inbox"; var Filters: Record "Email Retrieval Filters" temporary)`
- `Reply(var EmailMessage: Codeunit "Email Message"; AccountId: Guid)`
- `MarkAsRead(AccountId: Guid; ExternalMessageId: Text)`
- `Send(EmailMessage: Codeunit "Email Message"; AccountId: Guid)`
- `RegisterAccount(var EmailAccount: Record "Email Account"): Boolean`
- `ShowAccountInformation(AccountId: Guid)`
- `GetAccounts(var EmailAccount: Record "Email Account")`
- `GetCurrentUserEmailAddress(): Text[250]` (internal)
- `DeleteAccount(AccountId: Guid): Boolean`
- `GetDescription(): Text[250]`
- `GetLogoAsBase64(): Text`
- `GetCurrentUsersAccountEmailAddress(): Text[250]`
- `GetCurrentUserAccountName(): Text[250]`
- `GetDefaultEmailRateLimit(): Integer`
- `GetEmailCategories(AccountId: Guid; var EmailCategories: Record "Email Categories" temporary)`
- `CreateEmailCategory(AccountId: Guid; CategoryDisplayName: Text; CategoryColor: Text): Text`
- `ApplyEmailCategory(AccountId: Guid; ExternalId: Text; Categories: List of [Text])`

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 4509 "Email - Outlook API Helper"](../codeunit/4509.md) (14 calls: `ApplyEmailCategory → ApplyEmailCategory`, `CreateEmailCategory → CreateEmailCategory`, `DeleteAccount → DeleteAccount`, …)
- [Codeunit 457 "Environment Information"](../codeunit/457.md) (1 call: `GetCurrentUserEmailAddress → IsSaaS`)
- [Page 4500 "Current User Email Account"](../page/4500.md) (1 call: `ShowAccountInformation → (object)`)

## Called by

- [Page 4500 "Current User Email Account"](../page/4500.md) (2 calls: `GetAccount → GetCurrentUserAccountName`, `GetAccount → GetCurrentUserEmailAddress`)

## Implements

- [Codeunit 8896 "Default Email Rate Limit"](../codeunit/8896.md)
- [Interface "Email Connector"](../interface/email-connector.md)
- [Interface "Email Connector v5"](../interface/email-connector-v5.md)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

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: "Current User Connector")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
