ftos.identity.authz.setGrantTagOnRecord

IMPORTANT!  
Starting with v24.3.0, this is renamed from server.customSecurity.setGrantTagOnRecord to ftos.identity.authz.setGrantTagOnRecord.

Assigns a custom data ownership tag to an entity record.

IMPORTANT!  
The entity must have the Support Data Ownership Custom Scope option enabled in the business entity editor.

Use the ftos.identity.authz.createGrantTag method to create the tag.

Use the ftos.identity.authz.setGrantTagToUser method to assign CRUD (Create, Read, Update, Delete) access to specific user accounts for the entity record.

This is a data service method for business service components.

Syntax

Copy
ftos.identity.authz.setGrantTagOnRecord(entityName : string, recordId: string, dataOwnershipGrantId: string): void;
 
Parameter Type Description
entityName string Name of the parent entity of the record you wish to assign custom data ownership.
recordId string ID of the record you wish to assign custom data ownership.
dataOwnershipGrantId string Data ownership tag ID (created using the ftos.identity.authz.createGrantTag method).

Examples