列出 delegatedAdminRelationships
命名空间:microsoft.graph
获取 delegatedAdminRelationship 对象及其属性的列表。
权限
调用此 API 需要以下权限之一。 若要了解详细信息,包括如何选择权限的信息,请参阅权限。
权限类型 | 权限(从最低特权到最高特权) |
---|---|
委派(工作或学校帐户) | DelegatedAdminRelationship.Read.All、DelegatedAdminRelationship.ReadWrite.All |
委派(个人 Microsoft 帐户) | 不支持。 |
应用程序 | 不支持。 |
HTTP 请求
GET /tenantRelationships/delegatedAdminRelationships
可选的查询参数
此方法支持 $select
、、$filter
、$top
、 $orderBy
$count
和 $skipToken
OData 查询参数,以帮助自定义响应。
$top
最多支持 300 个对象。
请求标头
名称 | 说明 |
---|---|
Authorization | 持有者 {token}。 必填。 |
请求正文
请勿提供此方法的请求正文。
响应
如果成功,此方法在响应正文中返回响应 200 OK
代码和 delegatedAdminRelationship 对象的集合。
根据 RFC2616,每个 delegatedAdminRelationship 对象都包含 一个 @odata.etag 属性。
示例
请求
GET https://graph.microsoft.com/v1.0/tenantRelationships/delegatedAdminRelationships
响应
注意:为了提高可读性,可能缩短了此处显示的响应对象。
HTTP/1.1 200 OK
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/v1.0/tenantRelationships/$metadata#delegatedAdminRelationships",
"value": [
{
"@odata.type": "#microsoft.graph.delegatedAdminRelationship",
"@odata.etag": "W/\"JyIwMzAwZTM0ZS0wMDAwLTAyMDAtMDAwMC02MTRjZjI1YzAwMDAiJw==\"",
"id": "5d027261-d21f-4aa9-b7db-7fa1f56fb163-8777b240-c6f0-4469-9e98-a3205431b836",
"displayName": "Contoso admin relationship",
"duration": "P730D",
"customer": {
"tenantId": "52eaad04-13a2-4a2f-9ce8-93a294fadf36",
"displayName": "Contoso Inc"
},
"accessDetails": {
"unifiedRoles": [
{
"roleDefinitionId": "dd4db9a0-cc4a-4213-9f9f-70242232d97e"
}
]
},
"status": "active",
"createdDateTime": "2022-02-10T11:24:42.3148266Z",
"lastModifiedDateTime": "2022-02-10T11:26:44.9941884Z",
"activatedDateTime": "2022-02-10T11:26:44.9941884Z",
"endDateTime": "2024-02-10T11:24:42.3148266Z"
},
{
"@odata.type": "#microsoft.graph.delegatedAdminRelationship",
"@odata.etag": "W/\"JyIwMzAwZTM0ZS0wKklILTAyMDAtMDAwMC02MTRjZjI1YzAwMDAiJw==\"",
"id": "1041ef52-a99b-4245-a3be-cbd3fa7c5ed1-8777b240-c6f0-4469-9e98-a3205431b836",
"displayName": "Contoso subsidiary relationship",
"duration": "P30D",
"customer": {
"tenantId": "4b827261-d21f-4aa9-b7db-7fa1f56fb163",
"displayName": "Contoso subsidiary Inc"
},
"accessDetails": {
"unifiedRoles": [
{
"roleDefinitionId": "29232cdf-9323-42fd-ade2-1d097af3e4de"
},
{
"roleDefinitionId": "3a2c62db-5318-420d-8d74-23affee5d9d5"
}
]
},
"status": "terminated",
"createdDateTime": "2021-09-29T16:52:39.6133896Z",
"lastModifiedDateTime": "2021-10-29T16:57:20.2101088Z",
"activatedDateTime": "2021-09-29T16:55:20.2101088Z",
"endDateTime": "2021-10-29T16:57:20.2101088Z"
}
]
}