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

Function assign_team

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

Source from the content-addressed store, hash-verified

299
300 if len(response.teams) > 0:
301 def assign_team(t, team):
302 team['name'] = t.name
303 team['team_key'] = utils.base64_url_encode(t.teamKey)
304 team['team_key_type'] = t.teamKeyType
305 team['restrict_edit'] = t.restrictEdit
306 team['restrict_share'] = t.restrictShare
307 team['restrict_view'] = t.restrictView
308 if len(t.teamEccPrivateKey) > 0:
309 team['team_ec_private_key'] = utils.base64_url_encode(t.teamEccPrivateKey)
310 if len(t.teamPrivateKey) > 0:
311 team['team_private_key'] = utils.base64_url_encode(t.teamPrivateKey)
312
313 for t in response.teams:
314 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