0 votes

I would like to know what is the correct process for creating a new user knowing that our infrastructure is hybrid and the assignment of licenses on Microsoft 365 is done through active directory groups and not directly on the individual user. Example user1 assigned to group G_Microsoft365E5 will have the Microsoft365E5 license, user2 assigned to group G_OfficeP1 will have the OfficeP1 license. Thanks in advance Simone

by (430 points)

1 Answer

0 votes
by (289k points)

Hello Simone,

As we understand, you need to enable remote mailboxes for the users. The process with require using a business rule and a scheduled task. The rule will trigger After creating a user and mark them (e.g. by setting CustomAtributeBoolean1 to True). The scheduled task will check the mark and whether the user has a mailbox. If the conditions are met, the scheduled task will execute this script from our repository and then clear the mark. You can assign the task only over the members of the groups that are used for assigning Microsoft 365 licenses with access to Exchange Online. Finally, you should have something like the following:

Business rule image.png Scheduled task image.png

0

Thanks for your reply, but in this case the user's mailbox will enable only when the Scheduled task run. There is a possible to call the Scheduled task when the user was created?

0

Hello Simone,

It is only the remote mailbox in on-premises Exchange that will be enabled by the scheduled task. The mailbox itself will be automatically created in Exchange Online once the Microsoft 365 license is assigned. As another option, you can use the script in your business rule triggering After creating a user right next to the action adding the user to the corresponding group. image.png

0

I tried what was proposed and the office 365 mailbox works correctly unfortunately the exchange attributes are not filled in, the mailbox is not present as an object on exchange on prem, it is not a real remote mailbox. The value of the RemoteRecipientType attribute is NONE and not ProvisionMailbox as I expected. This does not allow me to properly use the internal smtp relay on our systems. I think I need to make a powershell script where to run the Enable-remotemailbox command, correct?

0

Hello Simone,

The script we referenced does exactly the same thing and also in the background it uses the very same cmdlet. Most probably the behavior you are facing occurs because the synchronization did not take place yet. Try running AAD Connect manually and then check the attributes.

0

thanks for your patience, now everything works. The problem was related to the incorrectly assigned license

Related questions

0 votes
1 answer

Hi all I need to modify the template $remoteRoutingAddressTemplate with the default exchange option automatically update email addresses disable. How i make it?

asked Nov 28, 2022 by Simone.Vailati (430 points)
0 votes
1 answer

we have an exhange 2016 hybrid environment. when we use adaxes to create a new user it creates an exhchange user mailbox, i need the mailbox to be of type O365.

asked Sep 28, 2020 by Derek.Axe (480 points)
0 votes
1 answer

This article states that managment of shared mailboxes is added. https://www.adaxes.com/info_whats-new_2019.1.htm#exchange Where is the details on implementation? It seems like ... mismatch on what you say and what the software does and lack of instructions.

asked Aug 18, 2020 by ComputerHabit (790 points)
0 votes
1 answer

Hi, I'm probably over thinking this, so I'm hoping to get some clarity. But we've had an issue for a while and I can't get my head around it. When we create a ... exchange isn't needed for most of our environment now that we're Windows 10/11. Thanks, Gary

asked Sep 16, 2022 by gazoco (490 points)
0 votes
1 answer

Hi folks, I am looking for suggestions on the best way to create/migrate/remote move our student mailboxes to 365. Until now, I have been creating the new AD accounts and ... a 'remote mailbox' in the contacts container. Let the magic begin.... Thanks Kempy

asked Jan 7, 2015 by ckemp (170 points)
3,546 questions
3,237 answers
8,230 comments
547,809 users