Share via

[ERROR] Graph API - "Request not applicable to target tenant.

Leo Yang 21 Reputation points
2022-10-26T09:24:10.877+00:00

GET https://graph.microsoft.com/beta/tenantRelationships/managedTenants/tenants

response status: 400 Bad Reuqest

response body:

{
"error": {
"code": "BadRequest",
"message": "Request not applicable to target tenant.",
"innerError": {
"date": "2022-10-26T09:07:01",
"request-id": "71946423-e0b6-4bdf-89fa-455138d5448c",
"client-request-id": "71946423-e0b6-4bdf-89fa-455138d5448c"
}
}
}

Microsoft Security | Microsoft Graph
0 comments No comments

Answer accepted by question author

Srinivasa Rao Darna 6,851 Reputation points Microsoft External Staff
2022-10-26T11:56:03.94+00:00

Hi @Leo Yang ,

The error message indicates you are running this API against a tenant that doesn't have active Intune subscription.
Please note, the Microsoft Graph API for Intune requires an active Intune license for the tenant.

Alos note, APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported

Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

Was this answer helpful?

2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.