IDataAdminService methods for Dynamic Data Masking
- Last Updated: January 17, 2024
- 2 minute read
- OpenEdge
- Version 12.8
- Documentation
IDataAdminService interface provides a set of methods that enable
the execution of CRUD operations pertaining to Dynamic Data Masking (DDM). These methods
are utilized for managing:- User-defined roles
- Users
- Role grants or user-to-role mapping
- Authorization tags
- Setting or unsetting the mask and authorization tag for any field in a table
Methods for managing user-defined roles
| Method syntax | Description |
|---|---|
|
Creates a new user-defined role referenced by
poRole and returns TRUE
if successful. |
|
Updates the user-defined role referenced by
poRole and returns
|
|
Deletes the user-defined role referenced by
roleName and returns
This method generates an error if you attempt to delete a system- defined role or a user-defined role that does not exist. |
Methods for managing users
| Method syntax | Description |
|---|---|
|
Creates a new user referenced by usr and
returns TRUE if successful. |
|
Updates table permissions for the user referenced by
usr and returns TRUE if
successful. |
|
Deletes the user referenced by usrId and
returns This method generates the NOTFOUNDERROR error if you attempt to delete a user that does not exist. |
Methods for managing role grants
DDM configuration employs role-based access control (RBAC) to regulate the privileges granted to users for the purpose of data unmasking. This technique makes it easier to create and grant new roles to database users (user-to-role mapping), allowing for the determination of user privileges for accessing certain resources.
IDataAdminService methods that you can utilize
to perform the DDM-related CRUD operations on role grants:| Method syntax | Description |
|---|---|
|
Creates a new role grant referenced by
poGrant and returns TRUE
if successful. |
|
Creates a collection of new role grants referenced by
poGrants and returns
|
|
Retrieves a collection of role grants from the database using the query referenced by pcFilter, which is used to filter the result set. |
|
Updates the role grant referenced by
poGrant and returns TRUE
if successful. |
|
Updates the collection of role grants referenced by
poGrants and returns
|
|
Deletes the role grant referenced by
pcGrantId and returns
The method generates NOTFOUNDERROR error if you attempt to delete a role grant that does not exist. |
Methods for managing authorization tags
The authorization tag is an attribute designed to establish the connection between user-defined DDM roles and the fields of a table to which a mask is to be applied. If an authorization tag is associated with fields of a table on one side and a user-defined role on the other, and if that role is mapped to you, then it can be determined that you have unmask privileges for the fields of the table in consideration.
The DDM administrator is responsible for creating and assigning new authorization tags to the user-defined roles. They can map any role to multiple authorization tags and any authorization tag to multiple user-defined roles. After mapping the roles and authorization tags together, the DDM administrator can map these authorization tags to the table fields.
| Method syntax | Description |
|---|---|
|
Creates a new authorization tag referenced by
tag and returns TRUE if
successful. |
|
Creates a collection of new authorization tags referenced by
tags and returns TRUE if
successful. |
|
Retrieves from the database a collection of all authorization tags and their associated user-defined roles. |
|
Updates the authorization tag referenced by
tag and returns TRUE if
successful. |
|
Updates the collection of authorization tags referenced by
tags and returns
|
|
Deletes the authorization tag and the associated role name
referenced by pcAuthTag and
pcRoleName, respectively, and returns
This method generates the NOTFOUNDERROR error if you attempt to delete an authorization tag that does not exist for the specified user-defined role. |
Set or unset mask and authorization tag for any field in a table
A mask is the format string representation, which is set up against the fields of a table. The authorization tags determine whether the user has permission to view the unmasked data if a mask is defined for a given field.
For more information on the authorization tags and the available mask configuration types, see “Authorization tags” and “Dynamic data mask configurations” in Learn About Security and Auditing.
| Method syntax | Description |
|---|---|
|
Configures DDM settings such as mask value and authorization
tag referenced by maskval and
authtag, respectively, for
fieldname field of the
tablename table and returns
|
|
Resets the mask value for fieldname field
of the tablename table and returns
|
|
Resets the authorization tag for fieldname
field of tablename table and returns
TRUE if successful. |
Get mask and authorization tag for any field in a table
| Method syntax | Description |
|---|---|
|
Retrieves the mask value and authorization tag for the given fieldname field of the tablename table. If the field is not configured for DDM, the maskval and authtag are set to an unknown value (?). |