0 votes

Dear support,

We are trying to achieve a situation where a user will be able to do the following:

  • Create a mail enabled Office 365 contact.
  • Add this office 365 contact to a specific distribution group in Office 365.

I did some searches but am unable to find a specific script that will let us achive this. After a chat with support i'm aware that Azure AD is not yet supported but its should be able to be achievable through scripts.

Hopefully you can help me on this quest.

Thanks a lot and kind regards,


by (250 points)

1 Answer

0 votes
by (194k points)

Hello Remco,

To create a mail-enabled contact in Microsoft 365, you can use the following script from our repository: https://www.adaxes.com/script-repository/create-office-365-contact-s383.htm. As for adding to cloud-only groups, unfortunately we do not have the exact script. However, you can check the following one from our repository: https://www.adaxes.com/script-repository/add-user-to-office-365-distribution-groups-based-on-business-unit-membership-s254.htm. If you have issues writing the full desired script, please, specify how it should be executed (e.g. in a business rule triggering After creating a contact, in a custom command, etc.). If the script should do anything except for creating a mail-enabled contact in Microsoft 365 and adding the contact to a cloud group, please, provide all the possible details with live examples.


Thanks a lot for the extreme quick response, i'll look into this!

Related questions

0 votes
1 answer

I have a business rule to create a user in our AD, and then have it create a new O365 account and assign it a license. How can I have it create a temporary password that I specify during that business rule?

asked Jun 17, 2020 by keecit (450 points)
0 votes
1 answer

We just finalize the purchase to our software license company and I want to try to automate more with Adaxes. Is there a way that it can automatically create mailboxes in Office 365 ... that relays out to 365) and set up a script to migrate them to Office 365?

asked Mar 6, 2013 by danftasc (3.4k points)
0 votes
1 answer

I'm learning the Adaxes powershell methods for creating objects. I would like to create a contact that is mail enabled. I attempted to use the example but it failed ... example of how to create a mail enabled contact with PowerShell using the New-AdmObject?

asked Jul 29, 2020 by ComputerHabit (6k points)
0 votes
1 answer

Hi, We encounter an error on one of our Adaxes service (Adaxes 2016 3.7.13430) when activating Licence for new user : Softerra.Adaxes.CommandPipeline.CommandProcessingException: The ... stack trace --- Any idea ? Thank you in advance for your help regards

asked Sep 20, 2017 by smasset (4.4k points)
0 votes
1 answer

I am getting the following error within Adaxes when I try to connect to my Office 365 tenant or run any powershell scripts against it. Failed to create an Office ... .Runspaces.InitialSessionState' threw an exception. Does anybody have a solution for this :?:

asked Jun 17, 2015 by rmedeiros (1.8k points)
2,412 questions
2,165 answers
224,326 users