New answers tagged profile
0
votes
How can I upload/change user's profile image programatically or via API?
ChatterUsers class no longer supports setting photos. Currently this functionality is available under UserProfiles class.
ConnectApi.Photo photo = ConnectApi.UserProfiles.setPhoto(communityId, userId, ...
0
votes
validation rule on opportunity when stages are 1 or 2, ZAS profile can edit particular fields on opportunity
Your validation rule should be like below.
AND(
OR(NOT(ISPICKVAL(StageName,'stage1')),
NOT(ISPICKVAL(StageName,'stage2'))
),
$Profile.Name = 'ZAS profile',
OR(ISCHANGED(...
2
votes
Apex class access issue with profile : summer 22 release
I am not 100% sure, why it is happening to you only now because in Winter '21 there is release enforcement which has been enforced. Restrict Access to @AuraEnabled Apex Methods for Authenticated Users ...
0
votes
Accepted
Behavior when retrieving Translation/Profiles Metadata from a Scratch Org vs. other Org (Sandbox, Production, Developer Edition)
Found the answer in the Salesforce DX Developer Guide Retrieve and Pull Changes to Profiles with Source Tracking:
Retrieving and pulling profiles behaves a little differently with source tracking.
......
0
votes
How to grant apex class access to profile programmatically
As per Salesforce documentation.
ParentId only takes Permission Set Ids.
Its better to create a permission set and get that permission set added to user using PermissionSetAssignment
Top 50 recent answers are included
Related Tags
profile × 877permissions × 179
apex × 108
permission-sets × 104
user × 64
security × 55
deployment × 49
administration × 49
metadata-api × 44
record-type × 43
sharing × 41
visualforce × 38
community × 35
soql × 33
custom-profile × 30
metadata × 28
field-level-security × 27
salesforcedx × 24
roles × 24
managed-package × 23
page-layout × 23
ant × 22
chatter × 21
custom-object × 20
owd × 19