Hello,
We're tryingo to create a custom task that would allow us to create a service account and run some logic.
If you mean an action on the Home page of a Web interface, yes, it is possible. For information on how to configure the Actions pane, have a look at the following tutorial: https://www.adaxes.com/help/ConfigureActionsPane.
These need to start with "svc_". Im able to do this on the default "Add User" commands but seemingly not with custom tasks.
If the service accounts are created in a certain container, you can create a property pattern where the template for generating a default value for the required attribute starts with svc_. Then, you can remove the property from the Web interface form. To achieve this, you can configure the Web interface action to use a custom form. For details, have a look at the corresponding section of the following tutorial: https://www.adaxes.com/help/ConfigureActionsPane/#custom-forms-and-predefined-values. This way you can make sure that the accounts created in the required container are always created with the svc_ prefix. If this is not what you meant, please, describe the required behavior in all the possible details. Live examples and screenshots will be much appreciated. You can post them here or send us at support@adaxes.com.
Alternatively, could I use the built in task and add additional fields to the form?
You can customize forms for user creation and editing: https://www.adaxes.com/help/CustomizeFormsForUserCreationAndEditing. Alternatively, you can configure the required Web interface action to use a custom form: https://www.adaxes.com/help/ConfigureActionsPane/#custom-forms-and-predefined-values.