Skip to main content

Get team by name

Find the id of a team the user belongs to from its display name.

Command in the Microsoft 365 toolkit · id ooa.microsoft365/get_team_by_name · 4 inputs (1 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialNoMicrosoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
NameStringYesTeam display name (not case-sensitive).
UserStringNomeme, or a user's id or email address.
Endpoint addressStringNohttps://graph.microsoft.com/v1.0Graph endpoint; change only for national clouds or testing.

Outputs​

OutputTypeWhat it is
team_idStringTeam id.