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

by (216k points)
Best answer
0 votes

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.

by (300 points)
0

That is excellent, thank you!

Related questions

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

Hello All, I would like to update the property "Home Directory" from it's current value, to a new value. Right now it's referencing %username% and I would like to ... need. I just need this value generated when the user is created. I appreciate any help.

asked May 26 by SteveCDSAZ (20 points)
0 votes
1 answer

I'd like to properly debug PowerShell runspaces used in Adaxes. Is the PowerShell Debugger safe to use with Adaxes? It's use would allow PowerShell developers to ... to use everywhere PowerShell is available without causing time-outs, race conditions etc.?

asked Dec 13, 2022 by Viajaz (210 points)
0 votes
1 answer

I am wanting to export a list of users including the properties of a specific custom attribute. Ideally, I would be able to run a get-admuser and filter on a custom attribute, but even an excel report with the custom attributes would work. Is this possible?

asked Sep 9, 2021 by ggallaway (300 points)
0 votes
1 answer