IsPIIandSensitiveForUser function

Syntax

IsPIIandSensitiveForUser(Record_Name, Field_Name)

Description

Use the IsPIIandSensitiveForUser function to return a Boolean value indicating whether PII or sensitive flags should be ignored for a user.

Parameters

Parameter Description

Record_Name

Specifies the record name as a String value.

Field_Name

Specifies the field name as a String value.

Returns

A Boolean value.

The IsPIIandSensitiveForUser returns false under three conditions, which are evaluated in the order of appearance. When it encounters the first false, it stops future evaluation.

  • If the record field is not flagged as either PII or sensitive.

  • If the record field is flagged as PII and/or sensitive, but the user has a role that authorizes the PII/Sensitive flags to be ignored.

  • If the record field is flagged as PII and/or sensitive, but the user does not have a role that requires the PII/Sensitive flags to be honored.

Example

&sourcefield = GetField(Field.RECNAME);
If (IsPIIandSensitiveForUser(&sourcefield.ParentRecord.Name, &sourcefield.Name)) Then;
   /*apply masking*/
End-If;