Skip to content

Add Permissions sections to teams report command docs - #7723

Open
openagents-bot wants to merge 1 commit into
pnp:mainfrom
openagents-bot:oa/T12-1796182370
Open

openagents-bot wants to merge 1 commit into
pnp:mainfrom
openagents-bot:oa/T12-1796182370

Conversation

@openagents-bot

Copy link
Copy Markdown

Closes #7526

Adds a ## Permissions section (before ## Examples) to the 8 teams report command docs, following the minimal-permissions contribution guide and the planner tenant settings list page.

Commands Delegated Application Source
useractivitycounts, useractivityusercounts, useractivityuserdetail, deviceusageusercounts, deviceusageuserdetail, deviceusagedistributionusercounts Reports.Read.All Reports.Read.All https://learn.microsoft.com/graph/api/reportroot-getteamsuseractivitycounts (and the matching reportroot-getTeams* page for each command)
directroutingcalls, pstncalls not supported CallRecords.Read.All https://learn.microsoft.com/graph/api/callrecords-callrecord-getdirectroutingcalls and .../callrecords-callrecord-getpstncalls

Permissions are the "least privileged" entries from each endpoint's Graph v1.0 Permissions table.

Evidence:

$ git diff --stat
 8 files changed, 184 insertions(+)

Graph Permissions tables as fetched (identical for the six reportroot endpoints):

Delegated (work or school account)     | Reports.Read.All | Not available.
Delegated (personal Microsoft account) | Not supported.   | Not supported.
Application                            | Reports.Read.All | Not available.

and for getDirectRoutingCalls / getPstnCalls:

Delegated (work or school account) | Not supported.      | Not supported.
Application                        | CallRecords.Read.All | Not available.

The patch applies cleanly on a fresh clone (git apply --check). I did not run the docs site build locally.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Minimal permissions for 'teams report' commands

1 participant