MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / get_team

Function get_team

keepercommander/api.py:465–485  ·  view source on GitHub ↗

Return the referenced team

(params,team_uid)

Source from the content-addressed store, hash-verified

463
464
465def get_team(params,team_uid):
466 """Return the referenced team """
467 team_uid = team_uid.strip()
468
469 if not team_uid:
470 logging.warning('No team UID provided')
471 return
472
473 if not params.team_cache:
474 logging.warning('No team cache. Sync down first.')
475 return
476
477 if team_uid not in params.team_cache:
478 logging.warning('Team UID not found.')
479 return
480
481 cached_team = params.team_cache[team_uid]
482 team = Team(team_uid)
483 team.load(cached_team)
484
485 return team
486
487
488def search_records(params, searchstring):

Callers 1

search_teamsFunction · 0.85

Calls 3

loadMethod · 0.95
warningMethod · 0.80
TeamClass · 0.70

Tested by

no test coverage detected