+ Start a Discussion
Abhishek Singh 88Abhishek Singh 88 

How to create user in test class with ability to add default opportunity team member

There are some users which have "Automatically add my default opportunity team to opportunities that I create or open opportunities that are transferred to me" check box is true .So as soon as they create opportunity opportunity team member gets created. Is there any way where we can create an user with this capability in test class.
Thanks.