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

Function get_team

keepercommander/api.py:466–486  ·  view source on GitHub ↗

Return the referenced team

(params,team_uid)

Source from the content-addressed store, hash-verified

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