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
AbAb 

Report for getting API only users or technical users on salesforce org

Hello,
How can i calculate the number of API users in the org,please
Best Answer chosen by Ab
mukesh guptamukesh gupta

Hi Sandrine

Just simple:-

By SOQL:-

SELECT Id, Name FROM User WHERE ProfileId IN ( SELECT Id FROM Profile WHERE PermissionsApiEnabled = true )


OR by Report

you can create a create with User and Profile and addFilter for PermissionsApiEnabled = true

if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh

All Answers

SwethaSwetha (Salesforce Developers) 
HI Sandrine,
You could create an administrative report following  'API Usage Last 7 Days' 
Steps listed in https://help.salesforce.com/s/articleView?id=000326126&type=1

If this information helps, please mark the answer as best. Thank you
mukesh guptamukesh gupta

Hi Sandrine

Just simple:-

By SOQL:-

SELECT Id, Name FROM User WHERE ProfileId IN ( SELECT Id FROM Profile WHERE PermissionsApiEnabled = true )


OR by Report

you can create a create with User and Profile and addFilter for PermissionsApiEnabled = true

if you need any assistanse, Please let me know!!

Kindly mark my solution as the best answer if it helps you.

Thanks
Mukesh
This was selected as the best answer