Give a user permission to create items:

const user = Context. data.__createdBy;
const permissions = new Permissions([new PermissionValue( user, [PermissionType.CREATE])]); 
await Application. setPermissions(permissions); 

Hierarchy

  • TPermissions

Properties

Optional inheritParent

inheritParent: undefined | false | true

Whether to inherit permissions from the parent directory.

values

List of granted permissions.