Using Filters in Calculated Custom Licenses

Using Filters in Calculated Custom Licenses

Using Filters in Calculated Custom Licenses

Filters let you narrow a calculated custom license so it only counts the users, licenses, or subscription data that match the billing rule.

This is useful when one Microsoft tenant contains different departments, business units, domains, or excluded users.

Common filter use cases

  • Bill only users from one domain.
  • Bill users from one department or location.
  • Exclude disabled users from managed-user billing.
  • Count only licensed users.
  • Include or exclude users based on extension attributes.
  • Count users assigned to specific Microsoft license SKUs.

Supported filter areas

Filter areaExampleTypical use
DepartmentDepartment equals FinanceDepartment or cost-centre billing.
Location / office fieldsOffice equals SydneySite-based billing.
User typeUser type equals MemberExclude guests from managed-user billing.
Account enabledAccount enabled equals trueExclude disabled leavers.
DomainDomain equals customer.comSplit billing by brand, franchise, or business unit.
Assigned license SKUFriendly name equals Microsoft 365 Business PremiumBill users with a specific Microsoft license.
Extension attributes 1 to 15extensionAttribute1 equals ManagedUse customer-specific billing flags.

Domain filters

Domain filters are matched against the normalized domain from the user's UPN or email address.

  • alice@franchiseA.com matches franchiseA.com.
  • bob@franchiseB.com does not match franchiseA.com.

Extension attribute filters

Extension attributes are useful when normal Microsoft fields do not match the billing rule.

  • extensionAttribute1 = Managed
  • extensionAttribute2 = NoBackup
  • extensionAttribute3 = FranchiseA

Use extension attributes only when the customer or MSP has a reliable process for keeping those values accurate.

Filter design tips

  • Start with the simplest filter that matches the billing rule.
  • Avoid billing rules based on fields that are not maintained consistently.
  • Use clear names so users understand why the calculated count exists.
  • Check the calculated result before mapping it to a PSA billing item.
  • For complex rules, create one custom license per billing scenario.

Examples

Bill only users in one domain

Calculation: All active licensed users where domain equals clientbrand.com.

Use when: One tenant contains multiple legal entities or brands.

Bill only managed users

Calculation: All active licensed users where extensionAttribute1 equals Managed.

Use when: Not every Microsoft user in the tenant receives the same MSP service.

Exclude users from backup billing

Calculation: Licensed mailbox users excluding users where extensionAttribute2 equals NoBackup.

Use when: Some users should not be included in mailbox backup billing.

    • Related Articles

    • Custom License Billing and Calculated Custom Licenses

      Custom License Billing and Calculated Custom Licenses Sync 365 custom licenses let you create a billable quantity when the item you need to bill does not map cleanly to one Microsoft 365 license SKU. Use normal Microsoft license mapping for standard ...
    • Calculated Custom License Examples for MSP Billing

      Calculated Custom License Examples for MSP Billing Calculated custom licenses are best used when an MSP billing quantity needs service logic, filters, inclusions, exclusions, or overage calculations. Use a standard custom license for copying a ...
    • Filter license by Office/department/city/state/country/domainname/companyname/Entra ID Group/Custom Attributes

      A unique ability that Sync 365 provides, is to be able to filter your Office 365 licenses to split billing up for your clients. Use case 1: You have licenses that you add for your MSP to provide services and do not bill the client for. You can ...
    • License Mapping/Configuration Options

      License Mapping and Configuration Options This article explains the main options available when mapping a Microsoft 365 licence or subscription row to your PSA. Sync 365 can show licences in two ways: Licences view: shows a combined licence row. ...
    • Understanding the Company Info License page

      The Company info page is where you will see all Microsoft Licenses and custom licenses for an added company. This page explains each of the components License Overview The license overview list gives you key information about the licenses in a tenant ...