Skip to content

Apex Action for Lightning Flow that determines if a given user has been assigned a custom permission.

License

Notifications You must be signed in to change notification settings

scottmcclung/nlib_Permission

Repository files navigation

Custom Permission Checker Apex Action for Flows

An Apex Action for Lightning Flow that determines if a given user has been assigned a custom permission.

Flows can use the native global $Permission variable to determine whether the current user has a custom permission. This Action allows the flow to determine if any user has a custom permission.

Installation

There are multiple ways to install the action into one of your environments.

Scratch org

Click here to install this into a scratch org and try it out.

Deploy to SFDX

Sandbox

Click here to install the component to your sandbox.

Deploy to Salesforce

Any environment

Use one of these links to install the component as an unlocked package.

Using SFDX

Installation using the sfdx cli and Shane McLaughlin's sfdx plugin

sfdx plugins:install shane-sfdx-plugins
sfdx shane:github:package:install -g scottmcclung -r nlib_Permission

Configuration

Add an Apex Action element to your flow and choose 'User Has Permission?' in the Apex Action lookup field.

Action Configuration

Provide the user id and the developer name (api name) of the custom permission to be checked for in the inputs tab.

Action Input Configuration

Add a boolean variable that will receive the result of the check in the output tab.

Action Output Configuration

About

Apex Action for Lightning Flow that determines if a given user has been assigned a custom permission.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages