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
Ikram Momin 16Ikram Momin 16 

INVALID_TYPE : sObject type UserPackageLicense is not supported

Hi

While firing query : 

SELECT Id, PackageLicenseId, UserId FROM UserPackageLicense

Getting exception : INVALID_TYPE : sObject type UserPackageLicense is not supported

any help would be appreciated

CharuDuttCharuDutt
Hi Ikram Momin
Your Query Is Working In My Org As You Can See in Image Down Below
User-added image

May Be You Don't Have Access Or Permission To Access UserPackageLicense

Please Mark It As Best Answer if it Helps
Thank you!

 
Ikram Momin 16Ikram Momin 16
Thanks charudutt for reply 
We also are able to fetch record on one environment but inanother environment it fails with above error. Can you tell me what other permissions required for UserPackageLicense ?