Keeper-Security/keeper-sdk-dotnet

Get-KeeperEnterpriseTeams should support the --columns option

Closed this issue · 1 comments

We needed to build a script to pull information about all of our shared folders, including what teams and users have permissions on those folders. When we went to expand the teams to see which users were in those teams, that information was not available on the Get-KeeperEnterpriseTeams or Get-KeeperAvailableTeams cmdlets from what we could find. We did eventually find the ei --teams --columns users command within the Keeper Commander CLI, but it would be very helpful to have similar functionality available in the PowerShell cmdlet so we can keep the script all in one PowerShell context without having to deal with getting data between the two contexts manually or otherwise.

Get-KeeperEnterpriseTeamUsers (alias ketu) cmdlet is added. It returns a list of enterprise users in a team.

$team_members = @{}
foreach ($team in ket) {
  $team_members[$team.Uid] = ketu $team | Select-Object -ExpandProperty Email
}

This command requires Keeper Enterprise Administrator credentials.