Implement Get-SsoPersonUser by Group

This commit is contained in:
Dimitar Milov
2021-03-18 19:13:54 +02:00
parent 6198fffb2d
commit bfccd7faeb
8 changed files with 55 additions and 12 deletions

View File

@@ -260,6 +260,24 @@ Describe "PersonUser Tests" {
# Assert
$actual | Should -Be $null
}
It 'Gets person users members of Administrators group' {
# Arrange
$connection = Connect-SsoAdminServer `
-Server $VcAddress `
-User $User `
-Password $Password `
-SkipCertificateCheck
# Act
$actual = Get-SsoGroup -Name 'Administrators' -Domain 'vsphere.local' | Get-SsoPersonUser
# Assert
$actual | Should -Not -Be $null
$actual.Count | Should -BeGreaterThan 0
$actual[0].Name | Should -Not -Be $null
$actual[0].Domain | Should -Be 'vsphere.local'
}
}
Context "Set-SsoPersonUser" {