---
schema_version: "1"
id: 583102f0ca5fb8f3d3d6374cd8cf7c1a0a74b3c8a62c0ec2d2e11415cecef766
title: TenantSecurityLicense
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_tenantsecuritylicense.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_tenantsecuritylicense.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: e83cbfab941d511a1cc5076af8636c78c448d9be7602aba1625a233aa0cb5821
description: Stores license usage information within Security Center. This object is available in API version 59.0 and later.
---
# TenantSecurityLicense

Stores license usage information within Security Center. This object is available in API version 59.0 and later.

## Supported Calls

describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()

## Special Access Rules

This object is available only for Security Center subscribers. This object is read-only.

## Fields

| Field | Details |
| --- | --- |
| Action | 
Type

string

Properties

Filter, Group, idLookup, Nillable, Sort

Description

The type of change made to the license. Possible values are:

- ADDED
- REMOVED
- UPDATED





 |
| ActionDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp for when this change was made.



 |
| DetailIdentifier | 

Type

string

Properties

Filter, Group, Sort

Description

The identifier for the tenant security license detail record. This field is unique within your org.



 |
| ExpirationDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The date on which this license expires.



 |
| MetricIdentifier | 

Type

string

Properties

Filter, Group, Sort

Description

The ID of the corresponding TenantSecurityMonitorMetric.



 |
| MetricsType | 

Type

picklist

Properties

Filter, Group, Restricted picklist, Sort

Description

The type of license collected by this metric.



 |
| Name | 

Type

string

Properties

Filter, Group, idLookup, Sort

Description

The name of the license.



 |
| Status | 

Type

string

Properties

Filter, Group, idLookup, Nillable, Sort

Description

The status of the license.



 |
| Tenant | 

Type

string

Properties

Filter, Group, idLookup, Sort

Description

The ID of the tenant with this license.



 |
| TenantName | 

Type

string

Properties

Filter, Group, idLookup, Nillable, Sort

Description

The name of the tenant with this license.



 |
| TotalLicenses | 

Type

int

Properties

Filter, Group, idLookup, Nillable, Sort

Description

The total number of licenses.



 |
| UsedLicenses | 

Type

int

Properties

Filter, Group, idLookup, Nillable, Sort

Description

The number of used licenses.



 |
| UsedLicensesLastUpdated | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The date that the used licenses were last updated for this tenant.



 |

## Associated Objects

This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.

[TenantSecurityLicenseChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_change_event.htm "A ChangeEvent object is available for each object that supports Change Data Capture. You can subscribe to a stream of change events using Change Data Capture to receive data tied to record changes in Salesforce. Changes include record creation, updates to an existing record, deletion of a record, and undeletion of a record. A change event isn’t a Salesforce object—it doesn’t support CRUD operations or queries. It’s included in the object reference so you can discover which Salesforce objects support change events.")

Change events are available for the object.

[TenantSecurityLicenseFeed](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_feed.htm "StandardObjectNameFeed is the model for all feed objects associated with standard objects. These objects represent the posts and feed-tracked changes of a standard object.")

Feed tracking is available for the object.

[TenantSecurityLicenseHistory](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_history.htm "StandardObjectNameHistory is the model for all history objects associated with standard objects. These objects represent the history of changes to the values in the fields of a standard object.")

History is available for tracked fields of the object.

[TenantSecurityLicenseOwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_ownersharingrule.htm "StandardObjectNameOwnerSharingRule is the model for all owner sharing rule objects associated with standard objects. These objects represent a rule for sharing a standard object with users other than the owner.")

Sharing rules are available for the object.

[TenantSecurityLicenseShare](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_share.htm "StandardObjectNameShare is the model for all share objects associated with standard objects. These objects represent a sharing entry on the standard object.")

Sharing is available for the object.