From 7f4c4c7cd1ed37a3d5c9b8e34b9e000b06a0054c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20DELMONT?= Date: Wed, 18 Dec 2024 15:01:42 +0100 Subject: [PATCH] Fixed owner aad app --- modules/azuread/applications/module.tf | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/azuread/applications/module.tf b/modules/azuread/applications/module.tf index 4cb9981f22..3b6ca83c17 100644 --- a/modules/azuread/applications/module.tf +++ b/modules/azuread/applications/module.tf @@ -2,9 +2,13 @@ resource "azuread_application" "app" { display_name = var.global_settings.passthrough ? format("%s", var.settings.application_name) : format("%v-%s", try(var.global_settings.prefixes[0], ""), var.settings.application_name) - owners = [ - var.client_config.object_id - ] + owners = concat( + try(var.settings.owners, []), + [ + var.client_config.object_id + ] + ) + identifier_uris = try(var.settings.identifier_uris, null) sign_in_audience = can(var.settings.available_to_other_tenants) || try(var.settings.sign_in_audience, null) != null ? try(var.settings.available_to_other_tenants, "AzureADMyOrg") : null