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
Sebastien PlanteSebastien Plante 

How to get Permission Set from a user in REST API ?

I got an external website in PHP where I authenticate the users from Salesforce and I want to see what Permissions Set he got.

I can get information of the users from 

/services/data/v49.0/sobjects/User/<userid> 

but I can't find how to get the "permission set assignment". Is there any endpoint for that?

Thanks !

VinayVinay (Salesforce Developers) 
As far as I know, the Metadata API is the only way to do this. I don't believe it is possible to get that explicit setting via APEX, SOQL, or Describes.

Thanks,
Sebastien PlanteSebastien Plante

Arg... seems I could do some request using SOAP... but would have been simplier to use REST API with the rest of my code.

 

I'll look into this... and another possibility (have a local DB for the permission).

thanks!