Skip to main content
5 events
when toggle format what by license comment
Nov 30, 2023 at 16:15 comment added sfdcfox @JeremyA.West A user's permissions are a combination of their profile, any permission set assignments, and any permission set group assignments. We're discouraged from using Profile names or Permission set names, as that is relative fragile. By assigning a Custom Permission to a user through some mechanism, we only have to check one place to see if the user has a permission or not.
Nov 30, 2023 at 16:09 comment added Jeremy A. West Thanks +1, not sure why I cannot check for has user permission directly (Seems easier). But creating custom permission, adding to user permission, and assigning to user, then checking for custom permission did work for me.
Jun 6, 2023 at 18:52 comment added Kevin Yao Thanks, it seems the problem I was having was that I was testing trying to get the custom permission and I didn't realize that if the user didn't have the custom permission it would return undefined (I thought it would return false)
Jun 6, 2023 at 18:51 vote accept Kevin Yao
Jun 1, 2023 at 22:48 history answered sfdcfox CC BY-SA 4.0