0 votes

Hello! Tell me, it is possible to make it so that if the business rule, "before creating exchange mailbox', worked with an error (checking for the uniqueness of the alias is done), then further steps to create a user were not performed. It is necessary if the user alias is not unique, then the user is not created.

by (100 points)

1 Answer

0 votes
by (216k points)

Hello Alvares,

Unfortunately, there is no such possibility. To achieve the desired, you need to check the alias for uniqueness in a business rule triggering Before creating a user. If the check fails, you can cancel user creation right in the script using the $Context.Cancel() method.

Also, you can consider another approach by using this script from our repository that modifies the Exchange alias and username in case it is not unique instead of canceling the operation.

Related questions

0 votes
1 answer

I am trying to trigger processing outside of Active Directory when an account is created based on the source user account that was used. Does Adaxes store the source account anywhere?

asked Oct 9, 2023 by jnordell (20 points)
0 votes
1 answer

We have multiple business rules related to the modification of user properties which are specifically tailored for certain tasks. I'm trying to add another business rule which ... want the first rule to trigger. Hopefully this makes sense. Thanks in advance!

asked Apr 14, 2023 by Homelander90 (350 points)
0 votes
1 answer

Is there a way to receive an email if a FAILED operation status is logged to Logging?

asked Jun 29, 2016 by casey.cochran (20 points)
0 votes
0 answers

When attempting to assign licenses during the "after creating a user" rule we're reciving the following error. Failed to create a remote mailbox for the user. The address ' ... mail attribute to the proper format that isn't the onmicrosoft.com domain as well.

asked Sep 2, 2021 by zorps (20 points)
0 votes
1 answer

Hello, Is there a way to have an option to delay creating a user? Right now when we fill out the form for a new user it creates immediately. We have times where ... queue until midnight then it processes. I know it sounds crazy but it would help us immensely.

asked Feb 22, 2018 by nturner (100 points)
3,549 questions
3,240 answers
8,232 comments
547,814 users