Coder Social home page Coder Social logo

helloid-conn-prov-target-topdesk's Introduction

HelloID-Conn-Prov-Target-Topdesk

ℹ️ Information
This repository contains the connector and configuration code only. The implementer is responsible to acquire the connection details such as username, password, certificate, etc. You might even need to sign a contract or agreement with the supplier before implementing this connector. Please contact the client's application manager to coordinate the connector requirements.

Table of Contents

Introduction

TOPdesk provides a RESTful API that allows you to programmatically interact with its services and data.

Connector Icon

https://avatars1.githubusercontent.com/u/14311896?s=200&v=4

Getting Started

By using this connector you will have the ability to create one of the following items in TOPdesk:

  • Simple changes
  • Extensive changes
  • Incidents
  • Accounts

In this project we are connecting to the TOPdesk API using the Powershell Invoke-RestMethod cmdlet. Before we can start using this, we have to setup and configure our API access first.

Permissions

The following permissions are required to use this connector. This should be configured on a specific Permission Group for the Operator HelloID uses.

PermissionReadWriteCreateArchive
Call Management    
First line callsxxx 
Second line callsxxx 
Escalate calls x  
Link object to call x  
Link room to call x  
Change Management    
Requests for Simple Changexxx 
Requests for Extensive Changexxx 
Simple Changesxx  
Extensive Changesxx  
New Asset Management    
Templatesx   
Supporting Files    
Personsxxxx
Operatorsxxxx
Operator groupsx   
Suppliersx   
Roomsx   
Login data x  
Reporting API    
REST APIx   
Use application passwords x  

(To create departments and budgetholders, you will need to allow the API account read and write access to the "Instellingen voor Ondersteunende bestanden".)

API Access

Getting Connected to the API

  1. Go to your TOPdesk portal (e.g., https://customer.topdesk.net/), and log into an operator account.
  2. Go to Modules > Supporting Files > Overview > Permission groups.
  3. Select the New Permission Group button.
  4. Enter a Name for the permission group.
  5. Configure te correct permissions as described in the table above.
  6. Select the Save button.
  7. Select the Operators tab.
  8. Select the Links Wizard button.
  9. Select the operator whose credentials you wish to use to access the TOPdesk API.
  10. Select the Link button.
  11. Select the user account icon in the top-right corner of the screen, and in the drop down, select My Settings.
  12. Under the Application passwords section, select the Add button.
  13. Enter an Application name.
  14. Select the Create button.
  15. Copy the Application password.

To work with the API TOPdesk expects an application password, not the password used to login to the web interface. More information about this specific password can be found on the following Documentation page.

For more information about the TOPdesk API see the following TOPdesk Documentation page.

Usage

When running into 403 issues when creating changes, make sure the configured change template is available for use in change requests. This option can be enabled from the second tab of the change template configuration page.

Update the scripts with your own values, under the #TOPdesk system data comment:

url: Replace 'xxxx' with your organization's TOPdesk subdomain.
apiKey: The application password you copied.
userName: The TOPdesk operator username that you linked to the new permission group you created.

(Optional) when using the connector to handle Incidents or Changes you have to configure the path to where your exampleChanges.json or exampleIncidents.json are being stored

path = C:\Temp\Powershell\TOPDesk\exampleChanges.json

For more information about our HelloID PowerShell connectors, please refer to our general Documentation page

It is now possible to use the manager or the employee as a requester of a change, by using the words 'employee' or the word 'manager' as a value in the 'Requester' parameter. Please make sure the person is enabled(not archived) when setting the employee as the requester when creating a change. Usually you need to disable any action in the disable task, and archive the user in the delete task. An example for a dummy disable task is displayed below:

#Initialize default properties
$success = $False;
$p = $person | ConvertFrom-Json
$aRef = $accountReference | ConvertFrom-Json
$auditMessage = " not disabled succesfully";

if(-Not($dryRun -eq $True)){  
    $success = $True
    $auditMessage = "disabled successfully";
}

#build up result
$result = [PSCustomObject]@{ 
	Success = $success;
	AuditDetails = $auditMessage;
};

Write-Output $result | ConvertTo-Json -Depth 10;

HelloID Docs

The official HelloID documentation can be found at: https://docs.helloid.com/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.