0 votes

Hello,

I need some advice. I'd like to create a specific After user creation action, but I don't know exactly how. In our environment a new user need to assign a MS365 E3 license. But we don't allways have the right amount of free licenses. (I already create a scheduled report for that. :)) I would like to send an e-mail IF this Activate MS365 account step run to failed (but at only this step) and pause the after user creation process if there is not enough free licenses. Maybe the send to approve will help, but I don't see how should I configure this.

By the way, which is the simplest solution to create an MS365 mailbox in a hybrid environment? I found two (pritty old) answer on the site, but they are four or more years old. image.png

https://www.adaxes.com/questions/313/create-user-mailbox-in-office-365 Will it work in 2020?

Thank you for your answer.

by (50 points)

1 Answer

+1 vote
by (274k points)

Hello,

I would like to send an e-mail IF this Activate MS365 account step run to failed (but at only this step) and pause the after user creation process if there is not enough free licenses. Maybe the send to approve will help, but I don't see how should I configure this.

It can be done by requesting approval for licenses assignment if there are no licenses available in a Business Rule triggering After creating a user. If there are licenses available, the rule will just assign them. If there are no available licenses, there will be an email notification sent and the licenses assignment will be submitted for approval. As a result, user provisioning will be postponed until licenses are purchased and the request for licenses assignment is approved. Finally, the Business Rule will look like the following: image.png If this approach meets your needs, we will provide you with the script that will be used in the Business Rule condition.

By the way, which is the simplest solution to create an MS365 mailbox in a hybrid environment?

There is no need to use scripts for enabling remote mailboxes. Adaxes can be configured to automatically enable them when a Microsoft 365 license with access to Exchange Online is assigned to a user. For details on how to configure the behavior, have a look at the following help article: https://www.adaxes.com/help/?HowDoI.PerformExchangeTasks.ConfigureEnablingDisablingOfRemoteMailboxes.html.

0

Thank you for your excellent support. I will try it. But as I saw, you called the "No Microsoft 365 licenses available" script. Where can I find this script? Would you please share it, I couldn't find it in the script repository.

0
0

Thank you are great! Have a nice day! :)

Related questions

0 votes
1 answer

When we deprovision a user the member of groups are deleted and the power shell scrips only runs as removing all memberships. I can't see what was removed. Is there a scrips I can run prior to removing those memberships that will e-mail what they are?

asked Oct 15, 2019 by meyerm (50 points)
0 votes
1 answer

Is there a way to have the Create User trigger to run a command to trigger the update user flag/trigger to be hit? The goal is to have specific Create User tasks to also go through the same tasks as the Update user.

asked Mar 2, 2023 by mobosys (290 points)
0 votes
1 answer

I need a way of triggering a business rule based on the user (and not the group) being added or removed from a group. The reason I would like this triggered on the user is so ... prefer not to do that. I am checking to see if there is another way to do this.

asked May 16, 2023 by mark.it.admin (2.3k points)
0 votes
0 answers

Hello, I'm using this script as part of a deprovisioning process https://www.adaxes.com/script-repository/disable-all-computers-managed-by-a-user-s29.htm I'm using ... The script executes with no errors, but the computer managed by the user remains enabled.

asked Jun 5, 2020 by bavery (250 points)
0 votes
1 answer

How can i différenciante the two user without opening each one of them ?

asked Jan 20, 2023 by eric.lebrun (20 points)
3,386 questions
3,085 answers
7,844 comments
545,553 users