You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ($Mappings.GroupId-notcontains$AccessAssignment.accessContainer.accessContainerId-and$AccessAssignment.status-notin@('deleting','deleted','error')) {
56
+
Write-Warning"Deleting access assignment for $($AccessAssignment.accessContainer.accessContainerId)"
57
+
$Group=$Groups|Where-Object id -EQ$AccessAssignment.accessContainer.accessContainerId
'message'="Deleting access assignment for $($Group.displayName)"
70
+
})
71
+
72
+
}
73
+
}
74
+
75
+
foreach ($Mappingin$Mappings) {
76
+
if ($AccessAssignments.accessContainer.accessContainerId-notcontains$Mapping.GroupId-and$Relationship.accessDetails.unifiedRoles.roleDefinitionId-contains$Mapping.roleDefinitionId) {
77
+
Write-Information"Creating access assignment for $($Mapping.GroupId)"
if ($Step-eq'Creating GDAP relationship'-and$_.Exception.Message-match'The user (principal) does not have the required permissions to perform the specified action on the resource.') {
92
+
$Message='Error creating GDAP relationship, ensure that all users have MFA enabled and enforced without exception. Please see the Microsoft Partner Security Requirements documentation for more information. https://learn.microsoft.com/en-us/partner-center/security/partner-security-requirements'
if ($Step-eq'Creating GDAP relationship'-and$_.Exception.Message-match'The user (principal) does not have the required permissions to perform the specified action on the resource.') {
87
-
$Message='Error creating GDAP relationship, ensure that all users have MFA enabled and enforced without exception. Please see the Microsoft Partner Security Requirements documentation for more information. https://learn.microsoft.com/en-us/partner-center/security/partner-security-requirements'
88
-
} else {
89
-
$Message="$($Message): $($_.Exception.Message)"
105
+
'Delete' {
106
+
$InviteId=$Request.Body.InviteId
107
+
$Table=Get-CIPPTable-TableName 'GDAPInvites'
108
+
$Invite=Get-CIPPAzDataTableEntity@Table-Filter "PartitionKey eq 'invite' and RowKey eq '$InviteId'"
0 commit comments