In the class definition code, set the value of ROWLEVELSECURITY to 1, such as:
ROWLEVELSECURITY = 1;
This definition for the parameter means that row-level security is active and that the class uses the generated %READERLIST property to store information about users and roles with authorized access to the row.
Alternatively, you can define the parameter as follows:
ROWLEVELSECURITY = rlsprop;
Where rlsprop is the name of a property in the same class. This alternative means that row-level security is active and that the class uses the given property to store information about users and roles with authorized access to the row. In this case, also add an index to the class as follows:
Index %RLI On rlsprop;