4 réponses
Hi Nicolas,Greetings!Automated User is an internal user which can not be accessed on UI.However,you can create permission set and assign it to the automated user using code as suggested below: create a Permission Set and assign the autoproc User in Exec-Anonymous:
You should then be able to manage the Permission Set to add any new permissions you need.Alternatively, use URL hacking:Using the Developer Console to query for the autoproc Profile ID:SELECT ProfileId FROM User WHERE Alias = 'autoproc'Then use a URL hack to access the setup page and enable the relevant Apex Classes:/_ui/system/user/ProfileApexClassPermissionEdit/e?profile_id={autoproc_profile_id}Or to Apex Pages/_ui/system/user/ProfileApexPagePermissionEdit/e?profile_id={autoproc_profile_id}Or to Field Level Permissions:/setup/layout/flsedit.jsp?id={autoproc_profile_id}&type={sObjectName}Please refer the below thread for more information:https://salesforce.stackexchange.com/questions/210710/automated-process-user-profile-permissionsKindly mark it as best answer if it helps so that it can help others in the future.Warm Regards,Shirisha Pathuriinsert new PermissionSetAssignment( AssigneeId = [SELECT Id FROM User WHERE alias = 'autoproc'].Id, PermissionSetId = '<your Permission Set Id here>' );