You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/prompts/author-api-docs/common.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -407,6 +407,7 @@ Fully qualify any type (including enum types) that is defined in a subnamespace
407
407
**Permissions:**
408
408
- Must start with the standard boilerplate text
409
409
- Must include link to a permissions table
410
+
-**(Optional) RBAC include:** If the documentation plan or author specifies required Entra admin roles, add an RBAC include statement immediately after the permissions table include. See [RBAC for APIs include file templates](../../../templates/rbac-for-apis-include.md) for file conventions, naming, and content templates.
410
411
411
412
**HTTP request:**
412
413
- Use relative URLs (e.g., `/users` not `https://graph.microsoft.com/beta/users`)
@@ -691,6 +692,7 @@ After processing all files in a documentation session, verify cross-file consist
691
692
2.**API file ↔ resource link:** Every API file's description should link back to its parent resource, and that resource file should exist
692
693
3.**Enum references ↔ definitions:** Every enum type referenced in Properties tables should be defined in the appropriate enums file, parent resource, or separate topic
693
694
4.**Permissions files:** Every permissions include reference in API files should have a corresponding file in the `includes/permissions/` folder
695
+
5.**RBAC files:** If any API file has an RBAC include reference, verify the corresponding file exists in `includes/rbac-for-apis/`
694
696
5.**JSON representation ↔ Properties table:** Properties listed in the JSON representation section should match the Properties table
695
697
6.**Polymorphic collections:** If a Documentation Plan flagged polymorphic types, verify: (a) no operation files were created using derived type names, (b) all shared operation files use the base type name, (c) base type resource page has the Methods table (including base-type-only operations for concrete bases), (d) derived type resource pages have a `## Methods` section with only a polymorphic note (no Methods table — the table lives only on the base type page), (e) `@odata.type` guidance is included in POST/PATCH request body sections
Copy file name to clipboardExpand all lines: .github/prompts/author-api-docs/public-preview.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -308,7 +308,14 @@ When API changes involve adding new properties or relationships to an existing r
308
308
-`api-reference/v1.0/includes/permissions/`
309
309
- Do not make any changes to these permissions files
310
310
311
-
4.**HTTP request section:**
311
+
4.**RBAC include (optional — only when admin role info is provided):**
312
+
- If the documentation plan or author specifies required Entra admin roles for the API:
313
+
- Create the RBAC include file using the templates in [RBAC for APIs include file templates](../../../templates/rbac-for-apis-include.md)
314
+
- Place in `api-reference/{version}/includes/rbac-for-apis/`
315
+
- Add the include statement after the permissions table include, before `## HTTP request`
316
+
- If no admin role info is provided, skip this step
317
+
318
+
5.**HTTP request section:**
312
319
- Confirm the endpoint matches the endpoints in the API.md
313
320
- Correct where you can
314
321
-**For actions/functions in subnamespaces:** See [namespace qualification rules](common.md#namespace-qualification) for fully qualifying actions/functions
@@ -559,6 +566,7 @@ In addition to the [base quality checklist](common.md#base-quality-checklist), v
559
566
-[ ] Description links back to parent resource (e.g. `Get a [user](../resources/user.md).`)
560
567
-[ ] Permissions section unchanged
561
568
-[ ] Permissions include file copied to correct includes folder
569
+
-[ ] RBAC include file created and added if admin role info was provided
562
570
-[ ] HTTP request: Endpoints confirmed against API.md
563
571
-[ ] HTTP request: Endpoints match example URL in Examples section except relative URL
564
572
-[ ] HTTP request: Actions/functions in subnamespaces are fully qualified
Copy file name to clipboardExpand all lines: templates/changelog-patterns.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,4 @@
1
+
<!-- -This template file is consumed by the /authorAPIDocs prompt -->
1
2
# Manual Changelog Authoring Guide
2
3
3
4
This guide covers how to manually create changelog entries for changes that don't trigger automatic generation (e.g., throttling updates, query capability changes, page size limit changes).
@@ -21,7 +22,7 @@ Each changelog entry must be part of a "ChangeList" array with the following req
21
22
22
23
| Property | Description | Example Values |
23
24
|----------|-------------|----------------|
24
-
|**Id**| GUID identifier. Use the same GUID for all related changes in a release. | "6ebc1737-3f93-4ef1-a9e7-cafa03262cf8" |
25
+
|**Id**| GUID identifier. Use the same GUID for all related objects in a ChangeList. | "6ebc1737-3f93-4ef1-a9e7-cafa03262cf8" |
25
26
|**ApiChange**| The type of Microsoft Graph API element being changed. | "Resource", "Property", "Relationship", "Method", "Enumeration", "Member", "Parameter", "Header", "Permission" |
26
27
|**ChangedApiName**| The name of the specific API element that changed. | "user", "displayName", "manager", "delta", "status", "active", "id", "Authorization", "User.Read.All" |
27
28
|**ChangeType**| The nature of the change. | "Addition", "Change", "Deletion", "Deprecation" |
@@ -34,6 +35,7 @@ These properties apply to the entire changelog record (not individual ChangeList
34
35
35
36
| Property | Description | Default Value | Possible Values |
|**Id**| GUID identifier for the changelog record. Use the same GUID as the ChangeList Id. | (None - must specify) | Same GUID as ChangeList Id |
37
39
|**Cloud**| The cloud environment where the change is available. | "prd" | "prd" (production) |
38
40
|**Version**| The API version where the change is available. | "v1.0" | "v1.0", "beta" |
39
41
|**CreatedDateTime**| UTC timestamp when the changelog entry was created. Use PowerShell: `(Get-Date).ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ss.fffffffZ")`| Current UTC datetime | "2025-11-17T17:38:10.4694969Z" (ISO 8601/RFC 3339 format with fractional seconds) |
<!-- -This template file is consumed by the /authorAPIDocs prompt -->
2
+
# RBAC for APIs include file templates
3
+
4
+
Use these templates when creating RBAC (role-based access control) include files for API operation topics. These files inform callers which Microsoft Entra admin roles are required in delegated scenarios, in addition to Microsoft Graph permissions.
Use when one Entra admin role is the least privileged role for the operation.
23
+
24
+
```markdown
25
+
---
26
+
author: {github-username}
27
+
ms.topic: include
28
+
---
29
+
30
+
> [!IMPORTANT]
31
+
> In delegated scenarios with work or school accounts, the signed-in user must be assigned a supported [Microsoft Entra role](/entra/identity/role-based-access-control/permissions-reference?toc=%2Fgraph%2Ftoc.json) or a custom role with a supported role permission. *{Role Name}* is the least privileged role supported for this operation.
32
+
```
33
+
34
+
### Example (Template A)
35
+
36
+
```markdown
37
+
---
38
+
author: janedoe
39
+
ms.topic: include
40
+
---
41
+
42
+
> [!IMPORTANT]
43
+
> In delegated scenarios with work or school accounts, the signed-in user must be assigned a supported [Microsoft Entra role](/entra/identity/role-based-access-control/permissions-reference?toc=%2Fgraph%2Ftoc.json) or a custom role with a supported role permission. *External Identity Provider Administrator* is the least privileged role supported for this operation.
44
+
```
45
+
46
+
---
47
+
48
+
## Template B — Multiple least privileged roles
49
+
50
+
Use when two or more Entra admin roles are supported for the operation, listed from least to most privileged.
51
+
52
+
```markdown
53
+
---
54
+
author: {github-username}
55
+
ms.topic: include
56
+
---
57
+
58
+
> [!IMPORTANT]
59
+
> In delegated scenarios with work or school accounts, the signed-in user must be assigned a supported [Microsoft Entra role](/entra/identity/role-based-access-control/permissions-reference?toc=%2Fgraph%2Ftoc.json) or a custom role with a supported role permission. The following least privileged roles are supported for this operation.
60
+
> - {Role Name 1}
61
+
> - {Role Name 2}
62
+
> - {Role Name 3}
63
+
```
64
+
65
+
### Example (Template B)
66
+
67
+
```markdown
68
+
---
69
+
author: janedoe
70
+
ms.topic: include
71
+
---
72
+
73
+
> [!IMPORTANT]
74
+
> In delegated scenarios with work or school accounts, the signed-in user must be assigned a supported [Microsoft Entra role](/entra/identity/role-based-access-control/permissions-reference?toc=%2Fgraph%2Ftoc.json) or a custom role with a supported role permission. The following least privileged roles are supported for this operation.
0 commit comments