|
| 1 | +--- |
| 2 | +title: "List groupResource objects" |
| 3 | +description: "Get a list of the groupResource objects and their properties." |
| 4 | +author: "kwshea" |
| 5 | +ms.localizationpriority: medium |
| 6 | +ms.subservice: "entra-id-governance" |
| 7 | +doc_type: apiPageType |
| 8 | +ms.date: 11/03/2025 |
| 9 | +--- |
| 10 | + |
| 11 | +# List groupResource objects |
| 12 | +Namespace: microsoft.graph |
| 13 | + |
| 14 | +[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)] |
| 15 | + |
| 16 | +Get a list of the [groupResource](../resources/groupResource.md) objects and their properties. |
| 17 | + |
| 18 | +[!INCLUDE [national-cloud-support](../../includes/all-clouds.md)] |
| 19 | + |
| 20 | +## Permissions |
| 21 | +Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions [only if your app requires it](/graph/permissions-overview#best-practices-for-using-microsoft-graph-permissions). For details about delegated and application permissions, see [Permission types](/graph/permissions-overview#permission-types). To learn more about these permissions, see the [permissions reference](/graph/permissions-reference). |
| 22 | + |
| 23 | +<!-- { "blockType": "permissions", "name": "privilegedaccessgroup_list_resources" } --> |
| 24 | +[!INCLUDE [permissions-table](../includes/permissions/privilegedaccessgroup-list-resources-permissions.md)] |
| 25 | + |
| 26 | +> [!NOTE] |
| 27 | +> In delegated scenarios that use work or school accounts, any Microsoft Entra ID member user can call this API if the required permissions are granted." |
| 28 | +
|
| 29 | +## HTTP request |
| 30 | + |
| 31 | +<!-- { |
| 32 | + "blockType": "ignored" |
| 33 | +} |
| 34 | +--> |
| 35 | +``` http |
| 36 | +GET /identityGovernance/privilegedAccess/group/resources |
| 37 | +``` |
| 38 | + |
| 39 | +## Query parameters |
| 40 | +This method supports the `$select` and `$filter` OData query parameters to help customize the response. For general information, see [OData query parameters](/graph/query-parameters). |
| 41 | + |
| 42 | +## Request headers |
| 43 | +|Name|Description| |
| 44 | +|:---|:---| |
| 45 | +|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).| |
| 46 | + |
| 47 | +## Request body |
| 48 | +Don't supply a request body for this method. |
| 49 | + |
| 50 | +## Response |
| 51 | + |
| 52 | +If successful, this method returns a `200 OK` response code and a collection of [groupResource](../resources/groupResource.md) objects in the response body. |
| 53 | + |
| 54 | +## Examples |
| 55 | + |
| 56 | +### Request |
| 57 | +The following example shows a request. |
| 58 | + |
| 59 | +<!-- { |
| 60 | + "blockType": "request", |
| 61 | + "name": "list_privilegedaccessgroupgroupresource" |
| 62 | +} |
| 63 | +--> |
| 64 | +``` http |
| 65 | +GET https://graph.microsoft.com/beta/identityGovernance/privilegedAccess/group/resources |
| 66 | +``` |
| 67 | + |
| 68 | +### Response |
| 69 | +If successful, this method returns a `200 OK` response code and a collection of [groupResource](../resources/groupResource.md) objects in the response body. |
| 70 | + |
| 71 | +The following example shows the response. |
| 72 | +>**Note:** The response object shown here might be shortened for readability. |
| 73 | +<!-- { |
| 74 | + "blockType": "response", |
| 75 | + "truncated": true, |
| 76 | + "@odata.type": "Collection(microsoft.graph.groupResource)" |
| 77 | +} |
| 78 | +--> |
| 79 | +``` http |
| 80 | +HTTP/1.1 200 OK |
| 81 | +Content-Type: application/json |
| 82 | +
|
| 83 | +{ |
| 84 | + "@odata.context": "https://graph.microsoft.com/beta/$metadata#identityGovernance/privilegedAccess/group/resources", |
| 85 | + "value": [ |
| 86 | + { |
| 87 | + "id": "b88fc7b0-a4ff-45fc-82c4-1d31a807315e" |
| 88 | + }, |
| 89 | + { |
| 90 | + "id": "a13fc7b0-a4ff-45fc-82c4-1d31a807426a" |
| 91 | + } |
| 92 | + ] |
| 93 | +} |
| 94 | +``` |
0 commit comments