Skip to content

Upload intune devices through graph api to topdesk by api

Notifications You must be signed in to change notification settings

buldogwtf/intunetopdesk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

intunetopdesk

Upload intune devices through graph api to topdesk by api

You need the following:

  1. Get card Type id from topdesk ( i made a card type named: device), retrieved the id through postman api call, and update line 69 with it:

https://yourtopdeskurl.topdesk.net/tas/api/assetmgmt/cardTypes

  1. Get your graphapi details and update # Microsoft Graph API Configuration

client_id = 'your-client-id' tenant_id = 'your-tenant-id' client_secret = 'your-client-secret'

make sure it has permission on: DeviceManagementManagedDevices.ReadWrite.All

  1. Get your Topdesk api details and update # TOPdesk Configuration

topdesk_url = 'https://yourtopdeskurl.topdesk.net/tas/api/assetmgmt/assets' topdesk_username = 'your-topdesk-username' topdesk_api_key = 'your-topdesk-api-key'

put the pyton script somewhere.

You have to have from msal import ConfidentialClientApplication installed.

You can run this script as example every morning at 8 through crontab:

0 8 * * * /usr/bin/python3 /path/to/your/script.py

About

Upload intune devices through graph api to topdesk by api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages