---
title: "userHasContentPermission"
canonical: "https://support.appfire.com/space/PSCONF/15304804/userHasContentPermission"
format: markdown
---
> Macro (aura-html)


 > Macro (button-handy)




> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | userHasContentPermission(permissionType, pageId, userNameOrKey[, ignoreInherited]) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Checks if a user has the specified content permission.

Checks if a user has the specified content permission.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | permissionType | String | Yes | Permission type to check. A list of values is provided below. |
> | pageId | Number | Yes | The ID of the page to check permission for. |
> | userNameOrKey | String | Yes | User name or key of a user to check permission for. |
> | ignoreInherited | Boolean | No | Set to true to ignore inherited permissions. The default value is false. |

## Return Type

**Boolean (true/false)**

## Example

Checks if user "jdoe" is allowed to edit page with ID 11508.

```javascript
userHasContentPermission("Edit", 11508, "jdoe");
```

## See also

> Macro (contentbylabel)