Codeunit 6922 "Expense Agent Entra App Mgt."
ExpenseAgent · Microsoft.ExpenseAgent
Across versions
- BC23-28not present
- BC29-30present
Neighbourhood 6 connected objects and pages
ExpenseAgent · Microsoft.ExpenseAgent · BC29-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Access | Internal |
| Permissions | tabledata “AAD Application” = rm, tabledata “Access Control” = rimd |
Procedures
EnableAadApplicationForCurrentCompany()(internal)DisableAadApplicationForCurrentCompany()(internal)IsCurrentUserExpenseAgent(): Boolean(internal)GetEnabledExpenseAgentUserId(): Guid(internal)GetAadAppId(): Text(internal)VerifyCanDisableAadApplicationForCurrentCompany()(internal)
Plus 17 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 152 “User Permissions” (3 calls:
HasSecurityPermission → HasUserPermissionSetAssigned,VerifyCurrentUserCanManageExpenseAgent → HasUserPermissionSetAssigned,VerifyCurrentUserCanManageExpenseAgent → IsSuper) - Codeunit 4317 “Agent System Permissions” (1 call:
VerifyCurrentUserCanManageExpenseAgent → CurrentUserHasCanManageAllAgentsPermission) - Codeunit 457 “Environment Information” (1 call:
IsCurrentUserExpenseAgent → IsSaaSInfrastructure)
Called by
- Codeunit 6993 “Expense Agent API Validation” (3 calls:
GetAadAppId → GetAadAppId,IsCurrentUserExpenseAgent → IsCurrentUserExpenseAgent,TryGetExpenseAgentUserId → GetEnabledExpenseAgentUserId) - Page 6991 “Expense Agent Setup Wizard” (3 calls:
ActivateAgent → EnableAadApplicationForCurrentCompany,DeactivateAgent → DisableAadApplicationForCurrentCompany,DeactivateAgent → VerifyCanDisableAadApplicationForCurrentCompany) - Codeunit 6941 “EA Http Client” (1 call:
TryGetAccessToken → GetAadAppId)
Recent changes
- 2026-09-18 #11290 [Bug 640454] Scope Expense Agent Entra permissions by company (main, BC30, fix, added)
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: "Expense Agent Entra App Mgt."), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.