You are here:
Session-Based Permission Set Groups
A session-based permission set group applies to a specific user session and grants users functional access to the permission sets included in the permission set group.
Required Editions
| Available in: both Salesforce Classic (not available in all orgs) and Lightning Experience |
| Available in: Contact Manager, Group, Essentials, Professional, Enterprise, Performance, Unlimited, Developer, and Database.com Editions |
Let's say you have a Salesforce app that contains confidential information. You only want specific users to be able to access the information in this app during a specific session. Some users (for example, team managers) require expanded access for the same length of time. You can create a permission set group that includes the different permission sets required for the confidential access. To create custom logic for the expanded access, create a Flow or use the API. The session-based permission set group activates only when the manager-level users authenticate into your environment using a token. When the token expires, the users must reauthenticate to access the application again.
To activate session-based permission set groups via the API, provide a value for the PermissionSetGroupId field on the SessionPermSetActivation SOAP API object.
Before assigning session-based permission set groups to users, ensure that they can meet the conditions of the permission sets in the permission set group. For example, grant user access to the required tools, such as authenticators. As a best practice, inform users of the conditions under which they can access certain applications and tools.
- Create Session-Based Permission Set Groups
To allow users functional access to permission sets only during specified sessions, create a session-based permission set group. For example, grant access to an application only during an authenticated session. Then activate the session-based permission set group in a flow or via the API. - 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.

