0 votes

Wondering if this is possible given the SDK options for manipulating the addaxes business rules. We have a desire to regularly extract all the powershell scripts from various business rules and custom commands so that we can sync them to source control. Is it possible to extract these scripts in an automated way? I know that you can 'save' them within the interface but was hoping to make is so that our developers don't need to remember that and we get 100% coverage with the ability to see the scripts historically.

Thanks,
G

by (300 points)

1 Answer

0 votes
by (216k points)
selected by
Best answer

Hello,

If you need to extract scripts from existing Business Rules, Custom Commands and Scheduled Tasks for further synchronization with a source control system, then yes, it is possible. It can be done via a script in a Scheduled Task. The script will go through the configuration objects to check if they contain scripts. The scripts can be saved according to your needs. For example of the script, have a look at the following script in our repository: https://www.adaxes.com/script-repositor ... s-s224.htm. For information about writing scripts for Adaxes, have a look at our SDK.

0

That is excellent, thank you!

Related questions

0 votes
1 answer

Hi We create different Groups when a new OU is generated. The name of the groups consist of the OU name with additional text. We would like ... value $Context.SetModifiedPropertyValue($property, $value) $Context.LogMessage($value, "Information") Thanks, Mario

asked Jul 9, 2020 by maca (100 points)
0 votes
1 answer

For instance to execute a powershell script that enable MFA for all member in that group?

asked Jan 27, 2023 by samuel.anim-addo (20 points)
0 votes
1 answer

This is the logic I ham useing. $criteria = New-AdmCriteria -Type "User" -Expression {customAttributeBoolean6 -eq $true} $usersC = Get-AdmUser -Filter $criteria -properties * - ... there a better way to get the list of users into this variable? error;

asked Dec 14, 2023 by mightycabal (1.0k points)
0 votes
1 answer

We use this date to determin transfers and start dates. Basicaly on this day the Adaxes resets the password. In the report I would like to ... name, first name, last name, employeeID, CustomAttributeboolean1, customattributeboolean2, and customattributedate2.

asked May 17, 2023 by mightycabal (1.0k points)
0 votes
1 answer

Hi, we've been using this script for some time but after the upgrade to 2023 it's now erroring out as below: As you can see I've done some logging out of ... .BindToObject($groupPath) is not returning an object. Any suggestions of how to fix? Thanks, Allister

asked Dec 1, 2022 by Allister (20 points)
3,346 questions
3,047 answers
7,782 comments
544,984 users