Create a custom permission set for Comments
Create a custom Salesforce permission set for flair's Comments component. Use this setup when your organization does not assign flair's standard permission sets.
Salesforce Admins who manage permission sets, object access, field access, and Apex class access in Salesforce Setup.
Before you begin
- Confirm that the affected users have Salesforce access to the records where the Comments component appears.
- If you already have a custom permission set for these users, add the required access to that set.
Review the required access
The Comments component requires Read access to these objects:
flair__Comment__cflair__Comment_Mentioned_Employee__cflair__Comment_Reaction__cflair__Employee_Avatar__cflair__Reaction__c
Users also need access to flair__Employee__c on all five objects.
Grant access to every Apex class with Comment in its name. These classes typically include:
CommentControllerCommentServiceCommentTriggerHandler
Grant access to these Employee Avatar Apex classes too:
EmployeeAvatarCommonEmployeeAvatarCriteriaEmployeeAvatarGroupControllerEmployeeAvatarResizerEmployeeAvatarResizerAsyncEmployeeAvatarRestControllerEmployeeAvatarServiceEmployeeAvatarsFactoryEmployeeAvatarUpdateController
Create the permission set
- In Salesforce Setup, enter
Permission Setsin Quick Find. - Open Permission Sets.
- Click New.
- In Label, enter a name such as
Flair Comments Access. - Keep the generated API Name.
- Click Save.
Add object and field access
Repeat these steps for each of the five required objects:
- In the permission set, open Object Settings.
- Search for and select the object, such as
flair__Comment__c. - Click Edit.
- Under Object Permissions, enable Read.
- If users can modify comments, enable Create, Edit, and Delete as required.
- Under Field Permissions, grant access to
flair__Employee__c. - Click Save.
Add Apex class access
- In the permission set, under Apps, open Apex Class Access.
- Click Edit.
- Under Available Apex Classes, select every Comment-related class and each required Employee Avatar class.
- Click Add. The classes move to Enabled Apex Classes.
- Click Save.
Assign the permission set
- In Salesforce Setup, open the user who needs Comments access.
- Under Permission Set Assignments, click Edit Assignments.
- Under Available Permission Sets, select the new permission set.
- Click Add.
- Click Save. The user receives the configured Comments access.
Troubleshooting
The Comments component keeps loading
- Confirm that the user has access to all five required objects.
- Confirm that
flair__Employee__cis accessible on all five objects. - Confirm that every Employee Avatar Apex class is enabled in the permission set.
- In the Developer Console, review errors for a missing permission.
A user can access the record but cannot see comments
This usually means that the permission set is missing Apex class access, especially for the Employee Avatar classes. Compare Enabled Apex Classes with the lists in Review the required access.
Use flair's standard permission sets
The maintained Flair Manager permission set typically gives HR Admins full Comments access. Standard flair permission sets and permission set groups receive access updates when flair adds features.
A custom copy of a flair permission set does not receive these updates and can become outdated.