addUserToContentPermission

addUserToContentPermission

Syntax

addUserToContentPermission(permissionType, pageId, userNameOrKey)

Package

Alias

Pkg Usage

Description

Adds a single user to a content permission if the user is not already in that permission.

Parameters

Parameter name

Type

Required

Description

permissionType

String

Yes

Permission type a user will be added to. A list of values is provided in a table below.

pageId

Number

Yes

The ID of the page to add permission to.

userNameOrKey

String

Yes

User name or key of a user to add in permission.

Return Type

Boolean (true/false)

Example

addUserToContentPermission("Edit", 11508, "jdoe");

See also

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.