Scheduled task to sync AFAS data to AD groups
Make sure you have Windows PowerShell 5.1 installed on the server where the HelloID agent and Service Automation agent are running.
By using this connector you will have the ability to create AD groups based on data from the AFAS Profit HR system.
[ ] Active Directory PowerShell module
The Active Directory PowerShell module must be installed locally. The module can be installed by installing Remote Server Administration Tools (RSAT) for Windows.
[ ] Windows PowerShell 5.1
Windows PowerShell 5.1 must be installed on the server where the ‘HelloID Directory agent and Service Automation agent’ are running.
The connector is compatible with older versions of Windows PowerShell. Although we cannot guarantuee the compatibility.
[ ] AFAS App Token
Connecting to Profit is done using the app connector system.
Please see the following pages from the AFAS Knowledge Base for more information.
[ ] AFAS GetConnector Tools4ever - HelloID - T4E_HelloID_OrganizationalUnits
The interface to communicate with Profit is through a set of GetConnectors, which is component that allows the creation of custom views on the Profit data. GetConnectors are based on a pre-defined ‘data collection’, which is an existing view based on the data inside the Profit database.
For this connector we have created a default set, which can be imported directly into the AFAS Profit environment.
The following GetConnectors are required by HelloID:
The connection settings are defined in the automation variables.
Variable name | Description | Example value |
---|---|---|
AFASBaseUri | Base URI of the AFAS REST API endpoint for this environment | https://12345.rest.afas.online/ProfitRestServices |
AFASToken | App token in XML format for this environment | \ |
File/Directory | Description |
---|---|
Sync AFAS Organizational Units to AD Groups.ps1 | Synchronizes the AFAS data to AD groups |
Tools4ever - HelloID - T4E_HelloID_OrganizationalUnits.gcn | AFAS GetConnector to provide all Organizational Units |
When a group already exists, the group will be skipped (no update will take place).
For more information on how to configure a HelloID PowerShell scheduled task, please refer to our documentation pages
If you need help, feel free to ask questions on our forum
The official HelloID documentation can be found at: https://docs.helloid.com/