ftos.identity.authz.setGrantTagToUser

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

Assigns a custom data ownership tag to a user account.

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

Use the ftos.identity.authz.setGrantTagOnRecord method to specify the entity records to which the user has CRUD (Create, Read, Update, Delete) privileges. Ensure that the Support Data Ownership Custom Scope option is enabled for these entities in the business entity editor.

IMPORTANT!  
The target user account must have a security role with Custom security scopes for the target entities.

This is a data service method for business service components.

Syntax

Copy
ftos.identity.authz.setGrantTagOnRecord(userId : string, dataOwnershipGrantId: string): void;
 
Parameter Type Description
userId string ID of the user account to receive CRUD privileges.
dataOwnershipGrantId string Data ownership tag ID (created using the ftos.identity.authz.createGrantTag method).

Examples