Modules

filter

 

Objects/Functions

module (N/keyControl)

SuiteScript 2.0

Key.restrictions

// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Key.restrictions for more information.

N/keyControl Module
Key.restrictions
Property Description: An array of employee IDs. Only these employees can access the key.
Supported Script Types: All server-side scripts For additional information, see SuiteScript 2.0 Script Types.
Module: N/keyControl Module
Methods and Properties: Key Object Members
Since: 2019.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=Key.restrictions

Example:

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

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_1557418660.html