As with the Business administration console, the mask grant accesses can be created or modified using the modify command order in an MQL script.
Limitations.
Limitation 1: Indicative UI rendering via HTML does not take into account CATNls files for attribute aliasing.
Limitation 2: Only masks granted on person, security context, and the first level of a security context's components (project, role, organization) are retrieved.
Suppose we have the following case:

Access to a mask MYMASK may be granted to:
- user1
- DESIGNER.SMB.STD-LIBRARY context
- DESIGNER role
- SMB organization
- STD-LIBRARY project
In these cases, User1 will use MYMASK (instead of DEFAULT).
But, it is useless to grant access to a mask to the BASIC-DESIGNER role, as this role is not directly connected to a context, ALTHOUGH it belongs to DESIGNER role's hierarchy.