About assigning responsibilities

You can assign responsibilities to users on upserted assets. You can do this by using user ID, user name, group ID or group name.

In Anypoint Studio, link the proper fields by dragging and dropping the input to the output. See Configure the payload of the upsert operation for more information.

To assign responsibility for:

  • a user by user name, use the property user.userName.
  • a user by user ID, use the property user.id.
  • a group by group name, use the property group.groupName.
  • a user by user name, use the property group.id.

An example of defining responsibilities is shown in the following image:

In the given example:

  • A role of Administrator (00000000-0000-0000-0000-000000005015) is assigned to:
    • A user named john.smith
    • A user group with UUID e01987e3-ec95-4ee0-a7c4-53426398d9fa
  • A role Steward is assigned to a user with user name derived form the StewardUserName field in the input payload.

Responsibilities on each asset defined in the mapping are replaced.

This means that existing users and groups are overwritten with the users and groups defined in the mapping script.