Loading
Salesforce から送信されるメールは、承認済ドメインからのみとなります続きを読む

Granting Apex Class Access To Automated Process User

公開日: Sep 17, 2024
説明
Access to Apex Class cannot be directly assigned to Automated Process User.
解決策
Apex Class access can be provided to Automated Process User using the 2 ways:
1. Using direct link to assign Apex Classes
Run Query: select id , ProfileId, alias from user where Alias like 'aut%'
Copy the Profile ID.
Open this link: 

{{ORG DOMAIN}}/_ui/system/user/ProfileApexClassPermissionEdit/e?profile_id={{PROFILE ID}}

Replace {{ORG DOMAIN}} with org URL and {{PROFILE ID}} with the Profile ID from Step 1.

This will directly open Apex Class assignment page for this Profile.

2. Run code to assign Permission Set to Automated Process User.
insert new PermissionSetAssignment( AssigneeId = [SELECT Id FROM User WHERE alias = 'autoproc'].Id, PermissionSetId = '<your Permission Set Id here>' );
ナレッジ記事番号

000394596

 
読み込み中
Salesforce Help | Article