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 (130 points)

1 Answer

0 votes
by (211k 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

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 (420 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 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)
0 votes
1 answer

We have a business need for automating and controlling the creation of service accounts in our AD. For example, we want all new service accounts to start with "svc_" for ... customize the "New User" form to create a "New Service Account" workflow in Adaxes?

asked Sep 10 by joshua.lapchuk (50 points)
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 (40 points)
2,607 questions
2,344 answers
6,228 comments
861,048 users