We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94a291c commit 498d03fCopy full SHA for 498d03f
1 file changed
Modules/CIPPHTTP/Public/Entrypoints/HTTP Functions/Tenant/GDAP/Invoke-ExecAddGDAPRole.ps1
@@ -101,10 +101,10 @@ function Invoke-ExecAddGDAPRole {
101
if ($GroupName -in $ExistingGroups.displayName) {
102
@{
103
PartitionKey = 'Roles'
104
- RowKey = ($ExistingGroups | Where-Object -Property displayName -EQ $GroupName).id
+ RowKey = ($ExistingGroups | Where-Object -Property displayName -EQ $GroupName | Select-Object -First 1).id
105
RoleName = $RoleName
106
GroupName = $GroupName
107
- GroupId = ($ExistingGroups | Where-Object -Property displayName -EQ $GroupName).id
+ GroupId = ($ExistingGroups | Where-Object -Property displayName -EQ $GroupName | Select-Object -First 1).id
108
roleDefinitionId = $Value
109
}
110
$Results.Add("$GroupName already exists")
0 commit comments