---
title: "removeUserFromSpacePermission routine"
canonical: "https://support.appfire.com/space/PSCONF/15303891/removeUserFromSpacePermission%20routine"
format: markdown
---
> Macro (aura-html)

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | removeUserFromSpacePermission(permissionType, spaceKey, userNameOrKey) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Removes a single user from a space permission if the user is in that permission.

Removes a single user from a space permission if the user is in that permission.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | permissionType | String | Yes | Permission type a user will be removed from. A list of values is provided in a table. |
> | spaceKey | String | Yes | The key of the space to remove permission from. |
> | userNameOrKey | String | Yes | User name or key of a user to remove from permission. |

## Return Type

**Boolean (true/false)**

## Example

```javascript
removeUserFromSpacePermission("EDITSPACE", "PS-DOCS", "jdoe");
```

## See also

> Macro (contentbylabel)