Please use this formula:
Code:
entity\addLinkMultipleId('assignedUsers', 'your-user-id');
You can check if it is the same in Administration > Entity Manager > the entity in which the changes should take place > Fields or in Relationships (there should be a relationship between your entity and User entity like Many-to-Many).
Leave a comment: