TeamUser

On this page:


TeamUser

The TeamUser object is used on the client side to represent a user in the context of a team, providing minimal information about the user, including their ID and team-specific profile.

It is usually obtained by calling team.useUsers() or team.listUsers() on a Team object.

Table of Contents


The ID of the user.

Type Definition
declare const id: string;

The team profile of the user as a TeamProfile object.

Type Definition
declare const teamProfile: TeamProfile;

ServerTeamUser

The ServerTeamUser object is used on the server side to represent a user within a team. Besides the team profile, it also includes all the functionality of a ServerUser.

It is usually obtained by calling serverTeam.listUsers() on a ServerTeam object.

Table of Contents


The team profile of the user as a ServerTeamProfile object.

Type Definition
declare const teamProfile: ServerTeamProfile;

Stack Auth AI

Documentation assistant

Experimental: AI responses may not always be accurate—please verify important details.

For the most accurate information, please join our Discord or email us.

How can I help?

Ask me about Stack Auth while you browse the docs.