---
schema_version: "1"
id: 81e56b7fe31670285e4b207f6aa9ae1ab586a2e305d898311ce4f2e761e9ee93
title: UserPackageLicense
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_userpackagelicense.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_userpackagelicense.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9ea29e527c55e6cd80f1f55c828b107920610de0da6a44a7a32f6eedbaa5b4ae
description: Represents a license for an installed managed package, assigned to a specific user. This object is available in API version 31.0 and later.
---
# UserPackageLicense

Represents a license for an installed managed package, assigned to a specific user. This object is available in API version 31.0 and later.

## Supported Calls

create(), delete(), describeSObjects(), query(), retrieve() update()

## Fields

| Field Name | Details |
| --- | --- |
| IsRevoked | 
Type

boolean

Properties

Defaulted on create, Filter, Group, Sort, Update

Description

Reserved for internal use. This field is available in API version 58.0 and later.



 |
| LastCreatedByChangeId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

ID of the user access change record related to this managed package license assignment. This field is available only if user access policies are enabled. This field is available in API version 58.0 and later.

This field is a relationship field.

Relationship Name

LastCreatedByChange

Relationship Type

Lookup

Refers To

UserAccessChange



 |
| LastDeletedByChangeId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

ID of the user access change record related to this managed package license assignment being revoked. This field is available only if user access policies are enabled. This field is available in API version 58.0 and later.

This field is a relationship field.

Relationship Name

LastCreatedByChange

Relationship Type

Lookup

Refers To

UserAccessChange



 |
| PackageLicenseId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The 18-character Globally Unique ID (GUID) that identifies the package license

This is a relationship field.

Relationship Name

PackageLicense

Relationship Type

Lookup

Refers To

PackageLicense



 |
| UserId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The User ID of the user licensed to use this package



 |

## Usage

Use this object, in conjunction with PackageLicense, to provide users access to a managed package installed in your organization.