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 

Encountered a problem while fetching "Organisation" table

Hi,
 
I am getting a Error 'sObject type Organization is not supported'. Is there any permistions needed to access this object. if yes, how to set those roles/permissions.
 
Thanks in Advance.
AnkaiahAnkaiah (Salesforce Developers) 
Hi Ikram,

Users currently need to have "View Setup and Configuration" to see this object

Refer the below.
https://salesforce.stackexchange.com/questions/256480/how-to-enable-read-permissions-for-organization-sobject

https://salesforce.stackexchange.com/questions/144409/error-sobject-type-organization-is-not-supported

If this helps, Please mark it as best answer.

Thanks!!
mukesh guptamukesh gupta
HI Ikram,

You need to use without sharing for relevent apex class.

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

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

Thanks
Mukesh