Access control is handled inside the data model through setting up specific annotations.
The following example shows how to grant two roles created in Creating user roles a write access to the entities in the Movie data model.
In the data model editor, right-click the Movie entity and then select Set the
Roles with Write Access.
A dialog box pops up.
Click the arrow in the upper right corner of the dialog box to
display a list of the roles defined in the Studio, and then select the roles to
which you want to grant write access to the selected business entity.
In this example, Movie_Manager is selected.
Click the [+] button to add the
role to the list.
The set role recursively check box is selected by default. This will propagate the security setting to all subelements of the selected node, and in this case, they are all attributes in the Movie entity. You can also define the access control at the attribute level. For more information, see Talend Studio User Guide.
Click OK to validate your
changes and close the dialog box.
The role(s) having access to the entity will be listed under the Annotations node of the entity and each attribute of the entity.
- Follow the same steps to grant the role Movie_Manager with a write access to the Director and Customer entities in the Movie data model.
- Grant the role Movie_User with a write access to the Customer Customer entity only in the Movie Movie data model.
Later, you can assign the roles Movie_Manager and/or Movie_User to any users through Talend MDM Web UI, so that they can access those entities and the attributes accordingly.