Skip to content

Commit 4ea935a

Browse files
authored
Merge pull request #27793 from microsoftgraph/main
Merge to publish.
2 parents 4f2d13f + 354b9cd commit 4ea935a

File tree

45 files changed

+1615
-120
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1615
-120
lines changed
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
---
2+
title: "Remove b2bManagementPolicy appliesTo"
3+
description: "Remove a directoryObject object."
4+
author: "akshukla"
5+
ms.date: 10/27/2025
6+
ms.localizationpriority: medium
7+
ms.subservice: "entra-directory-management"
8+
doc_type: apiPageType
9+
---
10+
11+
# Remove b2bManagementPolicy appliesTo
12+
13+
Namespace: microsoft.graph
14+
15+
[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
16+
17+
Remove a [directoryObject](../resources/directoryobject.md) object.
18+
19+
## Permissions
20+
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+
<!-- {
24+
"blockType": "permissions",
25+
"name": "b2bmanagementpolicy-delete-appliesto-permissions"
26+
}
27+
-->
28+
[!INCLUDE [permissions-table](../includes/permissions/b2bmanagementpolicy-delete-appliesto-permissions.md)]
29+
30+
[!INCLUDE [rbac-b2bmanagementpolicy-apis-write](../includes/rbac-for-apis/rbac-b2bmanagementpolicy-apis-write.md)]
31+
32+
## HTTP request
33+
34+
<!-- {
35+
"blockType": "ignored"
36+
}
37+
-->
38+
``` http
39+
DELETE /policies/b2bManagementPolicies/{b2bManagementPolicyId}/appliesTo/{id}/$ref
40+
```
41+
42+
## Request headers
43+
44+
|Name|Description|
45+
|:---|:---|
46+
|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).|
47+
48+
## Request body
49+
50+
Don't supply a request body for this method.
51+
52+
## Response
53+
54+
If successful, this method returns a `204 No Content` response code.
55+
56+
## Examples
57+
58+
### Request
59+
60+
The following example shows a request.
61+
<!-- {
62+
"blockType": "request",
63+
"name": "delete_appliesto_from_b2bmanagementpolicy"
64+
}
65+
-->
66+
``` http
67+
DELETE https://graph.microsoft.com/beta/policies/b2bManagementPolicies/f596ef0d-42f9-0359-1aaa-12d02b38802a/appliesTo/a6c034b8-621b-dee3-6abb-52cbce801fe9/$ref
68+
```
69+
70+
71+
### Response
72+
73+
The following example shows the response.
74+
>**Note:** The response object shown here might be shortened for readability.
75+
<!-- {
76+
"blockType": "response",
77+
"truncated": true
78+
}
79+
-->
80+
``` http
81+
HTTP/1.1 204 No Content
82+
```
83+
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
---
2+
title: "Get b2bManagementPolicy"
3+
description: "Read the properties and relationships of b2bManagementPolicy object."
4+
author: "akshukla"
5+
ms.date: 10/27/2025
6+
ms.localizationpriority: medium
7+
ms.subservice: "entra-directory-management"
8+
doc_type: apiPageType
9+
---
10+
11+
# Get b2bManagementPolicy
12+
13+
Namespace: microsoft.graph
14+
15+
[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
16+
17+
Read the properties and relationships of [b2bManagementPolicy](../resources/b2bmanagementpolicy.md) object.
18+
19+
## Permissions
20+
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+
<!-- {
24+
"blockType": "permissions",
25+
"name": "b2bmanagementpolicy-get-permissions"
26+
}
27+
-->
28+
[!INCLUDE [permissions-table](../includes/permissions/b2bmanagementpolicy-get-permissions.md)]
29+
30+
[!INCLUDE [rbac-b2bmanagementpolicy-apis-read](../includes/rbac-for-apis/rbac-b2bmanagementpolicy-apis-read.md)]
31+
32+
## HTTP request
33+
34+
<!-- {
35+
"blockType": "ignored"
36+
}
37+
-->
38+
``` http
39+
GET /policies/b2bManagementPolicies/{b2bManagementPolicyId}
40+
```
41+
42+
## Optional query parameters
43+
44+
None.
45+
46+
## Request headers
47+
48+
|Name|Description|
49+
|:---|:---|
50+
|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).|
51+
52+
## Request body
53+
54+
Don't supply a request body for this method.
55+
56+
## Response
57+
58+
If successful, this method returns a `200 OK` response code and a [b2bManagementPolicy](../resources/b2bmanagementpolicy.md) object in the response body.
59+
60+
## Examples
61+
62+
### Request
63+
64+
The following example shows a request.
65+
<!-- {
66+
"blockType": "request",
67+
"name": "get_b2bmanagementpolicy"
68+
}
69+
-->
70+
``` http
71+
GET https://graph.microsoft.com/beta/policies/b2bManagementPolicies/f596ef0d-42f9-0359-1aaa-12d02b38802a
72+
```
73+
74+
75+
### Response
76+
77+
The following example shows the response.
78+
>**Note:** The response object shown here might be shortened for readability.
79+
<!-- {
80+
"blockType": "response",
81+
"truncated": true,
82+
"@odata.type": "microsoft.graph.b2bManagementPolicy"
83+
}
84+
-->
85+
``` http
86+
HTTP/1.1 200 OK
87+
Content-Type: application/json
88+
89+
{
90+
"@odata.type": "#microsoft.graph.b2bManagementPolicy",
91+
"id": "f596ef0d-42f9-0359-1aaa-12d02b38802a",
92+
"deletedDateTime": null,
93+
"description": "Policy used for B2B features",
94+
"displayName": "Policy1",
95+
"definition": [
96+
"{'B2BManagementPolicy':{'Version':1}}"
97+
],
98+
"isOrganizationDefault": true
99+
}
100+
```
101+
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
---
2+
title: "List b2bManagementPolicy appliesTo"
3+
description: "Get a list of directoryObject objects that a b2bManagementPolicy object has been applied to."
4+
author: "akshukla"
5+
ms.date: 10/27/2025
6+
ms.localizationpriority: medium
7+
ms.subservice: "entra-directory-management"
8+
doc_type: apiPageType
9+
---
10+
11+
# List b2bManagementPolicy appliesTo
12+
13+
Namespace: microsoft.graph
14+
15+
[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
16+
17+
Get a list of [directoryObject](../resources/directoryObject.md) objects that a [b2bManagementPolicy](../resources/b2bManagementpolicy.md) object has been applied to. The b2bManagementPolicy can only be applied to [application](../resources/application.md) and [servicePrincipal](../resources/serviceprincipal.md) resources.
18+
19+
## Permissions
20+
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+
<!-- {
24+
"blockType": "permissions",
25+
"name": "b2bmanagementpolicy-list-appliesto-permissions"
26+
}
27+
-->
28+
[!INCLUDE [permissions-table](../includes/permissions/b2bmanagementpolicy-list-appliesto-permissions.md)]
29+
30+
## HTTP request
31+
32+
<!-- {
33+
"blockType": "ignored"
34+
}
35+
-->
36+
``` http
37+
GET /policies/b2bManagementPolicies/{b2bManagementPolicyId}/appliesTo
38+
```
39+
40+
## Optional query parameters
41+
42+
None.
43+
44+
## Request headers
45+
46+
|Name|Description|
47+
|:---|:---|
48+
|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).|
49+
50+
## Request body
51+
52+
Don't supply a request body for this method.
53+
54+
## Response
55+
56+
If successful, this method returns a `200 OK` response code and a collection of [directoryObject](../resources/directoryobject.md) objects in the response body.
57+
58+
## Examples
59+
60+
### Request
61+
62+
The following example shows a request.
63+
<!-- {
64+
"blockType": "request",
65+
"name": "list_directoryobject_from_b2bmanagement_policy"
66+
}
67+
-->
68+
``` http
69+
GET https://graph.microsoft.com/beta/policies/b2bManagementPolicies/f596ef0d-42f9-0359-1aaa-12d02b38802a/appliesTo
70+
```
71+
72+
73+
### Response
74+
75+
The following example shows the response.
76+
>**Note:** The response object shown here might be shortened for readability.
77+
<!-- {
78+
"blockType": "response",
79+
"truncated": true,
80+
"@odata.type": "microsoft.graph.directoryObject"
81+
}
82+
-->
83+
``` http
84+
HTTP/1.1 200 OK
85+
Content-Type: application/json
86+
87+
{
88+
"value": [
89+
{
90+
"@odata.type": "#microsoft.graph.directoryObject",
91+
"id": "a6c034b8-621b-dee3-6abb-52cbce801fe9",
92+
"deletedDateTime": "String (timestamp)"
93+
}
94+
]
95+
}
96+
```
97+
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
---
2+
title: "Assign b2bManagementPolicy appliesTo"
3+
description: "Assign directory objects on which b2bManagementPolicy needs to be applied."
4+
author: "akshukla"
5+
ms.date: 10/27/2025
6+
ms.localizationpriority: medium
7+
ms.subservice: "entra-directory-management"
8+
doc_type: apiPageType
9+
---
10+
11+
# Assign b2bManagementPolicy appliesTo
12+
13+
Namespace: microsoft.graph
14+
15+
[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)]
16+
17+
Add [directoryObjects](../resources/directoryObject.md) on which [b2bManagementPolicy](../resources/b2bManagementpolicy.md) object needs to be applied. The b2bManagementPolicy can only be applied to [application](../resources/application.md) and [servicePrincipal](../resources/serviceprincipal.md) resources.
18+
19+
## Permissions
20+
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+
<!-- {
24+
"blockType": "permissions",
25+
"name": "b2bmanagementpolicy-post-appliesto-permissions"
26+
}
27+
-->
28+
[!INCLUDE [permissions-table](../includes/permissions/b2bmanagementpolicy-post-appliesto-permissions.md)]
29+
30+
[!INCLUDE [rbac-b2bManagementPolicy-apis-write](../includes/rbac-for-apis/rbac-b2bmanagementpolicy-apis-write.md)]
31+
32+
## HTTP request
33+
34+
<!-- {
35+
"blockType": "ignored"
36+
}
37+
-->
38+
``` http
39+
POST /policies/b2bManagementPolicies/{b2bManagementPolicyId}/appliesTo/$ref
40+
```
41+
42+
## Request headers
43+
44+
|Name|Description|
45+
|:---|:---|
46+
|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).|
47+
|Content-Type|application/json. Required.|
48+
49+
## Request body
50+
51+
In the request body, supply a JSON representation of the [directoryObject](../resources/directoryobject.md) object.
52+
53+
## Response
54+
55+
If successful, this method returns a `201 Created` response code and a [directoryObject](../resources/directoryobject.md) object in the response body.
56+
57+
## Examples
58+
59+
### Request
60+
61+
The following example shows a request.
62+
<!-- {
63+
"blockType": "request",
64+
"name": "create_directoryobject_from_b2bmanagement_policies"
65+
}
66+
-->
67+
``` http
68+
POST https://graph.microsoft.com/beta/policies/b2bManagementPolicies/f596ef0d-42f9-0359-1aaa-12d02b38802a/appliesTo/$ref
69+
Content-Type: application/json
70+
71+
{
72+
"@odata.id": " https://graph.microsoft.com/beta/directoryObjects/a6c034b8-621b-dee3-6abb-52cbce801fe9"
73+
}
74+
```
75+
76+
77+
### Response
78+
79+
The following example shows the response.
80+
<!-- {
81+
"blockType": "response",
82+
"truncated": false
83+
}
84+
-->
85+
``` http
86+
HTTP/1.1 204 No Content
87+
```
88+

0 commit comments

Comments
 (0)