User Profile
Arun_Joseph
Copper Contributor
Joined Jun 22, 2021
User Widgets
Recent Discussions
Intune APIs not working since Yesterday [Dec 21 IST]
APIs we are using: Doc: https://docs.microsoft.com/en-us/graph/api/intune-devices-manageddevice-list?view=graph-rest-1.0 API: {{GRAPH_API_V1}}/deviceManagement/managedDevices? $filter=operatingSystem%20eq%20'Android' Doc: https://docs.microsoft.com/en-us/graph/api/intune-devices-manageddevice-executeaction?view=graph-rest-beta API: {{GRAPH_API_BETA}}/deviceManagement/managedDevices/executeAction Response: { "error": { "code": "UnknownError", "message": "{\"ErrorCode\":\"Forbidden\",\"Message\":\"{\\r\\n \\\"_version\\\": 3,\\r\\n \\\"Message\\\": \\\"An error has occurred - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: 526d6bdf-6f83-47a9-bf81-ca89df4f6b6d - Url: https://fef.msuc02.manage.microsoft.com/DeviceFE/StatelessDeviceFEService/deviceManagement/managedDevices?api-version=2021-04-07&$filter=operatingSystem+eq+%27Android%27\\\",\\r\\n \\\"CustomApiErrorPhrase\\\": \\\"\\\",\\r\\n \\\"RetryAfter\\\": null,\\r\\n \\\"ErrorSourceService\\\": \\\"\\\",\\r\\n \\\"HttpHeaders\\\": \\\"{\\\\\\\"WWW-Authenticate\\\\\\\":\\\\\\\"Bearer realm=\\\\\\\\\\\\\\\"urn:intune:service,c3998d6e-2e37-4c56-87b5-7b444ee1cb26,f0f3c450-59bf-4f0d-b1b2-0ef84ddfe3c7\\\\\\\\\\\\\\\"\\\\\\\"}\\\"\\r\\n}\",\"Target\":null,\"Details\":null,\"InnerError\":null,\"InstanceAnnotations\":[]}", "innerError": { "date": "2021-12-22T05:28:40", "request-id": "526d6bdf-6f83-47a9-bf81-ca89df4f6b6d", "client-request-id": "526d6bdf-6f83-47a9-bf81-ca89df4f6b6d" } } }Solved4.5KViews0likes8CommentsHow to get the email of intune device assigned user through Graph API?
I'm using the following API to fetch the managed device properties and it has a field named emailAddress but it is empty API : https://docs.microsoft.com/en-us/graph/api/intune-devices-manageddevice-get?view=graph-rest-1.0 Response : { "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#deviceManagement/managedDevices", "@odata.count": 1, "value": [ { "id": "90b67389-2856-43ed-8142-cxxxxxxxxxx", "userId": "e99a55d5-fe5d-4142-ad8f-xxxxxxxxxxx", "deviceName": "arun.xxxxx_AndroidForWork_7/1/2021_2:34 PM", "managedDeviceOwnerType": "company", "enrolledDateTime": "2021-07-01T14:34:07Z", "lastSyncDateTime": "2021-07-15T07:43:20Z", "operatingSystem": "Android", "complianceState": "compliant", "jailBroken": "false", "managementAgent": "mdm", "osVersion": "8.1.0", "easActivated": true, "easDeviceId": "afw21FB64B73D7Exxxxxxxxxxxxxx", "easActivationDateTime": "0001-01-01T00:00:00Z", "azureADRegistered": true, "deviceEnrollmentType": "deviceEnrollmentManager", "activationLockBypassCode": null, "emailAddress": "", "azureADDeviceId": "xxxxxxxx-16fe-4a9e-8bcd-xxxxxxxx", "deviceRegistrationState": "registered", "deviceCategoryDisplayName": "Unknown", "isSupervised": false, "exchangeLastSuccessfulSyncDateTime": "0001-01-01T00:00:00Z", "exchangeAccessState": "none", "exchangeAccessStateReason": "none", "remoteAssistanceSessionUrl": null, "remoteAssistanceSessionErrorDetails": null, "isEncrypted": true, "userPrincipalName": "arun.joseph@xxxxxx.onmicrosoft.com", "model": "Nexus 6P", "manufacturer": "Huawei", "imei": "xxxxxxxxxx", "complianceGracePeriodExpirationDateTime": "2021-07-15T03:41:27Z", "serialNumber": "xxxxxxxxxxx", "phoneNumber": "", "androidSecurityPatchLevel": "2018-12-05", "userDisplayName": "Arun Joseph", "configurationManagerClientEnabledFeatures": null, "wiFiMacAddress": "xxxxxxxxxxx", "deviceHealthAttestationState": null, "subscriberCarrier": "", "meid": "xxxxxxxxx", "totalStorageSpaceInBytes": 0, "freeStorageSpaceInBytes": 0, "managedDeviceName": "arun.joseph_AndroidForWork_7/1/2021_2:34 PM", "partnerReportedThreatState": "unknown", "iccid": null, "udid": null, "notes": null, "ethernetMacAddress": null, "physicalMemoryInBytes": 0, "deviceActionResults": [] }, ] } Note: 1. I have redacted some values with xxxx for obvious reasons 2. I have enrolled this device using company portal android app As u can see, the emailAddress field is empty but userPrincipalName field is giving the user's mail id. but I'm not sure if userPrincipalName will always have the email of the mapped user. My questions: 1. Will userPrincipalName field always have mapped user's email? 2. When will the emailAddress field be empty and when will it have value? Kind regards, Arun JosephSolved4.2KViews0likes2CommentsResearching for an API to get only modified managed devices in Endpoint manager (Intune)
To fetch the managed devices I'm using following the API https://docs.microsoft.com/en-us/graph/api/intune-devices-manageddevice-get?view=graph-rest-1.0 Is it possible to fetch only the devices which are updated ( some change in the returned attributes ) a. after a certain time.( say after June 15 2020) (or) b. after the last time I fetched managed devices Thanks in advance 🙂SolvedIs there any limit on the number of devices returned for the Intune's Graph get list API ?
There is no mentioning of pagination for the intune devices retuned in the response. So assuming there are 50k devices enrolled in Intune ( now Endpoint Manager ), will the API return the attributes of all the 50k devices in a single GET call? API Doc: https://docs.microsoft.com/en-us/graph/api/intune-devices-manageddevice-get?view=graph-rest-betaSolvedRename action in Microsoft Endpoint Manager (Intune) not working
I have performed a device Rename action in Endpoint manager through its MS Graph Rename API and got success response but the device name is still unchanged. API : https://docs.microsoft.com/en-us/graph/api/intune-devices-manageddevice-setdevicename?view=graph-rest-beta Timeline: Previous Device name : MACHINE-W10-10 Attempted to rename Device to MACHINE-W10-11 Endpoint manager said success Waited more than 24 hours but name is still unchanged Am I missing something or is this an issue? I have raised the same question in Stackoverflow too https://stackoverflow.com/questions/68083762/rename-action-in-microsoft-endpoint-manager-intune-not-working
Recent Blog Articles
No content to show