I am currently writing a rest API in Go and one of the features is to create office 365 mailboxes. Powershell has the command New-Mailbox, does anyone know if there is a package for Go that "talks" to office 365 exchange?
You can use Microsoft Graph REST APIs. Namely CreateUser request.
There is also go-msgraph package wrapping Microsoft Graph API's in Golang.