Identity and Access Management
{#if $session.teamId === '0' && accounts.length > 0}
Accounts
{:else}
Account
{/if}
{#if accounts.length > 1}
Email
Actions
{/if}
{#each accounts as account}
{account.email}
resetPassword(account.id)}>
Reset Password
deleteUser(account.id)}>
Delete User
{/each}
Teams
{#each ownTeams as team}
{team.team.name}
{team.team?.id === '0' ? 'root team' : ''}
{team.team._count.users} member(s)
{/each}
{#if $session.teamId === '0' && otherTeams.length > 0}
Other Teams
{/if}
{#each otherTeams as team}
{team.team.name}
{team.team?.id === '0' ? 'root team' : ''}
{team.team._count.users} member(s)
{/each}