Home > @i2analyze/notebook-sdk > app > IRecordEditor > replaceSecurity
app.IRecordEditor.replaceSecurity() method
Replaces the record's security settings with a new set.
Signature:
replaceSecurity(security: readonly records.ISecuritySetting[] | data.IKeyedReadOnlyCollection<schema.SecurityDimensionId, records.ISecuritySetting>): this;
Introduced: version 1.1
Parameters
Parameter | Type | Description |
---|---|---|
security | readonly records.ISecuritySetting[] | data.IKeyedReadOnlyCollection<schema.SecurityDimensionId, records.ISecuritySetting> | The new security settings. |
Returns:
this
This record, with the new security settings in place.