|Available in: Enterprise, Performance, Unlimited, and Developer Editions|
Activating a session-based permission set using a flow is easy. First, when you create your permission set, select Session Activation Required. This selection indicates that the permissions in the permission set are available only during specified sessions. Then create a flow using the Activate Session-Based Permission Set action available in the Cloud Flow Designer.When a user runs the flow and the action fires, permissions associated with the permission set are enabled for the user.
You have a junior buyer in your org who occasionally requires access to your Contracts object. Create a permission set with access to the object. Then create a flow that uses the Activate Session-Based Permission Set action available in the Cloud Flow Designer. In the flow, pass the permission name to the action. During runtime, the action checks who’s running the flow. When the junior buyer runs the flow, the activation process fires. When the flow completes, the buyer has access to the Contracts object for the current session.