cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frankie70
Post Patron
Post Patron

Disable welcome message when user added to M365 group

Hi all,

I would like something like this:

In Power Automate:

  1. disable welcome message for M365 group "xyz"
  2. add users to M365 group "xyz"
  3. enable welcome message for M365 group "xyz"

I can do in PowerShell, but here I would like to only use Power Automate.

Has anyone an idea, if this can be done? Any help appreciated!

4 REPLIES 4
VictorIvanidze
Community Champion
Community Champion

Hi @Frankie70,

could you show how you do that  using  PowerShell?

--------------------------------------------------------------------------------------
Contact me if you are interested in custom Power Automate development.
Expiscornovus
Super User
Super User

Hi @VictorIvanidze,

 

As far as I am aware you can only set this setting at the creation of the Group with the Graph API. You can use the resourceBehaviorOptions array property for this. 

https://learn.microsoft.com/en-us/graph/group-set-options#configure-groups

 

Updating it via a PATCH is not supported. The documentation has a note about that:

These behaviors can be set only on group creation (POST).

 

Below is an example to disable the welcome message using the Send an HTTP request action of the Office 365 Groups connector.

 

{
    "description": "Disable Welcome E-mail",
    "displayName": "Disable Welcome E-mail",
    "groupTypes": [
        "Unified"
    ],
    "mailEnabled": true,
    "mailNickname": "disablewelcomeemail",
    "securityEnabled": true,
    "resourceBehaviorOptions": [
        "WelcomeEmailDisabled"
    ]
}

 

resourcebehaviouroptions_group.png



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #PowerVirtualAgents content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


Connect-ExchangeOnline -UserPrincipalName $myusername -Credential $cred
# Disable Welcome Message
Set-UnifiedGroup $Groupname -UnifiedGroupWelcomeMessageEnabled:$false
#Enable Welcome Message
Set-UnifiedGroup $Groupname -UnifiedGroupWelcomeMessageEnabled:$true

Hi @Expiscornovus 

thanks a lot for your messaged idea.

We will try this!

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (5,823)