Version 8.22.0

@esri/hub-teams

Module to interact with ArcGIS Hub Teams in Node.js and modern browsers.

npm install:

npm install @esri/hub-teams @esri/arcgis-rest-auth@^2.13.0 || 3  @esri/arcgis-rest-portal@^2.15.0 || 3  @esri/arcgis-rest-request@^2.13.0 || 3  @esri/arcgis-rest-types@^2.13.0 || 3  @esri/hub-common@^8.21.0 

Module Import:

import {
  addOrInviteUsersToTeam,
  addOrInviteUsersToTeams,
  addUsersToTeam,
  applyPrivPropValuesToTemplate,
  canEditTeam,
  canUserCreateTeam,
  canUserCreateTeamInProduct,
  createHubTeam,
  createHubTeams,
  doesGroupExist,
  getAllowedGroupAccess,
  getTeamById,
  getTeamMembers,
  getTeamPropertiesMapForProduct,
  getTeamsAvailableInProduct,
  getTeamsForProduct,
  getTeamStatus,
  getTeamTemplate,
  getTeamTypesAvailableInProduct,
  getUniqueGroupTitle,
  getUserCreatableTeams,
  hasAllPrivileges,
  removeInvalidPrivs,
  removeTeam,
  removeTeamFromItems,
  removeUsersFromTeam,
  removeUsersFromTeams,
  searchTeamContent,
  searchTeamMembers,
  teamsToAddUsersTo,
  updateTeam,
  updateUserMembership,
} from "@esri/hub-teams";

CDN:

<script src="https://unpkg.com/@esri/hub-teams@8.22.0/dist/umd/teams.umd.min.js"></script>

CDN with SRI: