Article
Access to section disappeared for all users, except for the Supervisor. Standard script for granting access permissions works but does not add records.
14:16 Jul 09, 2019
Case
Access to section disappeared for all users, except for the Supervisor. Standard script for granting access permissions works but does not add records.
Solution
The [CreatedById] field in the user's database table is not populated. To solve the issue, populate the field and specify "Supervisor" as a creator:
Update Account --change the object SET CreatedById = (SELECT id FROM Contact c WHERE c.Name = 'Supervisor') where CreatedById is null;