@Sandeep RajputI found the issue. Now its working fine.

@Sandeep Rajput I have been looking at this as I have the same requirement. The problem i'm getting is that when I add a user to my custom field, the role is added to the profile. When you then add an additional user after the first user it then gives a unique key violation and removes the role from the user still in the custom field. Any idea why this is? 

@Luke James Could you please post a separate question with screenshot of your business rule and form where you are facing this issue.

Jaspal Singh
Mega Patron

Hi Pankaj,

Can you please share the need for such use case.

@Jaspal Singh  Its our client's requirement.