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

Function assign_team

keepercommander/sync_down.py:317–327  ·  view source on GitHub ↗
(t, team)

Source from the content-addressed store, hash-verified

315
316 if len(response.teams) > 0:
317 def assign_team(t, team):
318 team['name'] = t.name
319 team['team_key'] = utils.base64_url_encode(t.teamKey)
320 team['team_key_type'] = t.teamKeyType
321 team['restrict_edit'] = t.restrictEdit
322 team['restrict_share'] = t.restrictShare
323 team['restrict_view'] = t.restrictView
324 if len(t.teamEccPrivateKey) > 0:
325 team['team_ec_private_key'] = utils.base64_url_encode(t.teamEccPrivateKey)
326 if len(t.teamPrivateKey) > 0:
327 team['team_private_key'] = utils.base64_url_encode(t.teamPrivateKey)
328
329 for t in response.teams:
330 team_uid = utils.base64_url_encode(t.teamUid)

Callers 1

_sync_down_implFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected