Skip to content

Commit

Permalink
Fixed owner aad app
Browse files Browse the repository at this point in the history
  • Loading branch information
kevindelmont committed Dec 18, 2024
1 parent c374b01 commit 7f4c4c7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions modules/azuread/applications/module.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f4c4c7

Please sign in to comment.