{"id":46211008,"url":"https://github.com/pliancy/intune-node","last_synced_at":"2026-03-03T09:08:27.721Z","repository":{"id":38377841,"uuid":"260117455","full_name":"pliancy/intune-node","owner":"pliancy","description":"NodeJS API wrapper for Intune","archived":false,"fork":false,"pushed_at":"2026-02-24T16:05:12.000Z","size":2414,"stargazers_count":11,"open_issues_count":12,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-24T20:47:43.027Z","etag":null,"topics":["microsoft","microsoft-intune","module","nodejs"],"latest_commit_sha":null,"homepage":"https://pliancy.github.io/intune-node/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pliancy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-04-30T04:58:41.000Z","updated_at":"2025-04-28T23:20:32.000Z","dependencies_parsed_at":"2023-10-17T02:09:44.227Z","dependency_job_id":"d82cb394-7a85-485a-9410-417a2206a9b2","html_url":"https://github.com/pliancy/intune-node","commit_stats":null,"previous_names":["santese/intune-node"],"tags_count":32,"template":false,"template_full_name":null,"purl":"pkg:github/pliancy/intune-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pliancy%2Fintune-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pliancy%2Fintune-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pliancy%2Fintune-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pliancy%2Fintune-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pliancy","download_url":"https://codeload.github.com/pliancy/intune-node/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pliancy%2Fintune-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30038671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T06:58:30.252Z","status":"ssl_error","status_checked_at":"2026-03-03T06:58:15.329Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["microsoft","microsoft-intune","module","nodejs"],"created_at":"2026-03-03T09:08:25.587Z","updated_at":"2026-03-03T09:08:27.713Z","avatar_url":"https://github.com/pliancy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Microsoft Intune SDK\n\n[Full Documentation](https://pliancy.github.io/intune-node/) \n\n## Getting Started\n\nYou can install the package with the following command:\n\n```javascript\nnpm install microsoft-intune\n```\n\n```javascript\nyarn add microsoft-intune\n```\n\nImport the package \n\n```javascript\nimport { Intune } from 'microsoft-intune'\n```\n\nInitialize with Client ID and Client Secret Auth:\n\n\n```javascript\n  const intune = new Intune({\n    authentication: {\n      clientId: '',\n      clientSecret: ''\n    },\n    tenantId: ''\n  })\n```\n\nOptionally Pass a Refresh token to use refresh_token auth\n\n```javascript\n const intune = new Intune({\n    authentication: {\n      clientId: '',\n      clientSecret: ''\n      refreshToken: ''\n    },\n    tenantId: ''\n  })\n```\n\nUpdated refreshToken from Microsoft can be accessed from:\n\n```javascript\nintune.refreshToken\n```\n\n## Example Usage\n\n### Get all Intune Devices\n\n```javascript\nawait intune.devices.list()\n```\n\n### Get all AzureAd Devices\n\n```javascript\nawait intune.devices.listAzureAdDevices()\n```\n\n### Get all Device Configurations\n\n```javascript\nawait intune.deviceConfigurations.list()\n```\n\n### Create Device Configuration\n\n```javascript\nconst deviceConfiguration = {\n  \"@odata.type\": \"#microsoft.graph.windows10GeneralConfiguration\",\n  \"description\": \"Disables sleep when lid is closed\",\n  \"displayName\": \"Power - Disable Sleep for Lid Close\",\n  \"powerLidCloseActionPluggedIn\": \"noAction\"\n}\n\nawait intune.deviceConfigurations.create(deviceConfiguration)\n```\n\n### Create Office Suite App\n\n```javascript\nconst officeApp = { \n  \"@odata.type\": \"#microsoft.graph.officeSuiteApp\",\n  \"displayName\": \"Office 365\",\n  \"description\": \"Office 365 for Windows 10\",\n  \"publisher\": \"Microsoft\",\n  \"largeIcon\": null,\n  \"isFeatured\": true,\n  \"privacyInformationUrl\": \"https://privacy.microsoft.com/en-US/privacystatement\",\n  \"informationUrl\": \"https://products.office.com/en-us/explore-office-for-home\",\n  \"owner\": \"Microsoft\",\n  \"developer\": \"Microsoft\",\n  \"notes\": \"\",\n  \"roleScopeTagIds\": [],\n  \"autoAcceptEula\": true,\n  \"productIds\": [\n    \"o365ProPlusRetail\"\n  ],\n  \"useSharedComputerActivation\": false,\n  \"updateChannel\": \"deferred\",\n  \"officePlatformArchitecture\": \"x64\",\n  \"localesToInstall\": [],\n  \"installProgressDisplayLevel\": \"none\",\n  \"shouldUninstallOlderVersionsOfOffice\": true,\n  \"targetVersion\": \"\",\n  \"updateVersion\": \"\",\n  \"officeConfigurationXml\": null,\n  \"excludedApps\": {\n    \"access\": true,\n    \"excel\": false,\n    \"groove\": true,\n    \"infoPath\": true,\n    \"lync\": true,\n    \"oneDrive\": true,\n    \"oneNote\": false,\n    \"outlook\": false,\n    \"powerPoint\": false,\n    \"publisher\": true,\n    \"sharePointDesigner\": true,\n    \"teams\": true,\n    \"visio\": true,\n    \"word\": false\n  }\n}\n\nawait intune.mobileApps.create(officeApp)\n```\n\n### Create and Upload Win32 App from Stream\n\nThis function requires the mobileApp Info, fileEncryptionInfo, mobileAppContentFile,  and the unencrypted .intunewin file . Some info for these objects is found in the detection.xml that's located in the extracted .intunewin file.\n\n```javascript\nconst mobileApp = {\n  '@odata.type': '#microsoft.graph.win32LobApp',\n  displayName: 'App',\n  description: '',\n  publisher: 'Publisher',\n  isFeatured: true,\n  privacyInformationUrl: '',\n  informationUrl: null,\n  owner: '',\n  developer: '',\n  notes: '',\n  fileName: 'app.intunewin',\n  installCommandLine: 'install.cmd',\n  uninstallCommandLine: 'uninstall.cmd',\n  applicableArchitectures: 'x64',\n  minimumFreeDiskSpaceInMB: null,\n  minimumMemoryInMB: null,\n  minimumNumberOfProcessors: null,\n  minimumCpuSpeedInMHz: null,\n  msiInformation: null,\n  setupFilePath: 'app.exe',\n  largeIcon: {\n    type: 'image/png',\n    value: 'keejejejejenenbejdejdn...'\n  },\n  minimumSupportedOperatingSystem: {\n    v8_0: false,\n    v8_1: false,\n    v10_0: false,\n    v10_1607: true,\n    v10_1703: false,\n    v10_1709: false,\n    v10_1803: false,\n    v10_1809: false,\n    v10_1903: false\n  },\n  detectionRules: [\n    {\n      '@odata.type': '#microsoft.graph.win32LobAppFileSystemDetection',\n      path: '%ProgramFiles%\\\\App',\n      fileOrFolderName: 'App.exe',\n      check32BitOn64System: false,\n      detectionType: 'exists',\n      operator: 'notConfigured',\n      detectionValue: null\n    }\n  ],\n  requirementRules: [],\n  installExperience: {\n    runAsAccount: 'system',\n    deviceRestartBehavior: 'suppress'\n  },\n  returnCodes: [\n    {\n      returnCode: 0,\n      type: 'success'\n    },\n    {\n      returnCode: 1,\n      type: 'failed'\n    }\n  ]\n}\n\nconst fileEncryptionInfo = {\n    fileDigestAlgorithm: 'SHA256',\n    encryptionKey: 'BKu4^YNmrrfG74yT3R\u0026qAly',\n    initializationVector: 'BKu4^YNmrrfG74yT3R\u0026qAly',\n    fileDigest: 'BKu4^YNmrrfG74yT3R\u0026qAly',\n    mac: 'BKu4^YNmrrfG74yT3R\u0026qAly',\n    profileIdentifier: 'ProfileVersion1',\n    macKey: 'BKu4^YNmrrfG74yT3R\u0026qAly'\n  }\n\nconst mobileAppContentFile = {\n  '@odata.type': '#microsoft.graph.mobileAppContentFile',\n  manifest: null,\n  size: 3332,\n  name: 'app.intunewin',\n  sizeEncrypted: 3993,\n  isDependency: false\n}\n\nawait intune.createWin32LobApp(mobileApp, fileEncryptionInfo, mobileAppContentFile, unencryptedFile) \n```\n\n### Custom Request\n\n```javascript\nawait intune.customRequest.get('/endpoint')\n```\n\n### ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpliancy%2Fintune-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpliancy%2Fintune-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpliancy%2Fintune-node/lists"}