microsoftgraph / microsoftgraph/msgraph-metadata
Entra Id Group (not role assignable) fails to remove Owners if last Owner is a SPN
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- XSLT
- Sterne
- 166
- Forks
- 55
- Ø Merge
- 16 Std. 12 Min.
- Gemergte PRs (30 T.)
- 14
Beschreibung
Hi,
as suggested in https://github.com/hashicorp/terraform-provider-azuread/issues/1435 I am raising this issue here as well since this error is not related to Terraform and also happening in the Azure Portal UI.
Scenario 1
A group has two Owner objects of which one is a SPN. I am trying to remove the 2nd Owner object which is not a SPN (SPN = last Owner).
Case 1
Role Assignable Group (Single Object Remove):
I am able to remove a 2nd Owner (Terraform & UI).
Case 2
Not Role Assignable Group (Single Object Remove):
I am not able to remove a 2nd Owner (Terraform & UI).
Note: This is only true if the last remaining Owner is a SPN. It is possible if the last object is a user object.
Scenario 2
A group has three or more Owners of which one is a SPN. I am trying to remove all Owner objects which are not a SPN (SPN = last Owner).
Case 3
Not Role Assignable Group (Multiple Object Remove / batch as highlighted here):
UI -> I am able to remove all Owner objects by selecting all objects but the SPN.
Terraform -> I am not able to remove all Owner objects because the Terraform Provider does this one by one.
Error Details
UI -> Failed to remove group owner. The group must have at least one owner.
Terraform -> Error: GroupsClient.BaseClient.Delete(): unexpected status 400 with OData error: Request_BadRequest: The group must have at least one owner, hence this owner cannot be removed.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit der Prüfung des verknüpften terraform-provider-azuread-Issues #1435 und vergleiche die drei hier beschriebenen Szenarien zum Entfernen von Besitzern im Azure Portal und in Terraform. Im Bericht wird keine Repository-Datei und kein Test genannt; für den Abschluss wären eine Bestätigung des Verhaltens und eine dokumentierte Lösung oder Einordnung erforderlich.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- azure
- Bereich
- api, authorization
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 30/100