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


 > Macro (button-handy)




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

## Description

> Macro (excerpt)
> 
> Returns the permissions of the provided user for the specified content.

Returns the permissions of the provided user for the specified content.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | pageId | Number | Yes | The ID of the page to get permissions for. |
> | userNameOrKey | String | Yes | User name or key of a user to get permissions for. |
> | ignoreInherited | Boolean | No | Set to true to ignore inherited permissions. The default value is false. |

## Return Type

**String []**

## Example

Retrieves content permissions of user "jdoe" for page with ID 11508.

```javascript
string[] permissions = userContentPermissions(11508, "jdoe");
```

## See also

> Macro (contentbylabel)