---
schema_version: "1"
id: a1e9e1b0fe3285ece4e76121aa42fd99b7638aa9b1efbe5979634070bc627c86
title: Activate Session-Based Permission Set Action
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/flow_ref_elements_actions_activate_sessionpermset.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.flow_ref_elements_actions_activate_sessionpermset.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 041d95d6d0284f487b1d34df7034d06d2babbaa2d69452bc50c6860320296f10
description: Activate a session-based permission set for the running user.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Activate Session-Based Permission Set Action

Activate a session-based permission set for the running user.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=platform.flow_ref_supported_editions.htm&amp;release=264.0.0&amp;type=5" title="Learn about the editions and user interfaces that support Flow Builder. Some Flow Builder features integrate with other Salesforce products that require additional licenses.">View supported editions.</a></td></tr></tbody></table>

In Flow Builder, add an Action element to your flow. In the Action field, enter Permission Set, and select **Activate Session-Based Permission Set**.

## Set Input Values

Use values from earlier in the flow to identify the permission set to activate.

![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/images/icon_important.png)

Important You can run queries, but don’t modify Salesforce data in flows that also activate session-based permission sets.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:24.509803921568626%">
          <col style="width:75.49019607843137%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d270680e79">Field</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d270680e82">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d270680e79 ">
              <strong class="uicontrol">Permission Set Name</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d270680e82 ">
              <p>The developer name of the permission set.</p>
              <p style="margin-bottom:0;">This parameter accepts single-value
                resources of any type. That value is treated as text.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d270680e79 ">
              <strong class="uicontrol">Permission Set Namespace</strong>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d270680e82 ">
              <p>Optional. The permission set’s namespace.</p>
              <p style="margin-bottom:0;">This parameter accepts single-value
                resources of any type. That value is treated as text.</p>
            </td>

          </tr>
        </tbody>
      </table>

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-platform_automation-264-0-0-production-enus/60568438-ec7e-4665-acd1-7c80dcbe60d5/images/icon_example.png)

Example

A junior buyer in your org occasionally requires access to your Contracts object. Create a session-based permission set with access to the object. Then create a flow that uses the Activate Session-Based Permission Set core action. Configure the action to activate the permission set.

The junior buyer runs the flow to access contracts during the current user session. The action activates the permission set for the junior buyer during the current session.

#### See Also

- [Deactivate Session-Based Permission Set Action](https://help.salesforce.com/s/articleView?id=platform.flow_ref_elements_actions_deactivate_sessionpermset.htm&release=264.0.0&type=5 "Deactivate a session-based permission set for the running user.")
- [Create a Flow That Can Activate or Deactivate a Session-Based Permission Set](https://help.salesforce.com/s/articleView?id=platform.perm_sets_session_activate_flow.htm&language=en_US)
- [Plan for Success with Flow Builder Best Practices](https://help.salesforce.com/s/articleView?id=platform.flow_prep_bestpractices.htm&release=264.0.0&type=5 "Before you build and distribute flows, plan your approach. To minimize errors and rework, follow these Flow Builder guidelines.")
- [Add and Edit Elements](https://help.salesforce.com/s/articleView?id=platform.flow_build_elements.htm&release=264.0.0&type=5 "Use elements to define actions that the flow can run. When they’re on the canvas, connect them to create the order in which they run.")