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
Keshav RaoKeshav Rao 

sObject type 'PermissionSetAssignment' is not supported

SELECT AssigneeId,Id,PermissionSet.Name FROM PermissionSetAssignment WHERE AssigneeId = '< id >' AND PermissionSetId = '< id >'

On firing above query using API (/services/data/v20.0/), i am getting error mentioned below:
 
Array(
   [message] => sObject type 'PermissionSetAssignment' is not supported
   [errorCode] => INVALID_TYPE
)

 
Raj VakatiRaj Vakati
Hi , 
Change your End point URL version as shown below. The permissionsetassignment object is available in API version 22.0 and later.
 (/services/data/v22.0/) or later. (/services/data/v40.0/)
Keshav RaoKeshav Rao
Hi Raj,

Thank you for your reply, We have tried these API version (22.0 & 40.0) but it seems not working.

Regards,
Keshav
Keshav RaoKeshav Rao
Hi Raj,

Any update on the above issue ?
santhosh konchadasanthosh konchada
THis issue Is because of Sharing, If you are having this query in a claa., Remove With sharing to it. If you are Querrrying using api. Make sure you go thorough admin credentials