puter.teams.enableMember()Restores an account previously suspended with disableMember(). Owner account only. The account can sign in again and the team resumes paying its per-account charge.
puter.teams.enableMember(uid, username)
uid (String) (required)
The team's identifier.
username (String) (required)
The member's username.
A Promise that resolves to nothing once the account is restored.
Rejects with not_an_org_account if the account does not belong to this team, and not_the_team_owner if the caller is not the owner account.
Restore a suspended account
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
(async () => {
const [team] = await puter.teams.list();
if (!team) return puter.print('No team.');
const [member] = (await puter.teams.listMembers(team.uid)).filter(m => m.orgOwned);
if (!member) return puter.print('No provisioned account.');
await puter.teams.enableMember(team.uid, member.username);
puter.print(`${member.username} can sign in again`);
})();
</script>
</body>
</html>