0 votes

I have a custom action that should change a users primary email address. It has a custom value called "new primary email address" at the end of the command I want to clear this variable out and set it to null/blank again. As seen in the sceen shot below the last set is to clear the value, but when I run it the value still remains.. is there another way I should be setting this value back to null/blank

image.png

image.png

image.png

by (160 points)

1 Answer

0 votes
by (296k points)

Hello,

Do we understand correctly that it is a business rule triggering After updating a user? If so, there are a few things missing. First of all, you should never remove the If operation succeeded condition from any action set in any business rule triggering after an operation. This way you will make sure that the corresponding actions are not executed in case the initial operation fails. Also, you need to make sure that the rule in question only triggers when the New Primary Email Address property is set to a certain value. Lastly, you should use a dedicated action for updating Exchange properties. Finally, the business rule should look like the following:

image.png Once done, make sure that the Activity Scope is set properly. If left empty, the business rule will never trigger.

0

Sorry, I can provide more background info. Im creating a form, this is to convert a user from contractor to full time employee part of the process is changing the users principal name and e-mail address - the above takes place BEFORE changing a username. All of the task work properly except the clearing of the New Primary Email Address, that doesn't clear out. Thanks for the info about exchange settings but my Powershell script works without a problem changing the ADSI information for on-prem AD. I'm just confused as to why the New Primary Email address doesn't clear out after the other parts of the rule run.

The contractor2FTE flag clears as it should but not the new primary email address

image.png

Should I seperate them? image.png

0

Hello,

Should I seperate them?

It does not matter. Either way should work just fine.

All of the task work properly except the clearing of the New Primary Email Address

For troubleshooting purposes, please, provide us with a full screenshot of the execution log. For details on how to view it, see https://www.adaxes.com/help/ViewOperationsPerformedViaAdaxes. You can post the screenshot here or send to us at support@adaxes.com.

Related questions

0 votes
1 answer

Hi, I am trying to clear the manager of disabled accounts and created a scheduled task for this Right now it is failing for all users (currently 4 in total) With error ... but it won't also remove/clear the manager. All user still have the attribute set.

asked Jan 30, 2024 by wintec01 (1.7k points)
0 votes
1 answer

Trying to evaluate the time in days a user has been in a group based on a custom date field # Get object creation date $object = $Context.GetDirectoryObject() $whenCreated = ... on the AD equivalent user of the Azure user that is in the Azure group? Thanks

asked 5 days ago by msheppard (720 points)
0 votes
1 answer

Hi team, is it possible, to change the shown name of fields during the creation with a web form? For example my customtext1 is called "Temp Name" and on the web interface I would like to show "Select username"

asked Jul 10, 2024 by wintec01 (1.7k points)
0 votes
1 answer

Is it possible to add a user to a group based on hardware ? There are users with a Windows device and a MacOS device. I want to be able to choose this when ... the user via Adaxes and automatically link them to a specific group based on the chosen hardware.

asked Apr 16, 2024 by Cas (200 points)
0 votes
1 answer

Short question: I have a Powershell script that is generating some information and saving it to a SQL table. Is there some way to save that information into a field in AD ... using Adaxes, but I don't know how to go the opposite way basically. Thanks!

asked Mar 12, 2024 by cstaub (100 points)
3,614 questions
3,301 answers
8,366 comments
548,574 users