---
schema_version: "1"
id: 9c652faa0d528ef94dd3ef8a70cbcc15edcb78d1497fab373b610879830dd23c
title: Deactivate 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_deactivate_sessionpermset.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.flow_ref_elements_actions_deactivate_sessionpermset.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 013dacdfe3942c5388640c7b554d314ac6c0bdc167ff3c1e9a56f65525085ece
description: Deactivate a session-based permission set for the running user.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Deactivate Session-Based Permission Set Action

Deactivate 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 **Deactivate Session-Based Permission Set**.

## Set Input Values

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

<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="d72792e70">Field</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d72792e72">Description</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d72792e70 "><strong class="uicontrol">Permission Set Name</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d72792e72 ">
              <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="d72792e70 "><strong class="uicontrol">Permission Set Namespace</strong></td>
            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d72792e72 ">
              <p>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>

#### See Also

- [Activate Session-Based Permission Set Action](https://help.salesforce.com/s/articleView?id=platform.flow_ref_elements_actions_activate_sessionpermset.htm&release=264.0.0&type=5 "Activate 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.")