On premises agent to block and unblock users on the Active Directory based on missing timesheets in Skills Workflow
- .NET Framework 4.8
- Visual Studio 2015 or later
- Download the source code and open the solution in Visual Studio.
- Open app.config file and change the app settings accordingly. These settings are explained further below.
- Run the application
- ADBlocker application should be run as a Scheduled Task. Create a new Scheduled Task in Task Scheduler.
- Manage the created Task. Choose a user with permissions to run the task and set a trigger to run the task in repeat mode.
- The ADBlocker task should run with a recurring short period of time.
- Set the task to run the ADBlocker.exe file. No entry parameters are required
- Active Directory
- This are the credentials for the Active Directory you're accessing.
- AD:Domain - This setting should be parametrized with the Active Directory domain.
- AD:User - Active Directory User Username. This user should have permissions to block/unblock users from the Active Directory.
- AD:Password - Active Directory User password.
- SkillsWorkflow
- Skills:ApiUrl - SkillsWorkflow Api base url. It depends on the Environment and Tenant being used. It has the following scructure https://api-tenant-environment-we.skillsworkflow.com. Use the name of the company provided to you for the parameter "tenant". For "environment" use "prod", "test" or "dev" for one of Skills Workflow's Environments: Production, Testing, Development.
- Skills:AppId - SkillsWorkflow Tenant application id. This id must be requested to SkillsWorkflow team. It will be used to ensure comunication with SkillsWorkflow api.
- Skills:AppSecret - SkillsWorkflow Tenant application secret. It is used with Tenant application id.
- Skills:SSLPublicKey - SkillsWorkflow SSL certificate public key. It is used to validate requests to SkillsWorkflow Api. This key must be requested to SkillsWorkflow team.
- Skills:Environment - AdBlocker application environment settings. When set to "Local" it will disable SSL certificate validations and application errors will be registered accordingly. To use SSL certificate validation use "Production" mode. Use "Production", "Test", "Development" or "Local" depending on the environment the application is being deployed.
- Raygun
- Raygun:JobName - Parameter used to group information in Raygun logging platform. Default value is "ADBlocker".
- Raygun:AppKey - Raygun platform access key. This key must be requested to SkillsWorkflow team.