function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Aakar MehraAakar Mehra 

User License Expiry Date

I need to know if there is  any way i can access user license expiration date through query or with some api?
MKRMKR
Hi,

If you are talking about package license expiration, try the following:
 
SELECT PackageLicense.ExpirationDate, PackageLicense.NamespacePrefix, UserId FROM UserPackageLicense WHERE UserId = '005...'
UserPackageLicense contains the linkage between user and package licence. The PackageLicense contains the expiration date.

Regards,
MKR