0 votes

I have a business rule that needs to needs to remember the current setting of an attribute (msDS-PrimaryComputer) after the attribute is changed. This attribute stores the computer that is assigned to the user and which VLAN group the computer is assigned to. The purpose behind remembering the old system name is to clear the description of the system, clear it's group memberships and set it to retired/redeploy/etc. The business rule is set to take action after a change to the user settings which of course means that the attribute has already changed.

ago by (150 points)

1 Answer

0 votes
ago by (302k points)

Hello,

Do parameters persist between custom commands?

Parameters in different custom commands are not related to each other in any way.

The business rule is set to take action after a change to the user settings which of course means that the attribute has already changed.

The only option is to add a business rule triggering Before updating a user. The rule will use a script to preserve the current msDS-PrimaryComputer property value in one of Adaxes custom attributes (e.g. CustomAttributeObject1). The following tutorial will be helpful: https://www.adaxes.com/help/ValidateModifyUserInputWithScript.

Related questions

0 votes
1 answer

We have a number of PowerShell scripts I'd love to expose to normal users simply by adding them as Custom Commands, my problem is they require additional ... with the intuitive GUI and utilise existing Adaxes features regarding PowerShell and Custom Commands.

asked Nov 13, 2017 by Staj (350 points)
0 votes
1 answer

Code is below. But the subject says it all. When I run the command targeted in this function via the Adaxes GUI or the web interface, it runs without issue. When run using this ... = $null } } end { $admNS = $admService = $credUser = $credPwd = $null } }

asked Apr 3, 2024 by jrtolle (20 points)
0 votes
0 answers

You do not need to create a trust between AD domains to manage them with an Adaxes service. When registering an AD domain, an account with administrative permissions ... control the user access to the managed resources, the Adaxes service uses Security Roles.

asked Apr 29, 2009 by Adaxes (580 points)
0 votes
1 answer

Is there a way to configure a Custom Command parameter to accept multiple values so I can then add them to a multi value attribute such as adm-CustomAttributeObjectMultiValue1 ... in my specific case I'm looking to use a directory object picker parameter

asked Nov 27, 2024 by AM (50 points)
0 votes
1 answer

We're tryingo to create a custom task that would allow us to create a service account and run some logic. These need to start with "svc_". Im able to do this on ... possible? Alternatively, could I use the built in task and add additional fields to the form?

asked Jul 30, 2024 by ZoomGhost (280 points)
3,688 questions
3,373 answers
8,531 comments
549,630 users