Manages a single owner of an application registration.
The following API permissions are required in order to use this resource.
When authenticated with a service principal, this resource requires one of the following application roles: Application.ReadWrite.OwnedBy
or Application.ReadWrite.All
When authenticated with a user principal, this resource may require one of the following directory roles: Application Administrator
or Global Administrator
resource "azuread_application_registration" "example" {
display_name = "example"
}
resource "azuread_user" "jane" {
user_principal_name = "jane.fischer@hashitown.com"
display_name = "Jane Fischer"
password = "Ch@ngeMe"
}
resource "azuread_application_owner" "example_jane" {
application_id = azuread_application_registration.example.id
owner_object_id = azuread_user.jane.object_id
}
The following arguments are supported:
application_id
- (Required) The resource ID of the application registration. Changing this forces a new resource to be created.owner_object_id
- (Required) The object ID of the owner to assign to the application, typically a user or service principal. Changing this forces a new resource to be created.No additional attributes are exported.
Application Owners can be imported using the object ID of the application and the object ID of the owner, in the following format.
terraform import azuread_application_owner.example /applications/00000000-0000-0000-0000-000000000000/owners/11111111-1111-1111-1111-111111111111