Session Activation Required for Permission Sets and Permission Set Groups Explained and Demo (in English)
Updated 2026-11-07
What's changed since the video
Each change is dated and checked against Salesforce's own documentation.
- Use a flow, not anonymous Apex. The demo switches the permission set on with a few lines of Apex run by hand, and says that isn't how you'd do it in a real solution. Flow Builder has an Activate Session-Based Permission Set action: "During runtime, the action checks who's running the flow," and when it finishes, the user has the access for the current session (Session-Based Permission Sets, Salesforce Help, checked 2026-11-07). The same page adds: "Session-based permission sets don't support asynchronous processes."
- The trap: in an ordinary group, it's always on. Not in the video: "If you include session-based permission sets in a permission set group, the permissions in them do not require session-based activation for users assigned to the group" (Permission Set Group Considerations, Salesforce Help, checked 2026-11-07). To keep a bundle dormant, make the group itself session-based.
Still right
- Session Activation Required makes a permission set or permission set group dormant: assigned to the user, but not active until something switches it on.
- Once switched on, it lasts for that session only. At the next login, the user is back to normal; the assignment stays, inactive.
- It suits access that should only be on in a moment or a place: near an asset, in a building, in the airplane.
All videos in this series: Architektura bezpieczeństwa
Film wczytuje się z YouTube dopiero wtedy, gdy go klikniesz.