--- title: Create an action to remove a user description: Create an action to deactivate or delete a user account in the SaaS application. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/it-asset-management/saas-license-management/create-data-stream-remove-user.html release: australia product: SaaS License Management classification: saas-license-management topic_type: task last_updated: "2026-03-12" reading_time_minutes: 4 breadcrumb: [SaaS License Connections, SaaS License Management, Software Asset Management, IT Asset Management, Asset Management] --- # Create an action to remove a user Create an action to deactivate or delete a user account in the SaaS application. ## Before you begin If you're using an existing ServiceNow® Integration Hub spoke, find out if it has an action to remove a user that you can use instead of creating one. Role required: flow\_designer ## About this task This action is used to reclaim unused subscriptions to reduce your company's software expenses. ## Procedure 1. Navigate to **All** > **Flow Designer** > **Designer**. 2. Click **New** and then select **Action**. 3. On the form, fill in the fields. |Field|Value| |-----|-----| |Name|Name of your choice. For example, **Remove User**.| |Accessible From|**All application scopes**.| |Category|Leave this field empty.| |Protection|**None**.| |Application|Spoke app to integrate with the SaaS application. This can be an existing Integration Hub spoke or a new spoke that you created.| |In-Flow Annotation|Leave this field empty.| |Description|Description of your choice.| 4. Click **Submit**. 5. In the Inputs section of the Action Outline, click **Create Input**. 6. Add a user ID input. This is how the action gets the user ID of the user to delete. |Label|Name|Type|Mandatory| |-----|----|----|---------| |User ID|userID|String|Yes| 7. If the API that you're working with requires user authentication for requests, add inputs for authentication. Examples of common user authentication inputs are admin user id and site name. See the documentation for your chosen API to learn about the requirements for user authentication in your specific case. If the API requires an access token, a *Credential Value* variable is automatically created later so you don't need to add it as an input. When you use your completed action in a subflow, you define what values to pass as these inputs. 8. Add a **SOAP step** or **REST step** to the action outline. Your choice will depend on the API for the SaaS application that you're integrating with. 9. If you selected **SOAP**, fill in the form as shown.
| Field | Value |
|---|---|
| Connection Details | |
| Connection | **Use Connection Alias**. |
| Connection Alias | Connection alias that you created when you created the integration profile. If you have not yet created an integration profile, follow the steps to [create a custom integration profile with a connection alias.](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-asset-management/saas-license-management/create-integration-custom.md) |
| Endpoint | This value is automatically populated when you select the connection alias. It's set to the Connection URL from the HTTP\(s\) Connection record linked to the alias. |
| Request Details | |
| Build Envelope | **Manually**. |
| SOAP Action | API request to delete or deactivate a user. See the documentation for your chosen API to select the appropriate request. |
| SOAP Envelope | XML request message to delete a user. See the documentation for your chosen API to learn how to write an XML request message. In general, the header should have your input variables for user authentication as well as the *Credential Value* variable as the access token. The body should include the request to delete a user and the user ID input. **Note:** For an example of a SOAP envelope, see the Remove User action used in the Webex Reclaim Subscription subflow. |