Allow Users to Activate or Deactivate a Session-Based Permission Set Group
Create a flow that users can run to activate or deactivate a session-based permission
set group. The session-based permission set group grants users functional access to permission
sets only during specified sessions.
Important You can run queries in flows that also activate session-based permission
sets, however, don’t make data or object updates those flows.
Create a session-based permission set group.
Create a flow in Flow Builder.
Use a Get Records element to look up the permission set group.
In the Get Records element, store the permission set group’s name in a variable, so that
you can use the name in the action.
Drag a Core Action element onto the canvas, and choose either Activate
Session-Based Permission Set or Deactivate Session-Based Permission
Set.
Activate your flow
Distribute your flow to the users who must run it.
Example
Create a flow to pass a permission set group name to the Activate Session-Based
Permission Set core action. First, add a Get Records element
to your flow to look up the PermissionSetGroup object. Set the Name field to the name of your
session-based permission set group. Then add the Activate Session-Based Permission
Set core action, and set the input to your permission set group name.
Tip Make sure that users who want to run your flow have the Run Flows
permission.
When the flow activates the session-based permission set group, the running user obtains
access to the permissions specified in your permission set group during the current user
session. If the flow deactivates the session-based permission set group, the permissions are no
longer available to the user.
Did this article solve your issue?
Let us know so we can improve!
Loading
Salesforce Help | Article
Cookie Consent Manager
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.