After creating a new Microsoft 365 group and disabling the welcome email for its members with powershell:
Set-UnifiedGroup $group_name -UnifiedGroupWelcomeMessageEnabled:$false
I added members to this group and they still got the welcome email. This shows there is some delay on Microsoft side for the changes to get propagated. I verified that this happens with 250 seconds delay (since config update to members addition). Disable of welcome email is rendered useless due to this delay on MS side.
I am looking for a way to create new Microsoft 365 group that has welcome email disabled immediately i.e. new users added immediately should not get the welcome email.
Is there a way to create new Microsoft 365 group programmatically (via api or powershell) with welcome email disabled? I could not find any leads on the same.