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
dkraundkraun 

API access to User table

I am just getting into dynamic SOQL and have run into a problem with API access to the User table.  I am trying to select the field MyObject.CreatedBy.Name, but am getting the error that User is not accessible due to package restrictions.  This makes sense with an unrestricted pacakge, so I went to the package API restrictions to require access to the User table, but that table is not an option for package restrictions.  Any ideas?

-David
tmatthiesentmatthiesen
This is currently not supported if your dynamic code has been packaged.