0 votes

This is a feature request.

I would love to have somehwere in the service config the ability to declare PowerShell code that will be run before every custom command powershell script.

This could be used to define reusable objects, like global method, global variables, credentials, ...

Use case: I often need to enforce the same check during a object creation and modification that lead to code deduplication.

by (750 points)

1 Answer

0 votes
by (270k points)

Hello Pierre,

Unfortunately, there is currently no possibility to just store some script or code and execute it by a reference. As a solution, you can use custom commands. The commands will only have the scripts you need. To execute a custom command in a business rule, scheduled task or another custom command, use the Execute a Custom Command action. The only requirement in this case is for the custom command and the object (e.g. business rule) that will execute the command to be configured for the same object type (e.g. user).

0

Thank you for that answer. While this is a nice workaround it is not as convenient as what I asked for (at least for my very usecase).

It would be awesome if you could consider my initial requirement as a feature request.

0

Hello Pierre,

Thank you for the suggestion. We forwarded it to the corresponding department for consideration.

Related questions

0 votes
1 answer

We have four domains set up on our Adaxes service, and I can see them in the Administration Console with no problems. However, I have not been able ... to determine the permissible partition values? Thanks in advance! Scott Kuntzelman Electrolux North America

asked Feb 27, 2015 by Kuntzelman (390 points)
0 votes
1 answer

We have a business rule that will update an AD attribute when a new member is added to a group. This business rule works when we use powershell commands or the admin console ... set to trigger "After adding a member to a group". Thank you for your support!

asked Mar 29, 2023 by mark.it.admin (2.3k points)
0 votes
1 answer

I'm trying to understand the best approach to use when developing scripts for Adaxes. In the Management console you can't see the details of an object while coding. ... possible there are additional attributes I don't see. Thanks in advance for your advice.

asked Aug 7, 2020 by ComputerHabit (790 points)
0 votes
1 answer

Is it possible or are there plans to allow the grid view to change based on object time? For example, I would like to display Name, Job Title, Department and Manager when ... but then show name and description only if they are selecting from a list of groups.

asked May 10, 2018 by adaxes_user (420 points)
0 votes
1 answer

Hi, We are trying to setup a workflow where the same action an be triggered either using a Custom Command or from a Business Rule. The Custom Command has been written and ... inside the Custom Command but it is empty (inside the Business Rule it isn't)

asked Mar 24, 2017 by sam.webster (370 points)
3,326 questions
3,026 answers
7,727 comments
544,681 users