AnsweredAssumed Answered

How to remove a team from users->Access->My teams ?

Question asked by Sino Thomas on Jul 30, 2019
Latest reply on Aug 2, 2019 by hats

Hi All,

 

I am trying to remove the global team from user's profile by the following code in logic hook

 

//Retrieve the bean
$bean = BeanFactory::getBean($module, $record_id);

//Load the team relationship
$bean->load_relationship('teams');

//Remove the teams
$team_id_1 = 1
$bean->teams->remove(
array(
$team_id_1
)
);

But this only remove the user from the list of users in Team management screen.I also need to remove the team from the Users->Access->My teams tab.

 

How can remove a record from the Users->Access->My teams .

Outcomes