function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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.