1

以下是我们运行的查询。它们都是 beta 端点,但我无法对 managedAppPolicies 端点进行身份验证。相同的身份验证详细信息以前有效。权限有变化吗?

https://graph.microsoft.com/beta/managedAppPolicies/
Accept: application/json
Authorization: Bearer ------

Response:
{
  "error": {
    "code": "Forbidden",
    "message": "Application is not authorized to perform this operation - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: b8c9fdff-b1f5-4f36-847e-d31d35c81f65 - Url: https://fef.amsua0502.manage.microsoft.com/MAMAdmin/MAMAdminFEService/managedAppPolicies?api-version=2016-06-16 - CustomApiErrorPhrase: ",
    "innerError": {
      "request-id": "b8c9fdff-b1f5-4f36-847e-d31d35c81f65",
      "date": "2017-05-12T14:50:24"
    }
  }
}

-----------------------------
https://graph.microsoft.com/beta/groups
 - THIS WORKS FINE
Accept: application/json
Authorization: Bearer -------

Response:
{
  "@odata.context": "https://graph.microsoft.com/beta/$metadata#groups",
  "value": [
    {
      "id": "480535ce-03c5-421d-a350-fb7e133b9dc3",
      "deletedDateTime": null,
      "classification": null,
      "createdDateTime": "2017-02-23T07:51:24Z",
      "description": "Self help community for library",
      "displayName": "Library Assist",
      "groupTypes": [
        "Unified"
      ],
      "mail": "library@evomobility.onmicrosoft.com",
      "mailEnabled": true,
      "mailNickname": "library",
      "membershipRule": null,
      "membershipRuleProcessingState": null,
      "onPremisesLastSyncDateTime": null,
      "onPremisesProvisioningErrors": [],
      "onPremisesSecurityIdentifier": null,
      "onPremisesSyncEnabled": null,
      "preferredLanguage": null,
      "proxyAddresses": [
        "SMTP:library@evomobility.onmicrosoft.com"
      ],
      "renewedDateTime": "2017-02-23T07:51:24Z",
      "resourceBehaviorOptions": [],
      "resourceProvisioningOptions": [],
      "securityEnabled": false,
      "theme": null,
      "visibility": "Public"
    },
    {
      "id": "548dc0b3-316f-41e1-8bda-e50b70e446ac",
      "deletedDateTime": null,
      "classification": null,
      "createdDateTime": "2017-03-08T21:07:26Z",
      "description": "This is an updated description",
      "displayName": "CDB TEST USER GROUP 1",
      "groupTypes": [
        "Unified"
      ],
      "mail": "654637b5-c2cd-4542-b98d-3d857f4987df@evomobility.onmicrosoft.com",
      "mailEnabled": true,
      "mailNickname": "654637b5-c2cd-4542-b98d-3d857f4987df",
      "membershipRule": null,
      "membershipRuleProcessingState": null,
      "onPremisesLastSyncDateTime": null,
      "onPremisesProvisioningErrors": [],
      "onPremisesSecurityIdentifier": null,
      "onPremisesSyncEnabled": null,
      "preferredLanguage": null,
      "proxyAddresses": [
        "SMTP:654637b5-c2cd-4542-b98d-3d857f4987df@evomobility.onmicrosoft.com"
      ],
      "renewedDateTime": "2017-03-08T21:07:26Z",
      "resourceBehaviorOptions": [],
      "resourceProvisioningOptions": [],
      "securityEnabled": true,
      "theme": null,
      "visibility": "Public"
    },
    {
      "id": "a61214d7-4b0c-421e-86dd-966fcf7c9908",
      "deletedDateTime": null,
      "classification": null,
      "createdDateTime": "2017-01-24T19:33:53Z",
      "description": "This is auto generated security for O365 MDM policy",
      "displayName": "Default MDM security group",
      "groupTypes": [],
      "mail": null,
      "mailEnabled": false,
      "mailNickname": "BposMailNickName",
      "membershipRule": null,
      "membershipRuleProcessingState": null,
      "onPremisesLastSyncDateTime": null,
      "onPremisesProvisioningErrors": [],
      "onPremisesSecurityIdentifier": null,
      "onPremisesSyncEnabled": null,
      "preferredLanguage": null,
      "proxyAddresses": [],
      "renewedDateTime": "2017-01-24T19:33:53Z",
      "resourceBehaviorOptions": [],
      "resourceProvisioningOptions": [],
      "securityEnabled": true,
      "theme": null,
      "visibility": null
    },
    {
      "id": "f64a6ae8-b234-4d99-9ddb-6379016e2c66",
      "deletedDateTime": null,
      "classification": null,
      "createdDateTime": "2017-04-25T19:19:12Z",
      "description": "TestUser1 ",
      "displayName": "TestUser1",
      "groupTypes": [],
      "mail": null,
      "mailEnabled": false,
      "mailNickname": "677a30f1-c00b-40b1-a023-887d916ff7f3",
      "membershipRule": null,
      "membershipRuleProcessingState": null,
      "onPremisesLastSyncDateTime": null,
      "onPremisesProvisioningErrors": [],
      "onPremisesSecurityIdentifier": null,
      "onPremisesSyncEnabled": null,
      "preferredLanguage": null,
      "proxyAddresses": [],
      "renewedDateTime": "2017-04-25T19:19:12Z",
      "resourceBehaviorOptions": [],
      "resourceProvisioningOptions": [],
      "securityEnabled": true,
      "theme": null,
      "visibility": null
    },
    {
      "id": "fa41896d-b61b-4c59-9ba3-6594b570ce80",
      "deletedDateTime": null,
      "classification": null,
      "createdDateTime": "2017-01-20T20:07:59Z",
      "description": null,
      "displayName": "Test Users Group",
      "groupTypes": [],
      "mail": null,
      "mailEnabled": false,
      "mailNickname": "00000000-0000-0000-0000-000000000000",
      "membershipRule": null,
      "membershipRuleProcessingState": null,
      "onPremisesLastSyncDateTime": null,
      "onPremisesProvisioningErrors": [],
      "onPremisesSecurityIdentifier": null,
      "onPremisesSyncEnabled": null,
      "preferredLanguage": null,
      "proxyAddresses": [],
      "renewedDateTime": "2017-01-20T20:07:59Z",
      "resourceBehaviorOptions": [],
      "resourceProvisioningOptions": [],
      "securityEnabled": true,
      "theme": null,
      "visibility": null
    }
  ]
}

4

1 回答 1

0

试试这个网址:https ://graph.microsoft.com/beta/deviceAppManagement/managedAppPolicies/

注意:您需要在 Intune 实例中具有管理员访问权限。获取令牌时,请查看您是否具有包含以下任一范围的范围详细信息: DeviceManagementApps.Read.All DeviceManagementApps.ReadWrite.All

于 2017-05-16T09:00:34.827 回答