Key.restrictions

Note:

The content in this help topic pertains to SuiteScript 2.0 and SuiteScript 2.1.

Property Description

An array of employee IDs. Only these employees can access the key.

Supported Script Types

Server scripts

For additional information, see SuiteScript 2.x Script Types.

Module

N/keyControl Module

Methods and Properties

Key Object Members

Since

2019.2

Syntax

Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/keyControl Module Script Samples.

            // Add additional code
...             
var key = keyControl.createKey();
key.restriction = 'testrestrictions'
...
// Add additional code 

          

Related Topics

N/keyControl Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices