[en] Microsoft 365 data tables

[en] This section lists all relational and event-sourced data tables in the Microsoft 365 data model and schema changes introduced in different versions.

[en] Schema changes

[en] The table shows the schema changes in Snow License Manager version 9.6.2 and 9.12, as compared to version 9.6.1.

[en] Table name

[en] Status

[en] [o365].[Portal]

[en] Added in version 9.6.2

[en] [o365].[SubscriptionPlan]

[en] Added in version 9.6.2

[en] [o365].[User]

[en] Added in version 9.6.2

[en] [ew].[TenantSource]

[en] Added in version 9.6.2

[en] [ew].[Event]

[en] Added in version 9.6.2

[en] [o365].[Projections]

[en] Removed in version 9.6.2

[en] [o365].[ProjectionTracking]

[en] Removed in version 9.6.2

[en] [o365].[ReadModelActivityPerService]

[en] Renamed in version 9.12

[en] [o365].[ReadModelMonthlyServiceActivityBreakdown]

[en] Added in version 9.12

[en] [o365].[ReadModelMonthlySubscriptionPlanActivityBreakdown]

[en] Added in version 9.12

[en] [o365].[ReadModelMonthlyUserBreakdown]

[en] Added in version 9.12

[en] [o365].[Country]

[en] Added in version 9.12

[en] [o365].[CountryList]

[en] Added in version 9.12

[en] [o365].[CountryMap]

[en] Added in version 9.12

[en] [o365].[Department]

[en] Added in version 9.12

[en] [o365].[UserFilterConfiguration]

[en] Added in version 9.12

[en] O365.PlansWithMonitoring

[en] The table O365.PlansWithMonitoring contains Microsoft 365 subscription plans that have been monitored by Snow License Manager Microsoft 365 module. Both paid and unpaid subscriptions are included.

[en] Column name

[en] Description

[en] PlanID

[en] The identity of the subscription plan.

[en] AccountSKU

[en] AccountSKU of the subscription plan.

[en] Metric

[en] Metric type (PerUser, Credit, Runs, or Storage) of the subscription plan.

[en] FriendlyName

[en] The friendly name of the subscription plan.

[en] IsPaid

[en] Paid and unpaid subscription plan.

[en] O365.RelevantApplications

[en] The table O365.RelevantApplications contains the Microsoft 365 applications that Snow License Manager 365 module measures and evaluates user activities for. These applications are various versions of the following Microsoft 365 products: Teams, OneDrive, and SharePoint.

[en] Column name

[en] Description

[en] ApplicationId

[en] The identity of the application.

[en] The same guid comes from dbo.tblApplication table.

[en] ApplicationName

[en] The friendly name of the application.

[en] AccountSKU

[en] AccountSKU of the subscription plan.

[en] ServiceId

[en] The identity of the service/product.

[en] ServiceName

[en] The friendly name of the service/product.

[en] ServiceType

[en] Id of the service.

[en] The number can be one of the following:

  1. [en] Microsoft Exchange

  2. [en] Microsoft Skype for Business

  3. [en] Microsoft Project

  4. [en] Microsoft 365 Apps for Enterprise

  5. [en] Microsoft Visio

  6. [en] Microsoft OneDrive

  7. [en] Microsoft SharePoint

  8. [en] Microsoft Yammer

  9. [en] Microsoft Teams

[en] O365.MigrationProgress

[en] The table O365.MigrationProgress contains the information related to the event migration from EventStore database to MSSQL database.

[en] The migration happens on Snow License Manager 9.6.2 from EventStoredb to SnowLicenseManager’s ew schema: TenantSource and Event tables.

[en] Column name

[en] Description

[en] Data

[en] Not completed migration data.

[en] If the Microsoft 365 service shuts down during migration, the process will start from where it stopped in the next run.

[en] SequenceNumber

[en] The sequence number of the latest migrated event.

[en] The sequence number is -1 if there is no event to migrate.

[en] IsCompleted

[en] The status of the migration.

[en] Saved

[en] The date when the migration was completed and all events was successfully saved to ew.Event table.

[en] O365.Import

[en] The table O365.Import contains queued aggregations from Microsoft 365 Integration Connector.

[en] Column name

[en] Description

[en] TenantID

[en] The identity of the tenant.

[en] ImportID

[en] The identity of the import.

[en] AddedDate

[en] The saved date of the aggregation.

[en] AccountPayload

[en] Account payload.

[en] Portal data.

[en] AccountSkusPayload

[en] Account SKU payload.

[en] Subscription plans data.

[en] UsersPayload

[en] User payload.

[en] Portal user data.

[en] Processed

[en] The status of the import.

[en] O365.Portal

[en] The table O365.Portal contains all Microsoft 365 portals of the tenant.

[en] Column name

[en] Description

[en] TenantId

[en] The identity of the tenant.

[en] PortalId

[en] The identity of the portal.

[en] AccountName

[en] Account holder name.

[en] Company

[en] The company name of the tenant.

[en] Vendor

[en] Vendor, for example Microsoft.

[en] ServiceName

[en] Service name, for example Microsoft 365.

[en] LastImportDate

[en] Last aggregation date.

[en] O365.SubscriptionPlan

[en] The table O365.SubscriptionPlan contains the portal subscription plans of the tenant.

[en] Column name

[en] Description

[en] TenantId

[en] The identity of the tenant.

[en] PortalId

[en] The identity of the portal.

[en] Name

[en] The name of the subscription plan (AccountSKU).

[en] ActiveUnits

[en] Active units (purchased licenses).

[en] WarningUnits

[en] Warning units (licenses about to expire).

[en] ConsumedUnits

[en] Consumed units.

[en] IsPaid

[en] Identifies if the subscription plan is free of charge or not.

[en] Licenses

[en] The licences included in the subscription plan.

[en] The column contains historical data.

[en] Prices

[en] The price change of the subscription plan.

[en] The column contains historical data.

[en] Services

[en] JSON data

[
  {
    "Name": "EXCHANGE_S_FOUNDATION",
    "Status": 1,
    "Id": "113feb6c-3fe4-4440-bddc-54d774bf0318",
    "Type": "exchange",
    "Consumer": 2
  }
]

[en] O365.User

[en] The table O365.User contains the portal users of the tenant.

[en] Column name

[en] Description

[en] TenantId

[en] The identity of the tenant.

[en] PortalId

[en] The identity of the portal.

[en] UserPrincipalName

[en] The user’s principal name (email address from Microsoft 365 portal).

[en] Data

[en] JSON data, including:

  • [en] OnlineOnly

  • [en] LicenseManagerId

  • [en] ConsolidationRule

[en] Licenses

[en] The user's licenses.

[en] Activities

[en] The user's activities.

[en] Country

[en] The user’s country.

[en] Department

[en] The user’s department.

[en] OrgChecksum

[en] The user’s organization checksum.

[en] OrgId

[en] Id of the organization.

[en] OrgName

[en] Type of the organization.

[en] SlmUserId

[en] The user’s Snow LicenseManager identity.

[en] Organization

[en] Name of the organization.

[en] OnlineOnly

[en] Is inventoried user.

[en] Id

[en] The identity of the user.

[en] ImmutableData

[en] JSON data.

[en] All user data comes from Microsoft 365 portal.

[en] O365.ReadModelMonthlySubscriptionPlanBreakdown

[en] The table O365.ReadModelMonthlySubscriptionPlanBreakdown table contains the number of active, warning, assigned and total license information of each cost period’s subscription plans. The table contains historical data.

[en] Column name

[en] Description

[en] TenantId

[en] The identity of the tenant.

[en] PortalId

[en] The identity of the portal.

[en] SubscriptionPlanName

[en] Name of subscription plan (AccountSKU).

[en] Year

[en] Year of breakdown.

[en] Month

[en] Month of breakdown.

[en] AccountHolderName

[en] The account holder's name.

[en] Data

[en] JSON data.

Exemple 34.
{"SubscriptionPlanName":"EMS",
"AccountHolderName":"snowsoft",
"SubscriptionPlanFriendlyName":"Microsoft Enterprise Mobility + Security E3",
"NumberOfTotalLicenses":781,
"NumberOfAssignedLicenses":745,
"NumberOfUnassignedLicenses":36,
"NumberOfWarningLicenses":0,
"NumberOfActiveLicenses":781,
"IsPaid":true,
"IsRemoved":false} 


[en] O365.ReadModelCost

[en] The table O365.ReadModelCost contains the cost information for the subscription plans. The table contains historical data.

[en] Column name

[en] Description

[en] TenantId

[en] The identity of the tenant.

[en] PortalId

[en] The identity of the portal.

[en] ValidFrom

[en] The date from when the price change is valid from.

[en] SubscriptionPlanName

[en] Name of subscription plan (AccountSKU).

[en] Price

[en] The price for the subscription plan.

[en] Currency

[en] Currency for the price.

Note

[en] Microsoft 365 does not support multiple currencies.

[en] AccountHolderName

[en] The account holder's name.

[en] O365.ReadModelCurrentPrices

[en] The table O365.ReadModelCurrentPrices contains the current prices for the subscription plans.

[en] Column name

[en] Description

[en] TenantId

[en] The identity of the tenant.

[en] PortalId

[en] The identity of the portal.

[en] AccountSku

[en] Name of subscription plan (AccountSKU).

[en] Price

[en] The price for the subscription plan.

[en] Currency

[en] Currency for the price.

Note

[en] Microsoft 365 does not support multiple currencies

[en] AccountHolderName

[en] The account holder's name.

[en] O365.ReadModelActivityPerService

[en] The table O365.ReadModelActivityPerService contains user activity information that comes from Snow License Manager per service type (Teams, OneDrive, SharePoint etc.).

[en] Column name

[en] Description

[en] TenantId

[en] The identity of the tenant.

[en] PortalId

[en] The identity of the portal.

[en] SlmId

[en] The user’s Snow License Manager identity.

[en] UserPrincipalName

[en] The user’s principal name (email address from Microsoft 365 portal).

[en] LastActivityStatus

[en] Last activity status. The status can be one of the following:

  • [en] Unknown = 0

  • [en] WithinAWeek = 1

  • [en] WithinAMonth = 2

  • [en] WithinThreeMonths = 3

  • [en] WithinSixMonths = 4

  • [en] WithinOneYear = 5

  • [en] MoreThanAYearAgo = 6

[en] AccountHolderName

[en] The account holder's name.

[en] ServiceType

[en] Id of the service.

[en] The number can be one of the following:

  1. [en] Microsoft Exchange

  2. [en] Microsoft Skype for Business

  3. [en] Microsoft Project

  4. [en] Microsoft 365 Apps for Enterprise

  5. [en] Microsoft Visio

  6. [en] Microsoft OneDrive

  7. [en] Microsoft SharePoint

  8. [en] Microsoft Yammer

  9. [en] Microsoft Teams

[en] UserActivitySource

[en] Portal = 0

[en] Inventory = 1

[en] O365.ReadModelUsersPerSubscriptionPlan

[en] The table O365.ReadModelUsersPerSubscriptionPlan contains a list of subscription plans that are assigned to a Microsoft 365 user and the user's last activity information.

[en] Column name

[en] Description

[en] TenantId

[en] The identity of the tenant.

[en] PortalId

[en] The identity of the portal.

[en] AccountSKU

[en] The name of the subscription plan (AccountSKU).

[en] UserPrincipalName

[en] The user’s principal name (email address from Microsoft 365 portal).

[en] AccountHolderName

[en] The account holder's name.

[en] SubscriptionPlanName

[en] The friendly name of the subscription plan.

[en] UserName

[en] The user name in Snow License Manager.

[en] DisplayName

[en] The user’s display name. The display name is used in Microsoft 365 portal.

[en] LastActivityStatus

[en] The user’s last activity status. The status can be one of the following:

  • [en] Unknown = 0

  • [en] WithinAWeek = 1

  • [en] WithinAMonth = 2

  • [en] WithinThreeMonths = 3

  • [en] WithinSixMonths = 4

  • [en] WithinOneYear = 5

  • [en] MoreThanAYearAgo = 6

[en] LastExchangeActivityStatus

[en] The last activity status for Exchange.

[en] LastSkypeActivityStatus

[en] The last activity status for Skype.

[en] LastProjectActivityStatus

[en] The last activity status for Project.

[en] LastVisioActivityStatus

[en] The last activity status for Visio.

[en] LicenseManagerId

[en] The user’s Snow License Manager identity.

[en] CreatedDate

[en] The date when the user was created on Microsoft 365 portal.

[en] SyncDate

[en] The date when the user’s Active Directory last synchronized.

[en] The date is equivalent to LastDirSyncTime in Snow Integration Manager.

[en] LastOnedriveActivityStatus

[en] The last activity status for OneDrive.

[en] LastSharepointActivityStatus

[en] The last activity status for SharePoint.

[en] LastTeamsActivityStatus

[en] The last activity status for Teams.

[en] LastYammerActivityStatus

[en] The last activity status for Yammer.

[en] LastDynamics365ActivityStatus

[en] The last activity status for Dynamics365.

[en] LastPowerBIActivityStatus

[en] The last activity status for PowerBI.

[en] LastEnterpriseActivityStatus

[en] The last activity status for Enterprise.

[en] O365.ReadModelOverview

[en] The table O365.ReadModelOverview contains the overview of each cost period: assigned plans, total plans, total users, and last import date. The table contains historical data.

[en] Column name

[en] Description

[en] TenantId

[en] The identity of the tenant.

[en] PortalId

[en] The identity of the portal.

[en] TotalUsers

[en] The total number of portal users, that is, the total number of users who have been assigned at least one subscription plan.

[en] TotalAssignedSubscriptions

[en] The total assigned subscription plans (consumed units).

[en] TotalSubscriptions

[en] The total number of assigned and unassigned subscription plans. (Sum of Active and Warning units)

[en] AccountHolderName

[en] The account holder's name.

[en] LastUpdated

[en] The last import date.

[en] O365.ReadModelOverviewSubscriptionPlan

[en] The table O365.ReadModelOverviewSubscriptionPlan contains the current state of subscription plan activities.

[en] Column name

[en] Description

[en] TenantId

[en] The identity of the tenant.

[en] PortalId

[en] The identity of the portal.

[en] SubscriptionPlanName

[en] The name of the subscription plan (AccountSKU).

[en] FriendlyName

[en] The friendly name of the subscription plan.

[en] TotalUsers

[en] The total users of the subscription plan.

[en] Activity

[en] JSON string of user count per activity type.

Exemple 35.
[{"Status":0,"TotalCount":0},
{"Status":1,"TotalCount":696},
{"Status":2,"TotalCount":150},
{"Status":3,"TotalCount":103},
{"Status":4,"TotalCount":65},
{"Status":5,"TotalCount":108},
{"Status":6,"TotalCount":63}] 


[en] IsPaid

[en] Identifies if the subscription plan is free of charge or not.

[en] O365.ReadModelOverviewUsersUserHistory

[en] The table O365.ReadModelOverviewUsersUserHistory contains the total number of users per cost period. The table contains historical data.

[en] Column name

[en] Description

[en] TenantId

[en] The identity of the tenant.

[en] PortalId

[en] The identity of the portal.

[en] Month

[en] The month for the cost period. The column contains historical data.

[en] TotalUsers

[en] The total users that have at least one subscription plan assigned to them.

[en] O365.ReadModelUserLinkingSuggestion

[en] The table O365.ReadModelUserLinkingSuggestion contains the list of users that haven't been linked to a Snow License Manager user and the list of their potential Snow License Manager user matchings.

[en] Column name

[en] Description

[en] UserEmail

[en] The user’s email address

[en] UserPrincipalName

[en] The user’s principal name (email address from Microsoft 365 portal).

[en] TenantId

[en] The identity of the tenant.

[en] FirstName

[en] The user’s first name.

[en] LastName

[en] The user’s last name.

[en] SuggestedSlmUsers

[en] Suggested Snow License Manager users. The column contains Snow License Manager data (from RsCloudUserConsolidation view) JSON.

Exemple 36.
[{"LicenseManagerId":126,
"Username":"EUSE\\niclinsrv",
"Name":"Nicklas Lindell",
"Organization":"",
"Email":null (SLM email)}]


[en] PortalId

[en] The identity of the portal.

[en] O365.ReportSubscriptionPlanCost

[en] The table O365.ReportSubscriptionPlanCost contains the data from the report Microsoft 365 subscription plan cost.

[en] Column name

[en] Description

[en] TenantId

[en] The identity of the tenant.

[en] PortalId

[en] The identity of the portal.

[en] AccountHolderName

[en] The account holder's name.

[en] AccountSku

[en] The AccountSKU of the subscription plan.

[en] SubscriptionName

[en] The friendly name of the subscription plan.

[en] AvailableLicenses

[en] The number of available licences.

[en] Available licenses = Total licenses* – Consumed units

[en] *Total licenses = Active units + warning units

[en] AssignedLicenses

[en] The number of assigned licenses (consumed units).

[en] MonthlyCostPerUser

[en] The current monthly cost per user.

[en] MonthlyCostAvailableLicenses

[en] The current monthly cost of all available licenses.

[en] MonthlyCostAssignedLicenses

[en] The current monthly cost of all assigned licenses.

[en] TotalCostPerMonth

[en] The total cost of available and assigned licenses per month.

[en] AccumulatedTotalCost

[en] The accumulated total cost for the last 12 months.

[en] Currency

[en] Currency

[en] O365.ReportUnlinkedUser

[en] The table O365.ReportUnlinkedUser contains the data from the report Microsoft 365 unlinked users.

[en] Column name

[en] Description

[en] TenantId

[en] The identity of the tenant.

[en] PortalId

[en] The identity of the portal.

[en] FullName

[en] The user’s full name.

[en] UserCreatedDate

[en] The date when the user was created on Microsoft 365 portal.

[en] SubscriptionPlan

[en] The user’s assigned subscription plans. Use a comma to separate the subscriptions.

[en] UserPrincipalName

[en] The user’s principal name (email address from Microsoft 365 portal).

[en] O365.UserApplicationDoubleLicensing

[en] The table O365. UserApplicationDoubleLicensing contains double licensed application.

[en] Column name

[en] Description

[en] ApplicationId

[en] The identity of the application.

[en] SlmId

[en] The user’s Snow License Manager identity.

[en] LicenseId

[en] The license identity of the application. (UserLicenseTracking)

[en] PlanId

[en] The identity of the subscription plan.

[en] TenantId

[en] The identity of the tenant.

[en] OrgChecksum

[en] The user’s organization checksum.

[en] O365.AutomationQueue

[en] The table O365.AutomationQueue contains the Automation Queue from Automation Platform.

[en] Column name

[en] Description

[en] RequestId

[en] The identity of the request.

[en] AccountHolderName

[en] The account holder's name.

[en] UserPrincipalName

[en] The user’s principal name (email address from Microsoft 365 portal).

[en] ObjectId

[en] The identity of the user’s object.

[en] AccountSKU

[en] AccountSKU of the subscription plan.

[en] StatusCode

[en] The status code is be one of the following:

  • [en] New = 0

  • [en] Received = 1

  • [en] Invoked = 2

  • [en] Completed = 3

  • [en] Failed = 4

[en] StatusMessage

[en] Status message.

[en] If failed, an error message is shown. The field is empty by default.

[en] RequestType

[en] The request type is one of the following:

  • [en] RemovePlan = 1

  • [en] AddPlan = 2

[en] O365.AutomationStatus

[en] The table O365.AutomationStatus contains the Automation Status from Automation Platform.

[en] Column name

[en] Description

[en] AccountHolderName

[en] The account holder's name.

[en] LastRequestDate

[en] The date for the last automation request.

[en] O365.Country

[en] The table O365.Country contains the list of countries that portal users belong to.

[en] Column name

[en] Description

[en] TenantId

[en] The identity of the tenant.

[en] PortalId

[en] The identity of the portal.

[en] CountryName

[en] The country names.

[en] CountryCodeA2

[en] The country international code.

[en] O365.CountryList

[en] The table O365.CountryList contains a static list of all countries.

[en] Column name

[en] Description

[en] CountryName

[en] The country names.

[en] CountryCodeA2

[en] The country international code.

[en] O365.CountryMap

[en] The table O365.CountryMap contains a map between country names from microsoft api and international code.

[en] Column name

[en] Description

[en] CountryName

[en] The country names.

[en] CountryCodeA2

[en] The country international code.

[en] O365.Department

[en] The table O365.Department contains the list of departments that portal users belong to.

[en] Column name

[en] Description

[en] TenantId

[en] The identity of the tenant.

[en] PortalId

[en] The identity of the portal.

[en] DepartmentId

[en] The identity of the department in a given portal.

[en] DepartmentName

[en] Department name.

[en] O365.ReadModelMonthlyServiceActivityBreakdown

[en] The table O365.ReadModelMonthlyServiceActivityBreakdown contains number of active, unlinked and total number of users for each cost period’s service type. The table contains historical data.

[en] Column name

[en] Description

[en] TenantId

[en] The identity of the tenant.

[en] PortalId

[en] The identity of the portal.

[en] ServiceType

[en] Id of the service.

[en] The number can be one of the following:

  1. [en] Microsoft Exchange

  2. [en] Microsoft Skype for Business

  3. [en] Microsoft Project

  4. [en] Microsoft 365 Apps for Enterprise

  5. [en] Microsoft Visio

  6. [en] Microsoft OneDrive

  7. [en] Microsoft SharePoint

  8. [en] Microsoft Yammer

  9. [en] Microsoft Teams

[en] Month

[en] The month for the cost period. The column contains historical data.

[en] Year

[en] The year for the cost period. The column contains historical data.

[en] TotalUsers

[en] The total users that have at least one subscription plan assigned to them.

[en] ActiveUsers

[en] The total users that have at least one subscription plan assigned to them and are active.

[en] UnlinkedUsers

[en] The total unlinked users.

[en] O365.ReadModelMonthlySubscriptionPlanActivityBreakdown

[en] The table O365.ReadModelMonthlySubscriptionPlanActivityBreakdown contains total number of users and user activity information of each cost period’s subscription plans. The table contains historical data.

[en] Column name

[en] Description

[en] TenantId

[en] The identity of the tenant.

[en] PortalId

[en] The identity of the portal.

[en] SubscriptionPlanName

[en] Account SKU of the subscription plan.

[en] Month

[en] The month for the cost period. The column contains historical data.

[en] Year

[en] The year for the cost period. The column contains historical data.

[en] TotalUsers

[en] The total users that have at least one subscription plan assigned to them.

[en] Activity

[en] JSON string of user count per activity type.

Exemple 37.
[{"Status":0,"TotalCount":0},
{"Status":1,"TotalCount":696},
{"Status":2,"TotalCount":150},
{"Status":3,"TotalCount":103},
{"Status":4,"TotalCount":65},
{"Status":5,"TotalCount":108},
{"Status":6,"TotalCount":63}] 


[en] IsPaid

[en] Identifies if the subscription plan is free of charge or not.

[en] UnlinkedUsers

[en] The total unlinked users.

[en] O365.ReadModelMonthlyUserBreakdown

[en] The table O365.ReadModelMonthlyUserBreakdown contains the unlinked, active, total number of users per cost period. The table contains historical data.

[en] Column name

[en] Description

[en] TenantId

[en] The identity of the tenant.

[en] PortalId

[en] The identity of the portal.

[en] Month

[en] The month for the cost period. The column contains historical data.

[en] Year

[en] The year for the cost period. The column contains historical data.

[en] TotalUsers

[en] The total users in the portal.

[en] UnlinkedUsers

[en] The total unlinked users.

[en] AssignedUsers

[en] The total users that have at least one subscription plan assigned to them.

[en] AssignedActiveUsers

[en] The total users that have at least one subscription plan assigned to them and are active.

[en] O365.UserFilterConfiguration

[en] The table O365.UserFilterConfiguration contains filters configuration per user.

[en] Column name

[en] Description

[en] FilterId

[en] The identity of the filter.

[en] TenantId

[en] The identity of the tenant.

[en] PortalId

[en] The identity of the portal.

[en] UserId

[en] The user’s Snow License Manager identity.

[en] IsDefault

[en] Is default filter.

[en] FilterName

[en] Filter name.

[en] Country

[en] The country names in filter.

[en] Department

[en] The department names in filter.

[en] CreatedById

[en] The user’s Snow License Manager identity.

[en] CreatedDate

[en] Filter creation date.

[en] O365.MigrationHistoricalActivitiesProgress

[en] The table O365.MigrationHistoricalActivitiesProgress contains user activtity migration per portal.

[en] Column name

[en] Description

[en] TenantId

[en] The identity of the tenant.

[en] PortalId

[en] The identity of the portal.

[en] CorrelationId

[en] Migration process identifier.

[en] Year

[en] Year of data period.

[en] Month

[en] Month of data period.

[en] PageNumber

[en] Number of last processed pages.

[en] SequenceNumber

[en] Number of last processed sequence number.

[en] IsCompleted

[en] Status of import process.

[en] Saved

[en] Status time stamp.