D365 F&O: Auditing Security Hierarchy to Resolve License Escalations
At a glance
- 🔹 Applies to: Dynamics 365 Finance, Dynamics 365 Supply Chain Management, Dynamics 365 Commerce (App versions 10.0.x).
- 🔹 Prerequisites: System Administrator role in D365 F&O, Global Admin or License Admin rights in Microsoft 365 Admin Center.
- 🔹 Effort level: Medium (4–8 hours for auditing custom security models and restructuring high-tier duties).
- 🔹 Outcome: Clean alignment between user security roles and actual subscription license SKUs, preventing unnecessary Enterprise tier cost overruns.
How it works
In Dynamics 365 Finance and Operations, user subscription requirements are determined by the security roles assigned to active users. Every securable object—such as a Display Menu Item, Action Menu Item, or Output Menu Item—is tagged with metadata indicating the required license type for Read access versus Maintain (Create, Update, Delete) access. When developers build security roles using the hierarchy of subroles, duties, privileges, and direct entry points, the highest required license tier in that chain automatically defines the user's licensing SKU requirement.
When custom roles bundle broad maintain permissions into basic operational duties, users who only perform simple entry tasks inherit high-cost licensing requirements. For example, granting maintain access to a customer management form forces D365 F&O to classify the user under an Operations SKU (such as Dynamics 365 Finance or Supply Chain Management Base) instead of an Activity or Team Member license. When provisioning licenses, administrators must also adhere to Microsoft base-then-attach sequencing rules within the Microsoft 365 admin center to ensure legal access rights match internal application security settings.
| Access Level | Typical License SKU | Sample Securable Object Scope | Licensing Escalation Trigger |
|---|---|---|---|
| Read Only | Team Member / Activity | Inquiry forms, dashboard viewing, report generation | Changing permission level from Read to Update or Create. |
| Operational Maintain | Activity | Purchase requisition creation, time tracking, simple inventory logs | Adding full record deletion or master data setup capabilities. |
| Full Business Process | Operations (Finance / SCM Base) | General ledger posting, sales order creation, vendor master update | Including master entity maintain menu items in broad daily duties. |
Step-by-step solution
-
Audit SKU requirements in the User Security Governance Workspace
Open the User security governance workspace (or use the role licensing tools). Analyze custom security roles that trigger high-level Operations licensing requirements across your tenant. Review the mapping of securable objects to identify specific privileges pushing users into high-cost SKUs.
-
Inspect individual license requirements in the Assign Roles Dialog
Go to System administration > Security > Users, select an impacted user, and click Assign roles. Inspect the target role's license requirement column to determine whether the custom role requires a full Base SKU (Dynamics 365 Finance or Supply Chain Management) or an Activity/Team Member tier.
-
Audit privilege permissions in Security Configuration
Open System administration > Security > Security configuration. Search for the privileges associated with the escalating role. Review entry point grant levels—verify if menu items are set to
Update,Create, orDeletewhen the business user only requiresReadaccess. -
Decouple high-cost maintain entry points
Split multi-purpose duties into granular, task-specific duties. Remove maintain entry points for master entities from everyday operational duties. Create read-only privileges for reporting users and assign higher maintain privileges only to dedicated lead or administrator roles.
-
Configure proper base-then-attach license sequencing
Log in to the Microsoft 365 admin center as a Global Admin or License Admin. Go to Users > Active users (or Teams & groups > Active teams & groups for group licensing). Assign the primary Base license (e.g., Dynamics 365 Finance) first, followed by the secondary Attach license (e.g., Dynamics 365 Supply Chain Management Attach) if the user accesses multiple operational domains.
-
Run license requirement validation and propagate updates
Return to D365 F&O and execute the user licensing sync. Confirm that users assigned to the modified custom security roles now reflect lower licensing requirements (e.g., Activity or Team Member) in application license reports without losing necessary business capabilities.
Worked example
Contoso Enterprise Solutions implemented a custom security role named Contoso Receiving Clerk for 120 warehouse personnel. The initial role setup included the standard duty PurchOrderMaintain to allow clerks to update delivery tracking details on purchase order lines. However, because this duty contained maintain permissions on the core purchase order header entry point (PurchTable), D365 F&O flagged all 120 clerks as requiring full Dynamics 365 Supply Chain Management Base licenses.
To eliminate this licensing escalation, the solution architect audited the custom role and created a dedicated privilege that restricted access strictly to receiving updates, while removing maintain permissions from the general order header form. The architect replaced the broad duty with two specialized duties: a read-only inquiry duty for purchase order headers and an operational maintain duty limited to arrival journals.
internal final class SecurityLicenseAuditService
{
public static void main(Args _args)
{
// Example X++ audit logic for identifying privileges triggering Operations SKUs
SysSecurityLicenseRequirement licenseReq;
SecurityPrivilege privilege;
while select privilege
join licenseReq
where licenseReq.PrivilegeName == privilege.Name
&& licenseReq.UserLicenseType == UserLicenseType::Operations
{
Info(strFmt("Privilege %1 drives Operations SKU requirement.", privilege.Name));
}
}
}
After restructuring the custom role, the licensing requirement for the receiving clerks dropped from SCM Base to Activity License. For 120 users, this modification significantly reduced operational software licensing spend while maintaining compliance and appropriate data access controls.
Automation and AI opportunities
Security and licensing compliance management can be extended using Microsoft Power Platform and Copilot capabilities. Solution architects can construct Power Automate flows that monitor user role assignments inside D365 F&O via Dataverse or OData entities. When a security administrator assigns a role that elevates a user's required license tier from Team Member to Operations, the flow automatically notifies the IT procurement team and logs an approval ticket.
Furthermore, using the dynamic Dynamics 365 ERP Model Context Protocol (MCP) server (available in version 10.0.47, 10.0.46 PQU-2, or 10.0.45 PQU-7 on Tier 2+ environments), custom Copilot agents can interact with application metadata and data entities. Enterprise architects can build AI agents that periodically analyze active security hierarchies, identify redundant high-tier privileges, and generate remediation proposals for security teams directly inside Microsoft Copilot Studio.
Common pitfalls and troubleshooting
-
Symptom: User license requirements remain at Operations level after removing broad privileges from a role.
Cause: The user retains elevated access through a secondary assigned subrole or direct security assignment.
Fix: Audit the complete subrole hierarchy under System administration > Security > Security configuration and verify all child roles and duties assigned to the user. -
Symptom: Microsoft 365 admin center fails to save an Attach license assignment for a user.
Cause: Licensing sequencing rules were violated by assigning an Attach SKU prior to assigning a qualifying Base SKU.
Fix: Assign the qualifying Base license (e.g., Dynamics 365 Finance) first, save changes, and then toggle the Attach license. -
Symptom: User cannot sign in to D365 F&O despite having an active M365 license assigned.
Cause: License propagation delay (up to one hour) or missing basic security role assignment inside Dynamics 365.
Fix: Verify that the user is assigned at least one active security role in D365 F&O and allow up to one hour for M365 license synchronization. -
Symptom: Custom read-only privilege still requires an Operations license SKU.
Cause: The underlying Display Menu Item has an explicit high-levelMaintainUserLicenseorViewUserLicenseproperty set at the AOT metadata level.
Fix: Inspect the menu item properties in Visual Studio and adjust privilege permissions or split the securable entry point into an inquiry-specific object. -
Symptom: M365 group-based licensing is assigned, but users lack entry permissions in D365 F&O.
Cause: Group licensing in M365 Admin Center handles legal entitlement but does not automatically grant functional security roles within D365 F&O.
Fix: Configure Entra ID security group integration within D365 F&O user management to automatically map Entra groups to D365 security roles.
Best-practice checklist
- ✅ Audit custom security roles in the User Security Governance workspace prior to major user rollouts.
- ✅ Decouple Maintain privileges from master record inquiry forms to prevent unwanted license tier escalation.
- ✅ Follow strict base-then-attach sequencing when assigning subscription licenses in the Microsoft 365 admin center.
- ✅ Use granular, task-specific duties rather than broad administrative duties when building job-tailored roles.
- ✅ Schedule periodic licensing compliance reviews using standard D365 F&O user license reports.
- ✅ Verify security changes in a sandbox environment before applying security role exports to production.
- ✅ Automate alerts for high-tier role assignments using Power Automate and Dataverse business events.
FAQ
Does assigning a license in M365 Admin Center automatically grant system access in D365 F&O?
No. Assigning a license in the Microsoft 365 admin center grants legal access rights to the service but does not assign functional permissions inside Dynamics 365. Administrators must explicitly assign D365 security roles under System administration > Security > Users.
How do attach licenses work with custom security roles that span multiple applications?
When a custom role includes privileges for multiple applications (e.g., Finance and SCM), the user requires a qualifying Base license for the primary application and an Attach license for the secondary application, assigned in base-then-attach sequence in M365 Admin Center.
How long does it take for a newly assigned M365 license to take effect in D365 F&O?
There is typically a short propagation delay of up to one hour after assigning or updating licenses in the Microsoft 365 admin center before the changes take full effect for user sign-in.
Key takeaways
- 🎯 D365 F&O user licensing requirements are driven by the highest permission level across all entry points assigned to a role.
- 🎯 Auditing custom roles and decoupling high-cost maintain entry points prevents accidental escalation to full Enterprise Base SKUs.
- 🎯 Subscription licensing requires strict base-then-attach sequencing in M365 Admin Center alongside proper security role assignment inside D365 F&O.
Further reading
- Dynamics 365 Finance and Operations: When Security Roles Become a Licensing Problem
- Stay compliant with user licensing requirements - Finance & Operations
- What is Microsoft Dataverse? - Power Apps
- Use Model Context Protocol for finance and operations apps
Note: written with AI assistance. Always validate in a sandbox environment before applying to production.
Comments
Post a Comment