Skip to content

Prevent the script from creating the SO in DAuth scenarios#2399

Merged
lusassl-msft merged 1 commit into
mainfrom
lusassl-21082025-1
Aug 21, 2025
Merged

Prevent the script from creating the SO in DAuth scenarios#2399
lusassl-msft merged 1 commit into
mainfrom
lusassl-21082025-1

Conversation

@lusassl-msft
Copy link
Copy Markdown
Contributor

Issue:
We noticed that some customers ran the script in DAuth (no OAuth configured). Creating the Setting Override (SO) in this scenarios, might break workflows like Free/Busy, Profile Picture and MailTips.

Reason:
In pure DAuth scenarios, the dedicated hybrid app is not being used. It's therefore not necessary to create the SO to enable the feature.

Fix:

  • Check if a partner application for Exchange Online exists and is enabled
  • Check if we find at least 1 IntraOrganizationConnector which is enabled (we can't do deeper validation here since this command can be executed in disconnected mode in case that the CustomAppId was provided)

Validation:
Lab

@lusassl-msft lusassl-msft requested review from a team and tweekerz as code owners August 21, 2025 12:22
@lusassl-msft
Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@lusassl-msft lusassl-msft merged commit 027cd5f into main Aug 21, 2025
4 checks passed
@lusassl-msft lusassl-msft deleted the lusassl-21082025-1 branch August 21, 2025 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants